Skip to content

Errors from Tool Calls #93

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

Closed
tpaulshippy opened this issue Apr 3, 2025 · 2 comments
Closed

Errors from Tool Calls #93

tpaulshippy opened this issue Apr 3, 2025 · 2 comments

Comments

@tpaulshippy
Copy link
Contributor

May be related to #86

Is there any way to get errors raised by tools bubbled up to the caller? It appears that we are returning them to the LLM as a message and then calling the LLM again. See screenshot:

Image

Is this by design?

@crmne
Copy link
Owner

crmne commented Apr 4, 2025

It is by design, but it's probably worth revisiting.

I propose to remove catching all errors and passing them to the LLM, rather making the user responsible to do so, so he has more control on what should make the tool fail gracefully to the LLM or suddenly to the caller, and clarifying that in the docs.

@crmne
Copy link
Owner

crmne commented Apr 4, 2025

Fixed in 0737907 and 7407e9f. Guide at https://rubyllm.com/guides/tools#error-handling and https://rubyllm.com/guides/error-handling#handling-tool-errors

@crmne crmne closed this as completed Apr 4, 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

No branches or pull requests

2 participants