Installation
@openai/agents >= 0.0.1.
Three-line setup
createVaneHooks()
Returns a RunHooks object compatible with the OpenAI Agents SDK run() function.
Options
What gets attested
Tool duration is tracked by pairing
onToolStart and onToolEnd using a "agentName::toolName" key. This is sufficient for agents that don’t call the same tool twice concurrently in a single turn.
Error handling
Attestation calls are fire-and-forget. Errors are logged toconsole.error and execution continues.
VaneRunHooks type
@openai/agents RunHooks. If the SDK changes its hook signatures, TypeScript will surface an error at the run() call site, not inside this package.