A programming framework for agentic AI
Fix assistant agent doc (#4365)
Eric Zhubcd6e71e7f76
diff --git a/python/packages/autogen-agentchat/src/autogen_agentchat/agents/_assistant_agent.py b/python/packages/autogen-agentchat/src/autogen_agentchat/agents/_assistant_agent.pyindex cb1eff8d6..0870a6c2f 100644--- a/python/packages/autogen-agentchat/src/autogen_agentchat/agents/_assistant_agent.py+++ b/python/packages/autogen-agentchat/src/autogen_agentchat/agents/_assistant_agent.py@@ -82,13 +82,13 @@ class Handoff(BaseModel):class AssistantAgent(BaseChatAgent):"""An agent that provides assistance with tool use.- It responds with a StopMessage when 'terminate' is detected in the response.-Args:name (str): The name of the agent.model_client (ChatCompletionClient): The model client to use for inference.tools (List[Tool | Callable[..., Any] | Callable[..., Awaitable[Any]]] | None, optional): The tools to register with the agent.- handoffs (List[Handoff | str] | None, optional): The handoff configurations for the agent, allowing it to transfer to other agents by responding with a HandoffMessage.+ handoffs (List[Handoff | str] | None, optional): The handoff configurations for the agent,+ allowing it to transfer to other agents by responding with a :class:`HandoffMessage`.+ The transfer is only executed when the team is in :class:`~autogen_agentchat.teams.Swarm`.If a handoff is a string, it should represent the target agent's name.description (str, optional): The description of the agent.system_message (str, optional): The system message for the model.