Tailrace
Reference

openai-agents

Reference for @tailrace/openai-agents - wrapTool, wrapTools, withOpenAiAgents.

@tailrace/openai-agents wraps OpenAI Agents SDK FunctionTool.invoke so args and results pass through Tailrace.

Install

pnpm add @tailrace/core @tailrace/openai-agents @openai/agents

Peer: @openai/agents >=0.3 (bound against 0.3.9).

Exports

ExportDescription
wrapToolWrap one FunctionTool
wrapToolsWrap an array of FunctionTools
withOpenAiAgentsFluent .tool / .tools
OpenAiAgentsWrapOptionsOptions type

Options

OptionRequiredNotes
agentnoDefault "default"
workflowIdnoDefault "default"
onDecisionnoAudit callback

Guides

On this page