Skip to main content

OrchestratorUpdateTool

@codebolt/codeboltjs


Class: OrchestratorUpdateTool

Defined in: packages/codeboltjs/src/tools/orchestrator/orchestrator-update.ts:78

Base class for declarative tools with built-in validation

Extends

Constructors

Constructor

new OrchestratorUpdateTool(): OrchestratorUpdateTool;

Defined in: packages/codeboltjs/src/tools/orchestrator/orchestrator-update.ts:81

Returns

OrchestratorUpdateTool

Overrides

BaseDeclarativeTool.constructor

Properties

PropertyModifierTypeDefault valueDescriptionInherited fromDefined in
canUpdateOutputreadonlybooleanfalseWhether the tool supports live (streaming) outputBaseDeclarativeTool.canUpdateOutputpackages/codeboltjs/src/tools/base-tool.ts:69
descriptionreadonlystringundefinedDescription of what the tool doesBaseDeclarativeTool.descriptionpackages/codeboltjs/src/tools/base-tool.ts:65
displayNamereadonlystringundefinedThe user-friendly display name of the toolBaseDeclarativeTool.displayNamepackages/codeboltjs/src/tools/base-tool.ts:64
isOutputMarkdownreadonlybooleantrueWhether the tool's output should be rendered as markdownBaseDeclarativeTool.isOutputMarkdownpackages/codeboltjs/src/tools/base-tool.ts:68
kindreadonlyKindundefinedThe kind of tool for categorization and permissionsBaseDeclarativeTool.kindpackages/codeboltjs/src/tools/base-tool.ts:66
namereadonlystringundefinedThe internal name of the tool (used for API calls)BaseDeclarativeTool.namepackages/codeboltjs/src/tools/base-tool.ts:63
Namereadonlystring'orchestrator_update'--packages/codeboltjs/src/tools/orchestrator/orchestrator-update.ts:79
parameterSchemareadonlyunknownundefined-BaseDeclarativeTool.parameterSchemapackages/codeboltjs/src/tools/base-tool.ts:67

Accessors

explanation

Get Signature

get explanation(): string;

Defined in: packages/codeboltjs/src/tools/base-tool.ts:76

One sentence explanation as to why this tool is being used, and how it contributes to the goal. Defaults to description if not implemented by subclass.

Returns

string

One sentence explanation as to why this tool is being used, and how it contributes to the goal.

Inherited from

BaseDeclarativeTool.explanation


genAISchema

Get Signature

get genAISchema(): FunctionDeclaration;

Defined in: packages/codeboltjs/src/tools/base-tool.ts:118

Get Google GenAI schema format (for backward compatibility)

Returns

FunctionDeclaration

Function declaration schema for Google GenAI (for backward compatibility)

Inherited from

BaseDeclarativeTool.genAISchema


openAIFunctionCall

Get Signature

get openAIFunctionCall(): OpenAIFunctionCall;

Defined in: packages/codeboltjs/src/tools/base-tool.ts:102

Get OpenAI function call format

Returns

OpenAIFunctionCall

Inherited from

BaseDeclarativeTool.openAIFunctionCall


schema

Get Signature

get schema(): OpenAIToolSchema;

Defined in: packages/codeboltjs/src/tools/base-tool.ts:83

Primary schema format (OpenAI tool schema)

Returns

OpenAIToolSchema

Primary schema format (OpenAI tool schema)

Inherited from

BaseDeclarativeTool.schema

Methods

build()

build(params: OrchestratorUpdateParams): ToolInvocation<OrchestratorUpdateParams, ToolFrameworkResult>;

Defined in: packages/codeboltjs/src/tools/base-tool.ts:215

The core of the pattern. It validates parameters and, if successful, returns a ToolInvocation object that encapsulates the logic for the specific, validated call.

Parameters

ParameterType
paramsOrchestratorUpdateParams

Returns

ToolInvocation<OrchestratorUpdateParams, ToolFrameworkResult>

Inherited from

BaseDeclarativeTool.build


buildAndExecute()

buildAndExecute(
params: OrchestratorUpdateParams,
signal: AbortSignal,
updateOutput?: (output: string) => void): Promise<ToolFrameworkResult>;

Defined in: packages/codeboltjs/src/tools/base-tool.ts:145

A convenience method that builds and executes the tool in one step.

Parameters

ParameterType
paramsOrchestratorUpdateParams
signalAbortSignal
updateOutput?(output: string) => void

Returns

Promise<ToolFrameworkResult>

Inherited from

BaseDeclarativeTool.buildAndExecute


createInvocation()

protected createInvocation(params: OrchestratorUpdateParams): ToolInvocation<OrchestratorUpdateParams, ToolFrameworkResult>;

Defined in: packages/codeboltjs/src/tools/orchestrator/orchestrator-update.ts:127

Parameters

ParameterType
paramsOrchestratorUpdateParams

Returns

ToolInvocation<OrchestratorUpdateParams, ToolFrameworkResult>

Overrides

BaseDeclarativeTool.createInvocation


validateBuildAndExecute()

validateBuildAndExecute(params: OrchestratorUpdateParams, abortSignal: AbortSignal): Promise<ToolFrameworkResult>;

Defined in: packages/codeboltjs/src/tools/base-tool.ts:174

A convenience method that builds and executes the tool in one step. Never throws.

Parameters

ParameterType
paramsOrchestratorUpdateParams
abortSignalAbortSignal

Returns

Promise<ToolFrameworkResult>

Inherited from

BaseDeclarativeTool.validateBuildAndExecute


validateToolParams()

validateToolParams(params: OrchestratorUpdateParams): string | null;

Defined in: packages/codeboltjs/src/tools/base-tool.ts:223

Validates the raw tool parameters. Subclasses should override this to add custom validation logic beyond the JSON schema check.

Parameters

ParameterType
paramsOrchestratorUpdateParams

Returns

string | null

Inherited from

BaseDeclarativeTool.validateToolParams


validateToolParamValues()

protected validateToolParamValues(params: OrchestratorUpdateParams): string | null;

Defined in: packages/codeboltjs/src/tools/orchestrator/orchestrator-update.ts:120

Parameters

ParameterType
paramsOrchestratorUpdateParams

Returns

string | null

Overrides

BaseDeclarativeTool.validateToolParamValues