Skip to content

Failed API calls should not be failures, not errors #420

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

Open
SamMorrowDrums opened this issue May 21, 2025 · 0 comments
Open

Failed API calls should not be failures, not errors #420

SamMorrowDrums opened this issue May 21, 2025 · 0 comments
Assignees

Comments

@SamMorrowDrums
Copy link
Collaborator

An example:

return nil, fmt.Errorf("failed to get user: %w", err)

As discussed here and here in general failures of this kind are not to be returned as errors, but instead returned as failed tool calls.

@williammartin williammartin self-assigned this May 26, 2025
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

When branches are created from issues, their pull requests are automatically linked.

2 participants