Skip to content

Add agent routing and model routing pages for RoutedAgent/RoutedLlm in ADK JS#1709

Open
koverholt wants to merge 11 commits intomainfrom
agent-and-model-routing
Open

Add agent routing and model routing pages for RoutedAgent/RoutedLlm in ADK JS#1709
koverholt wants to merge 11 commits intomainfrom
agent-and-model-routing

Conversation

@koverholt
Copy link
Copy Markdown
Collaborator

@koverholt koverholt commented Apr 29, 2026

Add two new docs pages for RoutedAgent and RoutedLlm support in ADK JS v1.0.0 (google/adk-js#215), covering basic usage, fallback on error, planning mode, and auto-routing by complexity. Agent routing lives under Agents and model routing lives under Models for Agents.

All code samples and API signatures verified against google/adk-js source and tested with ADK JS 1.0.0.

Build preview:

@koverholt koverholt requested a review from joefernandez April 29, 2026 21:52
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 29, 2026

Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit 45afd58
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/69f40365afe602000859ef0a
😎 Deploy Preview https://deploy-preview-1709--adk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread docs/agents/models/routing.md
Comment thread docs/agents/routing.md
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, I'd prefer that we name this file /agents/routing.md rather than /agents/agent-routing.md to keep the file names from getting too long.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

furthermore, I'm not sure I agree this is an "Agents" feature, but an "Agent Runtime" feature, because the RoutedAgent is selecting agents, and not actually running an agent process itself.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed in 4c24d79.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

furthermore, I'm not sure I agree this is an "Agents" feature, but an "Agent Runtime" feature, because the RoutedAgent is selecting agents, and not actually running an agent process itself.

I went back and forth on this one. However, RoutedAgent extends BaseAgent, so it's an agent type in the class hierarchy, the same way the three workflow agents (SequentialAgent, ParallelAgent, LoopAgent) are. Those workflow agents are also orchestrators that select and delegate to sub-agents without running agent logic themselves. So I decided to have this live under "Agents" where users are building their agent definitions. But I'm happy to move this to Agent Runtime instead if you feel strongly.

Comment thread docs/agents/models/routing.md Outdated
Comment thread docs/agents/models/routing.md Outdated
Comment thread docs/agents/routing.md Outdated
Comment thread docs/agents/routing.md
Comment thread docs/agents/models/routing.md
Comment thread docs/agents/routing.md
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

furthermore, I'm not sure I agree this is an "Agents" feature, but an "Agent Runtime" feature, because the RoutedAgent is selecting agents, and not actually running an agent process itself.

@koverholt
Copy link
Copy Markdown
Collaborator Author

koverholt commented May 1, 2026

Thanks for the review @joefernandez. All comments addressed and ready for re-review.

I left one comment unresolved (with explanation) about whether to leave the agent routing page in the agents section or move to runtime section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants