# Class TrinityCoordinator

Coordinates Thinker, Worker, and Verifier roles for task execution.

- Defined in packages/nexus-agents/src/agents/collaboration/trinity-coordinator.ts:60

##### Index

### Constructors

constructor

### Methods

cancel
execute

## Constructors

### constructor

- new TrinityCoordinator(
  options?: TrinityConfig | TrinityCoordinatorOptions,
  ): TrinityCoordinator

  #### Parameters

  - `Optional` options: TrinityConfig | TrinityCoordinatorOptions

  #### Returns TrinityCoordinator

  - Defined in packages/nexus-agents/src/agents/collaboration/trinity-coordinator.ts:67

## Methods

### cancel

- cancel(reason: string): void

  #### Parameters

  - reason: string

  #### Returns void

  - Defined in packages/nexus-agents/src/agents/collaboration/trinity-coordinator.ts:86

### execute

- execute(
  options: TrinityExecuteOptions,
  ): Promise<Result<TrinityResult, AgentError>>

  #### Parameters

  - options: TrinityExecuteOptions

  #### Returns Promise<Result<TrinityResult, AgentError>>

  - Defined in packages/nexus-agents/src/agents/collaboration/trinity-coordinator.ts:91