-
Hi,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I have read the article of Theia AI Sneak Preview: Let your agents talk to each other!, I am not sure whether agents can be a workflow as follow |
Beta Was this translation helpful? Give feedback.
-
Hi, there is a few approaches you can use, depending on your exact requirements:
For such use cases, we typically overwrite |
Beta Was this translation helpful? Give feedback.
Hi @wss29,
you just need to add the context (e.g. "Wheather report for Boise, ...") to the messages that are sent to the LLM, and there are several ways to do that in a chat agent.
The way that is closest to the "manual approach" you sketched is to overwrite
invoke(request)
in your chat agent and run custom code to obtain the additional context and add it to the request model before you call super. As input to your custom code (to take the user request into account), you can take the input parameterrequest
, which contains the user request, or you can even access the entire chat session (request.session
). To actually obtain the additional context, your custom code could