-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
Summary
MapAGUI() in Microsoft.Agents.AI.Hosting.AGUI.AspNetCore hardcodes session: null when calling aiAgent.RunStreamingAsync(), even though:
- A session store is configured via
.WithSessionStore() - The
ag_ui_thread_idis available inAdditionalProperties AIHostAgenthasGetOrCreateSessionAsync(conversationId)ready to use
Line 46 in dd3d085
| var messages = input.Messages.AsChatMessages(jsonSerializerOptions); |
This means every AG-UI request starts a fresh workflow run with no memory of the previous conversation state. The client must round-trip the entire message history each request. Which means a client can inject anything into the conversation.
Should AG-UI allow you to pass only the 'next' message, and re-use the existing session on the backend?
Environment
Microsoft.Agents.AI.Hosting.AGUI.AspNetCore1.0.0-preview.260311.1Microsoft.Agents.AI.Workflows1.0.0-rc4Microsoft.Agents.AI1.0.0-rc4
Reactions are currently unavailable