Open
Description
Please read this first
- Have you read the docs? yes
- Have you searched for related issues? yes
Question
During streaming a response with :
result = Runner.run_streamed(starting_agent=agent, input=inputs)
async for event in result.stream_events():
data = event.data
i found multiple Delta
and Event
objects from openai.types.responses
that can be used e.g.:
ResponseFunctionCallArgumentsDeltaEvent, ResponseFunctionCallArgumentsDoneEvent, ResponseFunctionToolCall
Yet, after the run when i do:
for msg in result.to_input_list():
print(msg)
(ToolCallOutputItem)
i get a entry:
{'call_id': 'call_xxxx', 'output': "{'assistant': 'Assistent'}", 'type': 'function_call_output'}
So my question is, how can i capture the function_call_output via event during streaming?