@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
| Parameter | Type |
|---|---|
input | InvokeWithStampInput<T> |
Returns
Promise<InvokeWithStampResult<T>>