最終更新:2025-12-22 (月) 13:10:10 (231d)  

agents.Agent
Top / agents.Agent

指示、ツール、ガードレール、ハンドオフなどで構成された AI モデル

https://openai.github.io/openai-agents-python/ref/agent/

https://openai.github.io/openai-agents-python/ja/ref/agent/

https://openai.github.io/openai-agents-python/ja/agents/

agent = Agent(name="Assistant", instructions="You are a helpful assistant")

パラメータ

instructions

prompt

handoffs

  • agents.Agent.handoffs?

model

model_settings

input_guardrails

output_guardrails

output_type

hooks

tool_use_behavior

reset_tool_choice

name

handoff_description

tools

  • A list of tools that the agent can use.

mcp_servers

mcp_config

clone

agents.Agent.as_tool

get_prompt

get_mcp_tools

get_all_tools

メモ

  • agents.Agent.reset_tool_choice?

関連