Update version to 0.8.15 and enhance error handling in agent execution and message management#129
Merged
kryvokhyzha merged 1 commit intomainfrom Apr 20, 2026
Merged
Update version to 0.8.15 and enhance error handling in agent execution and message management#129kryvokhyzha merged 1 commit intomainfrom
kryvokhyzha merged 1 commit intomainfrom
Conversation
…n and message management
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request focuses on improving the reliability and robustness of the
add_messagesandclear_historyendpoints, as well as fixing issues related to handling message lists (especially[-1]indexing). These changes ensure better error handling and data consistency across the agent toolkit service.Endpoints and API robustness:
add_messagesandclear_historyendpoints to gracefully handle missing or empty message histories, returning appropriate HTTP errors when necessary.add_messagesendpoint to include all relevant message fields (type,content,tool_call_id,tool_calls), and to exclude fields withNonevalues for cleaner data storage.historyendpoint to safely retrieve messages using.get("messages", []), preventing errors when the key is missing.Agent response handling:
IndexErrorwhen handling[-1]on empty lists.Versioning and documentation:
0.8.15and updated theCHANGELOG.mdto reflect these fixes. [1] [2]