# Type Alias OrchestratorDefinition

OrchestratorDefinition:
| { type: "task"; task: Task }
| { type: "workflow"; templatePath: string }
| {
type: "policy";
policyId: string;
initialState: Record<string, unknown>;
}

Orchestrator definition - the input that defines what to orchestrate. This is a discriminated union to support different orchestration styles.

- Defined in packages/nexus-agents/src/core/types/orchestrator.ts:46