mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-14 10:41:23 +00:00
* fix(agents): preserve native Anthropic replay tool ids * docs(changelog): note native Anthropic replay ids * fix(agents): preserve native Anthropic replay ids selectively
13 lines
460 B
TypeScript
13 lines
460 B
TypeScript
import type {
|
|
ProviderReplayPolicy,
|
|
ProviderReplayPolicyContext,
|
|
} from "openclaw/plugin-sdk/plugin-entry";
|
|
import { buildNativeAnthropicReplayPolicyForModel } from "openclaw/plugin-sdk/provider-model-shared";
|
|
|
|
/**
|
|
* Returns the provider-owned replay policy for Anthropic transports.
|
|
*/
|
|
export function buildAnthropicReplayPolicy(ctx: ProviderReplayPolicyContext): ProviderReplayPolicy {
|
|
return buildNativeAnthropicReplayPolicyForModel(ctx.modelId);
|
|
}
|