Sequential Crew
The Sequential Crew is a specialized component that orchestrates multiple agents working together in sequence to solve complex tasks.

Sequential Crew interface and configuration options
Configuration Parameters
Required Parameters
- Workers: Agent workers configuration
- Memory: Shared memory system
- Cache: Result caching system
- Stop Words: Processing control
- Function Calling Limit: Call limits
- Tools: Available tools
Output Format
{
"outputText": string,
"metadata": {
"workersUsed": array,
"processingTime": string,
"toolsUsed": array,
"memoryUsage": {
"current": number,
"peak": number
}
}
}Example Usage
const sequentialCrew = new SequentialCrew({
workers: [
{
name: "Researcher",
role: "Research information",
tools: ["web-search", "document-reader"]
},
{
name: "Analyzer",
role: "Analyze findings",
tools: ["data-analysis", "summarizer"]
},
{
name: "Writer",
role: "Create final output",
tools: ["text-generator", "formatter"]
}
],
memory: {
type: "shared",
persistence: true
},
cache: {
enabled: true,
ttl: 3600
},
stopWords: ["complete", "finished", "error"],
functionCallingLimit: 50,
tools: ["web-search", "document-reader", "data-analysis",
"summarizer", "text-generator", "formatter"]
});
const result = await sequentialCrew.process({
input: "Research and write a report about renewable energy trends"
});Additional Resources
Best Practices
- Design efficient worker sequences
- Implement proper error handling
- Monitor worker performance
- Optimize memory usage
- Use appropriate caching strategies