Skip to main content

toolExecutorService

Workspace API


Workspace API / services/toolExecutorService

services/toolExecutorService

Interfaces

ToolExecutionContext

Defined in: services/toolExecutorService.ts:17

Properties

orgId

orgId: string

Defined in: services/toolExecutorService.ts:18

userId

userId: string

Defined in: services/toolExecutorService.ts:19

runId

runId: string

Defined in: services/toolExecutorService.ts:20

stepIndex

stepIndex: number

Defined in: services/toolExecutorService.ts:21

projectId?

optional projectId: string

Defined in: services/toolExecutorService.ts:22

documentIds?

optional documentIds: string[]

Defined in: services/toolExecutorService.ts:23


ToolExecutionResult

Defined in: services/toolExecutorService.ts:26

Properties

success

success: boolean

Defined in: services/toolExecutorService.ts:27

output?

optional output: Record<string, unknown>

Defined in: services/toolExecutorService.ts:28

error?

optional error: object

Defined in: services/toolExecutorService.ts:29

code

code: string

message

message: string

durationMs

durationMs: number

Defined in: services/toolExecutorService.ts:33

Functions

executeTool()

executeTool(toolName, args, context, allowedTools): Promise<ToolExecutionResult>

Defined in: services/toolExecutorService.ts:43

Execute a tool with the given arguments

Parameters

toolName

string

args

Record<string, unknown>

context

ToolExecutionContext

allowedTools

string[]

Returns

Promise<ToolExecutionResult>


executeToolsBatch()

executeToolsBatch(tools, context, allowedTools): Promise<ToolExecutionResult[]>

Defined in: services/toolExecutorService.ts:315

Execute multiple tools in parallel

Parameters

tools

object[]

context

ToolExecutionContext

allowedTools

string[]

Returns

Promise<ToolExecutionResult[]>