Skip to main content

Conductor

Main orchestration class for executing ensembles and agents programmatically.

Constructor

ConductorOptions

Env

Methods

execute()

Execute an ensemble workflow.
Parameters:
  • ensemble - Ensemble name
  • inputs - Input data
  • options - Execution options
Returns: Promise<ExecutionResult>
Example:

executeAgent()

Execute a single agent.
Example:

getState()

Get current ensemble state.
Example:

setState()

Update ensemble state.
Example:

listEnsembles()

List available ensembles.
Returns:

listAgents()

List available agents.

getComponent()

Get a versioned component.
Example:

Error Handling

Executor

Low-level execution engine (typically not used directly).

Parser

YAML parser for ensemble definitions.

StateManager

State management for ensemble execution.

ExecutionOptions

ExecutionError

Best Practices

1. Reuse Conductor Instance
2. Handle Errors Properly
3. Use Type Safety
4. Enable Tracing in Development

Next Steps

Agent Classes

Agent API reference

SDK Methods

Complete method reference

Testing Utilities

Testing helpers

HTTP API

REST API reference