nexus-agents - v2.80.0
    Preparing search index...

    Interface IOrchestrator

    Unified orchestrator interface.

    This interface provides a canonical path for all orchestration in the system, regardless of the underlying strategy.

    const orchestrator: IOrchestrator = factory.create('orchestrator');

    const result = await orchestrator.execute(
    { type: 'task', task: myTask },
    { timeout: 30000 }
    );

    if (result.ok) {
    console.log('Output:', result.value.output);
    }
    interface IOrchestrator {
        id: string;
        type: OrchestratorType;
        execute(
            definition: OrchestratorDefinition,
            inputs: Record<string, unknown>,
            options?: OrchestratorExecuteOptions,
        ): Promise<Result<OrchestratorResult, OrchestratorError>>;
        getStatus(executionId: string): ExecutionStatus;
        cancel(
            executionId: string,
            reason?: string,
        ): Promise<Result<void, OrchestratorError>>;
        registerAgent?(agent: IAgent): void;
        unregisterAgent?(agentId: string): void;
        listAgents?(): { id: string; role: AgentRole }[];
        getHistory?(limit?: number): OrchestratorResult[];
    }

    Implemented by

    Index

    Properties

    id: string

    Unique orchestrator instance ID

    Orchestrator type

    Methods