[.NET][AG-UI][Workflows] How to filter ChatMessages on the Client side #3865
-
|
Hello, I'm getting more and more confused while using AG-UI with a Workflow. In order to use a Workflow with AG-UI we need to convert it into an Agent. As far as I understand, the Workflow as an Agent works like this that it outputs all the workflow's events as ChatMessages. Now let's imagine that we are building one of the "common" examples of workflows: the slogan generator and the translator. Agent1 is generating a slogan about our company, let's imagine it generated "My company is the best". We have a sequential Workflow that should return French slogan about my company. Instead I get the English version and the French version, as the output of every Agent is converted into a ChatMessage. Ok, so maybe I can ask the Client of my workflow, to just filter the English messages out. But with AG-UI I can't do that. Could someone explain to me how to make this workflow useful, please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
There is work being done right now to support C# Workflows with AG-UI. The workflow "as agent" was primarily done to support hosted agents scenarios, and wasn't meant to be perfectly adaptable to AG-UI. |
Beta Was this translation helpful? Give feedback.
There is work being done right now to support C# Workflows with AG-UI. The workflow "as agent" was primarily done to support hosted agents scenarios, and wasn't meant to be perfectly adaptable to AG-UI.