-
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error handling and response parsing in Agent.run method
- Add type checking for LLM response - Handle different response formats (dict with 'choices' and plain string) - Raise ValueError for unexpected response formats - Improve error logging with more specific messages - Enhance robustness of response processing in main agent loop
- Loading branch information
1 parent
fbf6509
commit 65dec85
Showing
1 changed file
with
37 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters