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.
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”(args) => Promise<MastraModelConfig>