Fix tool call id

This commit is contained in:
akhisud3195 2025-03-26 15:22:59 +05:30 committed by Ramnique Singh
parent 77b53696b6
commit 695a961333

View file

@ -267,9 +267,9 @@ async def run_turn_streamed(
# Process streaming events
async for event in stream_result.stream_events():
# print('='*50)
# print("Received event: ", event)
# print('-'*50)
print('='*50)
print("Received event: ", event)
print('-'*50)
# Handle raw response events and accumulate tokens
if event.type == "raw_response_event":
@ -339,7 +339,7 @@ async def run_turn_streamed(
'name': event.item.raw_item.name,
'arguments': event.item.raw_item.arguments
},
'id': event.item.raw_item.id,
'id': event.item.raw_item.call_id,
'type': 'function'
}],
'tool_call_id': None,