OpenAI.Agents.Handoff (openai_agents v0.1.2)
Manages handoffs between agents.
Handoffs allow one agent to delegate control to another agent, optionally filtering the conversation history.
Summary
Functions
Creates a handoff configuration.
Executes a handoff.
Creates a handoff tool module dynamically.
Converts a handoff to a tool schema for use in the API.
Types
Functions
@spec create( module(), keyword() ) :: handoff_config()
Creates a handoff configuration.
@spec execute(map(), [module() | handoff_config()], map()) :: {:ok, module(), list()} | {:error, term()}
Executes a handoff.
Creates a handoff tool module dynamically.
@spec to_tool_schema(module() | handoff_config()) :: map()
Converts a handoff to a tool schema for use in the API.