Skip to content

team / Exports / TeamOptions

Interface: TeamOptions

Team creation options for template-based teams

Description

Configuration interface for creating teams when using agent templates. Since templates define their own AI providers, models, and settings, you only need to provide the basic AI providers and optional configuration.

Example

typescript
const team = createTeam({
  aiProviders: [openaiProvider, anthropicProvider],
  debug: true
});

Table of contents

Properties

Properties

aiProviders

aiProviders: AIProvider[]

AI providers available for templates to use. Each template specifies which provider it prefers.

Defined in

types.ts:24


maxMembers

Optional maxMembers: number

Maximum number of team members that can be created concurrently. Default: 5

Defined in

types.ts:30


debug

Optional debug: boolean

Enable debug mode for detailed logging of team operations. Default: false

Defined in

types.ts:36


maxTokenLimit

Optional maxTokenLimit: number

Maximum token limit for the entire conversation history. Default: 50000

Defined in

types.ts:42


logger

Optional logger: Object

Logger for team operations. If not provided, no logging will be done.

Type declaration

NameType
info(message: string) => void
warn(message: string) => void
error(message: string) => void
debug(message: string) => void

Defined in

types.ts:47


customTemplates

Optional customTemplates: AgentTemplate[]

Custom agent templates to register in addition to built-in templates. Built-in templates are automatically available.

Defined in

types.ts:58


leaderTemplate

Optional leaderTemplate: string

Name of the agent template to use for the team coordinator/leader role. This template should be specialized for task analysis, work distribution, and coordination. Default: "task_coordinator"

Defined in

types.ts:65

Released under the MIT License.