logoalt Hacker News

swyxyesterday at 11:04 PM1 replyview on HN

> a `.network()` method that turns any agent into a routing agent

say more pls?


Replies

calcsamyesterday at 11:42 PM

We've always supported letting folks specify their agent hierarchy, eg agent supervisor, workflow orchestrator, mix and match, etc.

But people kept asking us for a multi-agent primitive out of the box so we shipped `agent.network()`, which is basically dynamic hierarchy decided at runtime, pass in an array of workflows and agents to the routing agent and let it decide what to do, how long to execute for, etc!

https://mastra.ai/docs/agents/networks

show 1 reply