Skip to content

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.

T extends BaseChatModel<BaseChatModelCallOptions, AIMessageChunk<MessageStructure<MessageToolSet>>>

T

T