Skip to content

Function: summaryModel()

summaryModel(config): (args) => Promise<MastraModelConfig>

Resolve the small-tier model for summarization / titling. Reused by both the summarizer agent and Mastra memory’s generateTitle.

Returned as a requestContext-taking function (a Mastra DynamicArgument<MastraModelConfig>) so each call mints user-scoped tokens via buildModel, exactly like the primary agents.

MastraPluginConfig

(args) => Promise<MastraModelConfig>