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

@orangecheck/agent-vercel


@orangecheck/agent-vercel / OcToolWrapped

Interface: OcToolWrapped<TArgs, TResult>

Defined in: index.ts:149

Type Parameters

Type Parameter
TArgs extends Record<string, unknown>
TResult

Properties

PropertyTypeDescriptionDefined in
<a id="property-description"></a> description?string-index.ts:152
<a id="property-execute"></a> execute(args: TArgs, ctx: AgentContext & &#123; callId: string; fleet?: FleetClient; &#125;) => Promise&lt;&#123; action: ActionEnvelope; posted: PostActionResult | null; result: TResult; &#125;>The execute fn the AI SDK calls. Receives args + a callId (the AI SDK passes its own callId through — adapter glue passes it via context). Optional fleet field on the context tells the wrapper to fire-and-forget POST the stamped action to fleet. ochk.io/api/actions after the underlying execute() returns.index.ts:160
<a id="property-parameters"></a> parameters?unknown-index.ts:151
<a id="property-verb"></a> verbstring-index.ts:150