Skip to content

Returning function call's responses in raw_response_event #328

Closed as not planned
@levulinh

Description

@levulinh

I am currently trying to build a chat web app for my agent, which is hosted using fastapi. Since the UI library I'm using accepts the OpenAI Responses API format, I return exactly what is yielded in raw_response_event. However, I found that there's no way to retrieve the response from my custom function calls, so I can't build a complete message history with function call results. I understand that I can explicitly get the function's result from run_item_stream_event, but is there a way to not introducing a new type of event in the stream?
Does anyone have a solution for this? And how are you building a web UI for the agents?
Any suggestions are much appreciated. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDKstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions