Replies: 2 comments 1 reply
-
For AssistantAgent (https://microsoft.github.io/autogen/dev/reference/python/autogen_agentchat.agents.html#autogen_agentchat.agents.AssistantAgent), it calls tools with parameters generated by the model, so you cannot directly share the conversation history -- you could prompt the model, but that won't be reliable. The way to do is to create your custom agent, which has built-in knowledge about the tool that takes the conversation history as input, and use it directly without relying on the model. See custom agent: https://microsoft.github.io/autogen/dev/user-guide/agentchat-user-guide/tutorial/custom-agents.html |
Beta Was this translation helpful? Give feedback.
-
Thank you @ekzhu for your quick response!! In my case, one tool responds with database data that I need to access in another tool. In such a scenario, having access to the conversation history across tools would be useful. I am using pyautogen==0.3.0, and the code is already built. Additionally, I keep each agent-related tool and prompt in separate Python files for better code readability. If the solution you provided above works for my scenario as explained, could you please provide me with an example? |
Beta Was this translation helpful? Give feedback.
-
How to share conversation history to a tool - Autogen
Beta Was this translation helpful? Give feedback.
All reactions