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, string>

Static default serving-endpoint id per agent id, as resolved by describeAgentDefaultModel. "<dynamic>" when the model is a function decided at call time. Consumed by the plugin’s GET /default-model route handler so the client’s model picker can label its default option with the real endpoint’s humanized name.