Skip to main content

Interface: TeamConfig

Defined in: packages/orchestration/src/team/types.ts:64

Configuration for a persistent Team.

The Team itself is durable (lives in the host app's DB); each call to chat / dispatchTicket / createAndDispatch builds a fresh ephemeral Crew or run underneath.

Properties

coordinator?

optional coordinator?: Baleybot<undefined, Record<string, never>>

Defined in: packages/orchestration/src/team/types.ts:69

Coordinator Baleybot override. If unset, a default coordinator is built using coordinatorModel.


coordinatorInstructions?

optional coordinatorInstructions?: string

Defined in: packages/orchestration/src/team/types.ts:73

Extra instructions appended to coordinator system prompt.


coordinatorModel?

optional coordinatorModel?: string | ModelConfig

Defined in: packages/orchestration/src/team/types.ts:71

Coordinator model (defaults to Baleybot auto-select).


members

members: TeamMemberSpec[]

Defined in: packages/orchestration/src/team/types.ts:66

The persistent roster.


onCoordinatorStreamEvent?

optional onCoordinatorStreamEvent?: (event, agentName) => void

Defined in: packages/orchestration/src/team/types.ts:96

Parameters

event

BaleybotStreamEvent

agentName

string

Returns

void


onWorkerStreamEvent?

optional onWorkerStreamEvent?: (runId, event, agentName) => void

Defined in: packages/orchestration/src/team/types.ts:95

Stream callbacks forwarded to the underlying Crew.

Parameters

runId

string

event

BaleybotStreamEvent

agentName

string

Returns

void


schedulerIntervalMs?

optional schedulerIntervalMs?: number

Defined in: packages/orchestration/src/team/types.ts:92

Scheduler heartbeat in ms (default 5000).


stores?

optional stores?: object

Defined in: packages/orchestration/src/team/types.ts:84

Stores for tickets and runs. Defaults differ by tier:

  • direct dispatch: one in-memory pair per Team (cached on the backing orchestrator and reused across dispatches)
  • chat / buildCrew: fresh in-memory pair per Crew (one per call)

Provide explicit stores to share state across both paths and across Team rebuilds (e.g. a SQLite-backed pair).

runs

runs: RunStore

tickets

tickets: TicketStore


ticketDefaults?

optional ticketDefaults?: Partial<TicketConfig>

Defined in: packages/orchestration/src/team/types.ts:86

Default ticket fields merged on every dispatch (e.g. groupChatId).


workerTools?

optional workerTools?: boolean

Defined in: packages/orchestration/src/team/types.ts:89

Enable worker collaboration tools (request_help, get_team_context).