Skip to content

OpenAI assistant InvokeStreamingAsync - chat history #8810

Answered by crickman
JP-droidic asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @JP-droidic, thank you for calling this out.

Two scenarios require maintaining the non-streamed history: ChatCompletionAgent and AgentChat. The AgentChat case extends to both ChatCompletionAgent and OpenAIAssistantAgent. This focus, resulted in the presence of the history parameter to which you are referring.

Now that you've called it out, I realize that for this no-chat invocation case...its only a convenience and not required. I can certainly make it optional.

I like have the option available as a convenience since we know some customers cases involve examining the history...even for streaming. Forcing the caller to build history from streaming content can be tedious so maintaining t…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JP-droidic
Comment options

Answer selected by crickman
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants