Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions docs/src/content/docs/agents/built-in/supervisor-agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ You can use the SupervisorAgent directly, bypassing the classifier, when you wan
});

// Use directly
const chatHistory = [];
const response = await supervisorAgent.processRequest(
"I need to modify my flight and check my refund status",
"user123",
"session456"
"session456",
chatHistory
);
```
</TabItem>
Expand Down Expand Up @@ -87,10 +89,12 @@ You can use the SupervisorAgent directly, bypassing the classifier, when you wan
))

# Use directly
chatHistory = []
response = await supervisor_agent.process_request(
"I need to modify my flight and check my refund status",
"user123",
"session456"
"session456",
chatHistory
)
```
</TabItem>
Expand Down Expand Up @@ -647,4 +651,4 @@ Here's a complete example showing how to use the SupervisorAgent in a typical sc
- Performance depends on slowest agent in parallel operations


By leveraging the SupervisorAgent, you can create sophisticated multi-agent systems with coordinated responses, maintained context, and efficient parallel processing. The agent's flexible architecture allows for customization while providing robust built-in capabilities for common coordination tasks.
By leveraging the SupervisorAgent, you can create sophisticated multi-agent systems with coordinated responses, maintained context, and efficient parallel processing. The agent's flexible architecture allows for customization while providing robust built-in capabilities for common coordination tasks.