Replies: 2 comments 4 replies
-
|
I think you need to create a custom executor that handles the So it looks something like this: |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Tennyleaz, Sorry for missing your question earlier. In this case, the output from the Agent Executor in the workflow is going to be the set of ChatMessages that were generated by it as part of running it. The reason the InputPort executor is not playing nice with it is that it expects a In the case of Agent, it follows a "Turn Taking Chat Protocol" (this is a gap in the documentation as you noticed) where-in the expectation is that the Executor will accumulate incoming The other thing you can do is switch the request port to take A related, but separate thing I would recommend is to make the approval message be more structured, even if you intend to let the user offer text feedback as well. This makes it easier to process the result (and either feed it back to the first agent in case of a rejection or text feedback or forward it to the buying agent in case of an approval). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was using a single AgentThread and without workflow, I could add a new ChatMessage from user anytime.
Now I want to create a Workflow and add human/external interaction to it. How do I do exactly? Using an InputPort and add another ChatMessage to the workflow?
For example, in a sample scenario a sequential workflow could be:
This code throws exception like:
It seems there isn't much documentation about how could we get to this?
Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions