Using workflow.AsAgent in combination with app.MapAGUI("/", agent); #2531
Replies: 1 comment
-
|
@jakesduagile - I have very similar questions. I have set up a chat application, using AG-UI between my client and server, and I have set up a workflow to be the agent in My workflow is very simple - an Executor/Edge set up with a switch. I have an Intent Executor (which runs an Intent Agent), and if the intent is known, a Specialist Executor (which runs an agent) is called, otherwise an Error Executor is called. However, I am getting this error - My questions are similar:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Using DI i have setup a few thing but mostly my workflow is setup during a request to our chat controller.
We have the capability to create an Agent from a Workflow
ie
var workflowAgent = workflow.AsAgent(id: "workflow-agent", name: "Workflow Agent");
My questions are
Whether it should be possible to map AG-UI to this Agent using app.MapAGUI("/", agent);
The issue I have is it seems that the AGUI registration happens at startup with builder ext. methods and my workflow gets created during runtime.
I'm not sure if I'm following the correct approach here and if I should create these workflows during setup as there is a couple of things that require runtime configs.
Any guidance in the right direction here will help.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions