Skip to content

Interface: ToolDependencyOptions

@providerprotocol/agents


@providerprotocol/agents / index / ToolDependencyOptions

Defined in: src/execution/types.ts:474

Tool dependency options for execution ordering.

These options extend the base UPP Tool interface with UAP-specific fields for controlling tool execution order. Tools can declare dependencies on other tools or require sequential execution.

UAP-1.0 Spec Section 8.5

// Tool that must execute alone (barrier)
const readTool = {
name: 'read_file',
sequential: true,
// ... other tool config
};
// Tool that depends on another tool
const writeTool = {
name: 'write_file',
dependsOn: ['read_file'],
// ... other tool config
};

optional dependsOn: string[]

Defined in: src/execution/types.ts:485

Tool names that must complete before this tool can execute. Used for explicit dependency chains.


optional sequential: boolean

Defined in: src/execution/types.ts:479

If true, this tool must complete before other tools start. Sequential tools create a barrier in parallel execution.