You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a tool call throws an error, the entire workflow fails. On one hand, we can catch these errors, serialize them, and pass them back to the model. However, this might hide unexpected errors from the developer, making it harder for them to realize they are happening.
The other option is to just improve our examples to encourage tool implementations to use a try...catch so that we make it clear that it is up to the developer to gracefully handle expected errors.
The text was updated successfully, but these errors were encountered:
When a tool call throws an error, the entire workflow fails. On one hand, we can catch these errors, serialize them, and pass them back to the model. However, this might hide unexpected errors from the developer, making it harder for them to realize they are happening.
The other option is to just improve our examples to encourage tool implementations to use a
try...catch
so that we make it clear that it is up to the developer to gracefully handle expected errors.The text was updated successfully, but these errors were encountered: