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

@orangecheck/agent-anthropic


@orangecheck/agent-anthropic / invokeWithStampAndPost

Function: invokeWithStampAndPost()

function invokeWithStampAndPost<T>(input: InvokeWithStampAndPostInput<T>): Promise<InvokeWithStampAndPostResult<T>>;

Defined in: index.ts:243

Convenience: stamp the tool_use, execute the handler, AND post the stamped envelope to fleet. Three roundtrips → one call. If fleet is omitted, this is identical to invokeWithStamp + posted=null.

The post happens AFTER the call so a failing post doesn't prevent the tool from running. If you need pre-authorization (the post must succeed before the call runs), use stampToolUse + postActionToFleet

  • your call() in that order.

Type Parameters

Type Parameter
T

Parameters

ParameterType
inputInvokeWithStampAndPostInput&lt;T>

Returns

Promise&lt;InvokeWithStampAndPostResult&lt;T>>