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

Improve handling of exceptions from tool calls in Chat #424

Open
jackmpcollins opened this issue Feb 2, 2025 · 0 comments
Open

Improve handling of exceptions from tool calls in Chat #424

jackmpcollins opened this issue Feb 2, 2025 · 0 comments

Comments

@jackmpcollins
Copy link
Owner

The Chat.exec_function_call should optionally be able to catch exceptions raised when executing the FunctionCall and append an appropriate result message containing details of the error. It should still just make a single function call and append a single message, and any required looping/retry should be handled outside of this method.

Worth considering if this can/should be unified with RetryChatModel? RetryChatModel is concerned with handling errors generating or parsing the LLM response, whereas this would handle exceptions raised by the user-provided functions, so maybe makes sense to keep separate.

Related to #417

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