✨ Add ConciergeRouter for multi-agent orchestration with example assistants #90
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🧠 Overview
This PR introduces a new
ConciergeRouterto the Celai platform, enabling multi-agent orchestration via dynamic assistant selection and runtime transfers. This router intelligently decides which sub-agent should respond based on conversation context, while also allowing agents to request control transfers mid-dialogue. Additionally, this PR includes a runnable demo with two example agents showcasing how to use this orchestration pattern.📂 Key Additions
Concierge Agent
cel/assistants/router/concierge_agent.pyConciergeRouterclass, extendingAgenticRouter.request_transfertool into all sub-agents to allow dynamic role switching during a session.active_agent: controls which agent is currently handling the conversation.transfer_requested: flag that triggers an immediate rerouting of the message.MAX_TRANSFER_PER_TURNtimes per message to avoid loops.examples/19_concierge_router_experimental/assistant.pyConciergeRouteras the main orchestrator.TelegramConnectorfor user interaction.examples/19_concierge_router_experimental/balance_agent.py&transfer_agent.pyMacawAssistantand include descriptive prompts for routing.Agentic Router improvement
cel/assistants/router/agentic_router.pyAgenticRouterby including both the name and description of each assistant.✅ Features
🧪 Usage
cd examples/19_concierge_router_experimental python assistant.pyℹ️ Notes
ConciergeRouteris backward-compatible with existingAgenticRouterusage.