Skip to main content

Orchestrator API

Orchestrator API

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

Quick Reference

MethodDescription
createCreates a new orchestrator instance with the specified configuration.
deleteDeletes an orchestrator instance permanently.
getRetrieves a specific orchestrator instance by its unique identifier.
listLists all orchestrator instances with optional filtering.
updateUpdates an existing orchestrator instance's configuration.

Methods


create

client.orchestrator.create(data: CreateOrchestratorRequest): Promise<OrchestratorInstance>

Creates a new orchestrator instance with the specified configuration.

Sets up a new orchestrator that will coordinate agent interactions according to the provided rules and workflow definitions. The orchestrator can be started immediately or configured further before activation.

ParameterTypeRequiredDescription
dataCreateOrchestratorRequestYesThe orchestrator creation configuration

Returns: Promise<OrchestratorInstance> — A promise that resolves to the newly created orchestrator instance

Full reference →


delete

client.orchestrator.delete(id: string): Promise<void>

Deletes an orchestrator instance permanently.

Removes the orchestrator and its configuration. Any active workflows managed by this orchestrator should be stopped before deletion.

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the orchestrator to delete

Returns: Promise<void> — A promise that resolves when the orchestrator has been deleted

Full reference →


get

client.orchestrator.get(id: string): Promise<OrchestratorInstance>

Retrieves a specific orchestrator instance by its unique identifier.

Returns the full configuration and current state of an orchestrator, including its assigned agents, coordination rules, and execution history.

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the orchestrator to retrieve

Returns: Promise<OrchestratorInstance> — A promise that resolves to the orchestrator instance details

Full reference →


list

client.orchestrator.list(params?: OrchestratorListParams): Promise<OrchestratorInstance[]>

Lists all orchestrator instances with optional filtering.

Returns the collection of configured orchestrators, which can be filtered by status, type, or other criteria. Each orchestrator defines a coordination strategy for multi-agent workflows.

ParameterTypeRequiredDescription
paramsOrchestratorListParamsNoOptional filtering and pagination parameters

Returns: Promise<OrchestratorInstance[]> — A promise that resolves to an array of orchestrator instances

Full reference →


update

client.orchestrator.update(id: string, data: UpdateOrchestratorRequest): Promise<OrchestratorInstance>

Updates an existing orchestrator instance's configuration.

Modifies the settings, rules, or agent assignments of an orchestrator. Changes take effect for subsequent workflow executions.

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the orchestrator to update
dataUpdateOrchestratorRequestYesThe fields to update on the orchestrator

Returns: Promise<OrchestratorInstance> — A promise that resolves to the updated orchestrator instance

Full reference →