Skip to content
Discussion options

You must be logged in to vote

@networkandcode I see what you mean! The Router workflow has two specific helpers for Anthropic and OpenAI, but they are purely syntactic sugar. You can very easily use Router workflow with Google Gemini this way:

return LLMRouter.create(
    name=name,
    llm_factory=GoogleAugmentedLLM, <-- this is key
    server_names=server_names, # if any
    agents=agents, # if any
    functions=functions, # if any
    routing_instruction=routing_instruction, # your prompt
    context=context,
    **kwargs,
)

BTW there's also https://github.com/lastmile-ai/mcp-agent/blob/main/src/mcp_agent/workflows/factory.py#L119 which lets you construct things more easily. I also just realized thanks to your que…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@networkandcode
Comment options

@saqadri
Comment options

Answer selected by andrew-lastmile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants