mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 16:20:21 +00:00
13 lines
448 B
TypeScript
13 lines
448 B
TypeScript
import type {
|
|
ProviderReplayPolicy,
|
|
ProviderReplayPolicyContext,
|
|
} from "openclaw/plugin-sdk/plugin-entry";
|
|
import { buildAnthropicReplayPolicyForModel } from "openclaw/plugin-sdk/provider-model-shared";
|
|
|
|
/**
|
|
* Returns the provider-owned replay policy for Anthropic transports.
|
|
*/
|
|
export function buildAnthropicReplayPolicy(ctx: ProviderReplayPolicyContext): ProviderReplayPolicy {
|
|
return buildAnthropicReplayPolicyForModel(ctx.modelId);
|
|
}
|