SequentialToolExecutor
Defined in: src/tools/executors/sequential.ts:23
Executes tool calls one at a time.
Example
Section titled “Example”import { Agent, SequentialToolExecutor } from '@strands-agents/sdk'
// The string shorthand keeps imports minimal.const agent = new Agent({ toolExecutor: 'sequential' })
// Passing an instance is equivalent if you prefer to be explicit.const explicitAgent = new Agent({ toolExecutor: new SequentialToolExecutor() })Extends
Section titled “Extends”ToolExecutor
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SequentialToolExecutor(): SequentialToolExecutor;Returns
Section titled “Returns”SequentialToolExecutor
Inherited from
Section titled “Inherited from”ToolExecutor.constructorMethods
Section titled “Methods”executeTool()
Section titled “executeTool()”protected executeTool( options, toolUseBlock,invocationState): AsyncGenerator<AgentStreamEvent, ToolResultBlock, undefined>;Defined in: src/tools/executors/executor.ts:75
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options | ToolExecutorOptions |
toolUseBlock | ToolUseBlock |
invocationState | InvocationState |
Returns
Section titled “Returns”AsyncGenerator<AgentStreamEvent, ToolResultBlock, undefined>
Inherited from
Section titled “Inherited from”ToolExecutor.executeTool_storePendingToolExecution()
Section titled “_storePendingToolExecution()”protected _storePendingToolExecution( options, assistantMessage, completedToolResults): void;Defined in: src/tools/executors/executor.ts:175
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options | ToolExecutorOptions |
assistantMessage | Message |
completedToolResults | ReadonlyMap<string, ToolResultBlock> |
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”ToolExecutor._storePendingToolExecution