Skip to content

.Net: OpenAIAssistantAgentThread.GetMessagesAsync not returning any toolcalls #11913

Discussion options

You must be logged in to vote

Answer from SK OH:

This example shows using AgentInvokeOptions.OnIntermediateMessage to intercept messages:

https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/Concepts/Agents/OpenAIAssistant_Streaming.cs#L43

While the example is streaming, the same approach works for non-streaming.

Note, this shows:
The immediate agent response
The intercepted messages (via AgentInvokeOptions) - has tool calls
The message retrieved by the thread - no tool calls

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sophialagerkranspandey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
.NET Issue or Pull requests regarding .NET code
1 participant