Interface: OrderedToolCall
@providerprotocol/agents / index / OrderedToolCall
Interface: OrderedToolCall
Section titled “Interface: OrderedToolCall”Defined in: src/execution/types.ts:552
Model-driven tool call with optional execution order hint.
Extends the standard ToolCall with an after field that models
can use to signal dependencies between specific tool call instances.
This enables fine-grained ordering beyond tool-level dependencies.
UAP-1.0 Spec Section 8.6
Example
Section titled “Example”// Model might return tool calls like:const toolCalls: OrderedToolCall[] = [ { toolCallId: 'call-1', toolName: 'read', arguments: { path: 'a.txt' } }, { toolCallId: 'call-2', toolName: 'read', arguments: { path: 'b.txt' } }, { toolCallId: 'call-3', toolName: 'merge', arguments: {}, after: ['call-1', 'call-2'], // Wait for both reads },];Extends
Section titled “Extends”ToolCall
Properties
Section titled “Properties”after?
Section titled “after?”
optionalafter:string[]
Defined in: src/execution/types.ts:554
Tool call IDs that must complete before this call executes
arguments
Section titled “arguments”arguments:
Record<string,unknown>
Defined in: node_modules/@providerprotocol/ai/dist/index.d.ts:151
Inherited from
Section titled “Inherited from”ToolCall.arguments
toolCallId
Section titled “toolCallId”toolCallId:
string
Defined in: node_modules/@providerprotocol/ai/dist/index.d.ts:149
Inherited from
Section titled “Inherited from”ToolCall.toolCallId
toolName
Section titled “toolName”toolName:
string
Defined in: node_modules/@providerprotocol/ai/dist/index.d.ts:150
Inherited from
Section titled “Inherited from”ToolCall.toolName