Fix typo on Agent documentation

Argument name is not description but handoff_description
This commit is contained in:
Carlos Souza 2025-03-13 16:18:40 -04:00 committed by GitHub
parent cdbf6b0514
commit 26828e5e68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ class Agent(Generic[TContext]):
"""An agent is an AI model configured with instructions, tools, guardrails, handoffs and more. """An agent is an AI model configured with instructions, tools, guardrails, handoffs and more.
We strongly recommend passing `instructions`, which is the "system prompt" for the agent. In We strongly recommend passing `instructions`, which is the "system prompt" for the agent. In
addition, you can pass `description`, which is a human-readable description of the agent, used addition, you can pass `handoff_description`, which is a human-readable description of the agent, used
when the agent is used inside tools/handoffs. when the agent is used inside tools/handoffs.
Agents are generic on the context type. The context is a (mutable) object you create. It is Agents are generic on the context type. The context is a (mutable) object you create. It is