Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/anthropic / AnthropicAdapterOptions

Interface: AnthropicAdapterOptions

Defined in: packages/anthropic/src/adapter.ts:65

Properties

PropertyTypeDescriptionDefined in
apiKey?stringShorthand for sdkOptions.apiKey; setting both is a ConfigError.packages/anthropic/src/adapter.ts:67
baseURL?stringShorthand for sdkOptions.baseURL; setting both is a ConfigError.packages/anthropic/src/adapter.ts:69
capsMaxPages?numberThe refreshCaps() pagination bound (RV2904), the MCP maxPages doctrine applied to the provider's own metadata surface: past this many pages with more still reported, the refresh fails typed instead of truncating, because a silently partial caps table would clamp output bounds against limits that are not the model's. Cursor cycles (a page answering the cursor it was queried with, or one this sweep already used) are refused UNCONDITIONALLY, bound or none: a cycle is never a legitimate pagination step. Unset keeps pagination unbounded exactly like MCP without a declared cap, with only the cycle guards armed.packages/anthropic/src/adapter.ts:91
client?| Anthropic | AnthropicClientLikeA preconstructed client instead of the construction options above (combining them is a ConfigError): the official Anthropic instance (production; it must be constructed with maxRetries: 0) or a structural AnthropicClientLike mock (tests).packages/anthropic/src/adapter.ts:78
sdkOptions?AnthropicSdkOptionsOfficial SDK construction options; see AnthropicSdkOptions.packages/anthropic/src/adapter.ts:71