Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ class Agent(AgentBase, Generic[TContext]):
Agents are generic on the context type. The context is a (mutable) object you create. It is
passed to tool functions, handoffs, guardrails, etc.

Example:
from agents import Agent

agent = Agent(
name="example",
instructions="Say hello"
)

See `AgentBase` for base parameters that are shared with `RealtimeAgent`s.
"""

Expand Down