Skip to content

Issue setting up Message with File Reference #12

@shallonbrous

Description

@shallonbrous

I am configuring a Message (BetaMessage) with a reference to a file ID that was uploaded. I am including the Betas to the MessageCreateParams and still receiving an error about the type 'file' does not match any of the expected tags.

Here is my code:

Image Image

Can you please include some examples of including file references in a Message as well as connecting an MCP server and Code Execution tools as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationsdk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions