applyGeminiThoughtSummaries
applyGeminiThoughtSummaries<
T>(model):T
Defined in: packages/core/src/providers/geminiThinking.ts:61
Wire thought summaries into a ChatGoogle model. Overrides the instance’s invocationParams so
that generationConfig.thinkingConfig.includeThoughts is set — but ONLY when the library derived
no thinking config at all, which is the “user configured nothing, the API default budget applies”
case. When the user DID configure a budget or level, @langchain/google has already decided
includeThoughts from it (true when thinking is on, false when they asked for none/minimal) and
that decision is left exactly as it stands. Returns the same model instance for chaining.
Type Parameters
Section titled “Type Parameters”T extends BaseChatModel<BaseChatModelCallOptions, AIMessageChunk<MessageStructure<MessageToolSet>>>
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”T