Interface: ToolDependencyOptions
@providerprotocol/agents / index / ToolDependencyOptions
Interface: ToolDependencyOptions
Section titled “Interface: 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
Example
Section titled “Example”// Tool that must execute alone (barrier)const readTool = { name: 'read_file', sequential: true, // ... other tool config};
// Tool that depends on another toolconst writeTool = { name: 'write_file', dependsOn: ['read_file'], // ... other tool config};Extended by
Section titled “Extended by”Properties
Section titled “Properties”dependsOn?
Section titled “dependsOn?”
optionaldependsOn:string[]
Defined in: src/execution/types.ts:485
Tool names that must complete before this tool can execute. Used for explicit dependency chains.
sequential?
Section titled “sequential?”
optionalsequential: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.