mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 16:27:30 +00:00
Summary: - The branch adds a Google provider thinking-policy resolver and opt-in profile flag, updates shared thinking validation and cron/proof-policy tests, and adjusts ClawSweeper proof parsing. - Reproducibility: yes. source-reproducible: current main applies the generic off-only profile before provider ... figured thinking through that resolver. I did not execute a live systemd cron run in this read-only review. Automerge notes: - PR branch already contained follow-up commit before automerge: fix: preserve Google Gemini 3 cron thinking Validation: - ClawSweeper review passed for heada6cd2e826e. - Required merge gates passed before the squash merge. Prepared head SHA:a6cd2e826eReview: https://github.com/openclaw/openclaw/pull/85300#issuecomment-4517662575 Co-authored-by: Neerav Makwana <261249544+neeravmakwana@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: takhoffman Co-authored-by: takhoffman <781889+takhoffman@users.noreply.github.com>
19 lines
828 B
TypeScript
19 lines
828 B
TypeScript
import type {
|
|
ProviderDefaultThinkingPolicyContext,
|
|
ProviderThinkingProfile,
|
|
} from "openclaw/plugin-sdk/core";
|
|
import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import { buildProviderToolCompatFamilyHooks } from "openclaw/plugin-sdk/provider-tools";
|
|
import { resolveGoogleThinkingProfile } from "./provider-policy.js";
|
|
import { createGoogleThinkingStreamWrapper } from "./thinking-api.js";
|
|
|
|
export const GOOGLE_GEMINI_PROVIDER_HOOKS = {
|
|
...buildProviderReplayFamilyHooks({
|
|
family: "google-gemini",
|
|
}),
|
|
...buildProviderToolCompatFamilyHooks("gemini"),
|
|
resolveThinkingProfile: (context: ProviderDefaultThinkingPolicyContext) =>
|
|
resolveGoogleThinkingProfile(context) satisfies ProviderThinkingProfile | undefined,
|
|
wrapStreamFn: createGoogleThinkingStreamWrapper,
|
|
};
|