Skip to content

Interface: BuiltAgents

Output of buildAgents: resolved agents plus the default id.

agents: Record<string, Agent>


ambientTools: MastraTools

Ambient tools shared across every agent (the built-in system tools spread with config.tools). Surfaced so the optional MCP server can re-expose them when MastraMcpConfig.tools is enabled.


defaultAgentId: string


defaultModels: Record<string, AgentDefaultModel>

Default model intent per agent id. An unconfigured agent is "auto" and resolves the highest-ranked live endpoint; a string is "configured"; a custom function is "dynamic". Consumed by the plugin’s GET /default-model route.