Skip to content

ToolEffectScope

Defined in: packages/tools/src/approval/types.ts:8

Run identity closed over at tool construction (from getTools context, or an explicit test/playground value). Required on every gated factory — there is no ambient default workflow id.

optional agentCallId?: string | null

Defined in: packages/tools/src/approval/types.ts:10


recordEffect: (event) => Promise<void>

Defined in: packages/tools/src/approval/types.ts:16

Persist effect_intent / effect_settled. Usually RunRecorder.emit from the active agent/workflow turn. Required — no silent skip of intent emission.

Records a run event (store, observers, OTel). Never rejects — failures are logged on the active span, or console.warn if span recording fails.

RunEventEmit

Promise<void>


optional stepId?: string | null

Defined in: packages/tools/src/approval/types.ts:11


workflowRunId: string

Defined in: packages/tools/src/approval/types.ts:9