最終更新:2025-12-26 (金) 16:45:13 (24d)  

agents.Tool
Top / agents.Tool

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

https://github.com/openai/openai-agents-python/blob/main/src/agents/tool.py#L656

Tool = Union[
    FunctionTool,
    FileSearchTool,
    WebSearchTool,
    ComputerTool[Any],
    HostedMCPTool,
    ShellTool,
    ApplyPatchTool,
    LocalShellTool,
    ImageGenerationTool,
    CodeInterpreterTool,
]

下記のUnion

  • agents.FunctionTool?
    agents.FileSearchTool?
    agents.WebSearchTool?
    agents.ComputerTool?
    agents.HostedMCPTool?
    agents.ShellTool?
    agents.ApplyPatchTool?
    agents.LocalShellTool?
    agents.ImageGenerationTool?
    agents.CodeInterpreterTool?