autogen
or ag2
, all you need to do is upgrade it using:autogen
and ag2
are aliases for the same PyPI package.AssistantAgent
and UserProxyAgent
are the agents for interaction within AG2.Interoperability
is what helps connect LangChain tools with AG2.config_list
is where you define the LLM configuration, like the model and API key.UserProxyAgent
simulates user inputs without requiring actual human interaction (set to NEVER
).AssistantAgent
represents the AI agent, configured with the LLM settings.Interoperability
helps convert the LangChain tool to AG2’s format.user_proxy
and chatbot
.AssistantAgent
and UserProxyAgent
: Core AG2 classes.Interoperability
: This module acts as a bridge, making it easier to integrate CrewAI tools with AG2’s architecture.config_list
defines the LLM configurations, including the model and API key.UserProxyAgent
simulates user inputs without requiring actual human interaction (set to NEVER
).AssistantAgent
represents the AI agent, configured with the LLM settings.Interoperability
converts the CrewAI tool to a format compatible with AG2.UserProxyAgent
and the AssistantAgent
to utilize the CrewAI tool.
chatbot
provides results based on the web scraping operation:
AssistantAgent
and UserProxyAgent
: Agents that facilitate communication in the AG2 framework.Interoperability
: This module acts as a bridge, making it easier to integrate PydanticAI tools with AG2’s architecture.config_list
defines the LLM configurations, including the model and API key.UserProxyAgent
simulates user inputs without requiring actual human interaction (set to NEVER
).AssistantAgent
represents the AI agent, configured with the LLM settings.Player
model using BaseModel to structure the input data.Player
instance) securely into the tool.get_player
function defines the tool’s functionality, retrieving injected data through ctx.deps
.Interoperability
.user_proxy
and chatbot
.UserProxyAgent
and the AssistantAgent
:
user_proxy
sends a message to the chatbot
.Player
data is securely injected into the tool, and the chatbot can access and use it during the chat.