Skip to content

P2 — process_tool_calls can crash on malformed tool call payloads#48

Open
fixbugs-app[bot] wants to merge 2 commits into
mainfrom
fixbugs/859ce38a-a1d1-4e22-835c-65e22d27e622-162-fix-144-v1
Open

P2 — process_tool_calls can crash on malformed tool call payloads#48
fixbugs-app[bot] wants to merge 2 commits into
mainfrom
fixbugs/859ce38a-a1d1-4e22-835c-65e22d27e622-162-fix-144-v1

Conversation

@fixbugs-app

@fixbugs-app fixbugs-app Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This pull request was generated automatically by solve-bug in response to #47.

Review the diffs carefully before merging.

Comment thread agent.py Outdated
for tc in tool_calls:
name = tc["function"]["name"]
args = tc["function"].get("arguments", "{}")
if not isinstance(tc, dict):

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Factor the check out into a helper method.

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.

1 participant