Skip to content

Return #259

Open
Open
Return#259
@ChrisDelClea

Description

@ChrisDelClea

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions