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
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
maxMembers
• Optional
maxMembers: number
Maximum number of team members that can be created concurrently. Default: 5
Defined in
debug
• Optional
debug: boolean
Enable debug mode for detailed logging of team operations. Default: false
Defined in
maxTokenLimit
• Optional
maxTokenLimit: number
Maximum token limit for the entire conversation history. Default: 50000
Defined in
logger
• Optional
logger: Object
Logger for team operations. If not provided, no logging will be done.
Type declaration
Name | Type |
---|---|
info | (message : string ) => void |
warn | (message : string ) => void |
error | (message : string ) => void |
debug | (message : string ) => void |
Defined in
customTemplates
• Optional
customTemplates: AgentTemplate
[]
Custom agent templates to register in addition to built-in templates. Built-in templates are automatically available.
Defined in
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"