Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce invocation-failure message type #769

Open
johnjcsmith opened this issue Feb 12, 2025 · 0 comments
Open

Introduce invocation-failure message type #769

johnjcsmith opened this issue Feb 12, 2025 · 0 comments

Comments

@johnjcsmith
Copy link
Contributor

johnjcsmith commented Feb 12, 2025

Currently, tool call errors are returned within the result field of an invocation-result message.
This makes it hard to infer the status of a tool call from the message body alone.

Introduce an invocation-failure type to make it easier for clients (I.e the React SDK) to present failure results.

type: z.literal("invocation-result"),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant