live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/agent-anthropic


@orangecheck/agent-anthropic / invokeWithStamp

Function: invokeWithStamp()

function invokeWithStamp<T>(input: InvokeWithStampInput<T>): Promise<InvokeWithStampResult<T>>;

Defined in: index.ts:141

Stamp the tool_use first, then execute the handler. The stamped envelope is returned alongside the result so the caller can ship them together — e.g. as a side-channel to an audit log, or as the _oc_agent metadata on the tool_result content block back to Claude.

Type Parameters

Type Parameter
T

Parameters

ParameterType
inputInvokeWithStampInput&lt;T>

Returns

Promise&lt;InvokeWithStampResult&lt;T>>