Skip to content

Catch tool calls parsing errors#244

Merged
ollmer merged 1 commit intomainfrom
tool_call_parsing_fix
Oct 10, 2025
Merged

Catch tool calls parsing errors#244
ollmer merged 1 commit intomainfrom
tool_call_parsing_fix

Conversation

@ollmer
Copy link
Copy Markdown
Contributor

@ollmer ollmer commented Oct 10, 2025

better tool call parsing, report parsing errors back to llm

Description by Korbit AI

What change is being made?

Catch and report errors when parsing tool call arguments, and gracefully handle invalid tool call data by validating against step types with better error logging and messages.

Why are these changes being made?

To improve robustness when the LLM returns malformed or invalid tool-call data, and to surface precise validation errors and traces for easier debugging.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Copy link
Copy Markdown

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Performance Inefficient string concatenation in error processing loop ▹ view
Files scanned
File Path Reviewed
tapeagents/nodes.py

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

@ollmer ollmer requested a review from rafapi October 10, 2025 11:26
@ollmer ollmer merged commit add3f36 into main Oct 10, 2025
6 checks passed
@ollmer ollmer deleted the tool_call_parsing_fix branch October 10, 2025 11:31
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

Successfully merging this pull request may close these issues.

2 participants