toolExecutorService
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?
optionalprojectId:string
Defined in: services/toolExecutorService.ts:22
documentIds?
optionaldocumentIds: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?
optionaloutput:Record<string,unknown>
Defined in: services/toolExecutorService.ts:28
error?
optionalerror: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
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
allowedTools
string[]
Returns
Promise<ToolExecutionResult[]>