Interface: BuiltAgents
Output of buildAgents: resolved agents plus the default id.
Properties
Section titled “Properties”agents
Section titled “agents”agents:
Record<string,Agent>
ambientTools
Section titled “ambientTools”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
Section titled “defaultAgentId”defaultAgentId:
string
defaultModels
Section titled “defaultModels”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.