Add agent routing and model routing pages for RoutedAgent/RoutedLlm in ADK JS#1709
Add agent routing and model routing pages for RoutedAgent/RoutedLlm in ADK JS#1709
Conversation
✅ Deploy Preview for adk-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
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. |
… in rendered snippet
Add two new docs pages for
RoutedAgentandRoutedLlmsupport 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-jssource and tested with ADK JS 1.0.0.Build preview: