Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/agent / / AgentCallOptions

Interface: AgentCallOptions<TDeps>

Defined in: packages/agent/src/types.ts:462

Per-call options accepted by agent.stream(...) / agent.run(...).

Stable

Type Parameters

Type Parameter
TDeps

Properties

PropertyModifierTypeDescriptionDefined in
capability?readonly"read-only"Per-run capability restriction (D2) - overrides AgentConfig.capability for this invocation. See that field for semantics. Not persisted in RunState: re-supply it when resuming a suspended run.packages/agent/src/types.ts:479
deps?readonlyTDeps-packages/agent/src/types.ts:463
directive?readonlyResumeDirectiveHITL resume directive. Supplied alongside a RunState to resolve any approvals that were pending when the previous agent.run(...) call suspended.packages/agent/src/types.ts:472
parentSpan?readonlyAISpan<SpanType>W-036: parent span for this run's agent.run root span - a multi-agent invocation forms ONE trace tree (the child's run span parents under the caller's step/tool span). The runtime supplies it automatically for handoffs and toTool sub-agents. Like capability, it is NOT persisted in RunState: re-supply on resume when stitching matters.packages/agent/src/types.ts:488
sessionId?readonlystring-packages/agent/src/types.ts:465
signal?readonlyAbortSignal-packages/agent/src/types.ts:464
userId?readonlystring-packages/agent/src/types.ts:466