team / Exports
team
Table of contents
Classes
Interfaces
Functions
Functions
createTeam
▸ createTeam(options
): TeamContainer
Create a Multi-Agent Team with Template-Based Configuration
Parameters
Name | Type | Description |
---|---|---|
options | TeamOptions | Simplified configuration options for the team |
Returns
A new TeamContainer instance ready for multi-agent collaboration
Description
Creates a TeamContainer instance using a simplified configuration interface. Since agent templates define their own AI providers, models, and settings, you only need to provide the AI providers and basic configuration. The team automatically delegates complex tasks to specialized temporary agents, enabling sophisticated problem-solving through coordinated teamwork.
Example
typescript
import { createTeam } from '@robota-sdk/team';
import { OpenAIProvider } from '@robota-sdk/openai';
import { AnthropicProvider } from '@robota-sdk/anthropic';
const team = createTeam({
aiProviders: [openaiProvider, anthropicProvider],
debug: true
});
// Templates automatically use their preferred providers and settings
const response = await team.execute(`
Create a comprehensive business plan with:
1) Market analysis
2) Financial projections
3) Marketing strategy
`);
Example
typescript
const team = createTeam({
aiProviders: [openaiProvider, anthropicProvider, googleProvider],
maxMembers: 10,
maxTokenLimit: 100000,
debug: true,
logger: console,
leaderTemplate: 'custom_coordinator'
});
// Team intelligently breaks down complex requests
const result = await team.execute(
'Design a complete e-commerce platform including frontend, backend, database design, and deployment strategy'
);
// Monitor team performance
const stats = team.getStats();
console.log(`Created ${stats.totalAgentsCreated} specialized agents`);
See
- TeamContainer - The underlying team container class
- TeamOptions - Available configuration options