Skip to content

[Bug]: tool callings fails for two calls in the same message #1205

@davorrunje

Description

@davorrunje

Describe the bug

When two async tool calls are in the same message, an exception is being raised

Steps to reproduce

Run notebook/agentchat_function_call_async.ipynb and uncomment the last cell. You'll get the following error:

Error code: 400 - ***'error': ***'message': "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_j394Fv8APHuTdEFAtWEX3JF4", 'type': 'invalid_request_error', 'param': 'messages.***4***.role', 'code': None

Expected Behavior

No response

Screenshots and logs

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions