How do I change an agent's response before it is added to the chat? #2326
-
I want to change the agent's response AFTER the LLM has finished generation, but BEFORE the response is added to the chat / groupchat (and the next agent speaks). The flow would look something like this:
I thought about using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This can be done by hooking the |
Beta Was this translation helpful? Give feedback.
This can be done by hooking the
ConversableAgent.process_message_before_send
message. Seetest_conversable_agent.py
andwebarena_agents.py
.