Module: RubynCode::LLM::Adapters::TokenCaching

Included in:
Anthropic
Defined in:
lib/rubyn_code/llm/adapters/token_caching.rb

Overview

Cached access to the Anthropic credential.

TokenStore.load shells out to the macOS keychain, so the loaded tokens are cached per adapter instance. The cache drops itself once the token nears expiry (picking up an externally refreshed credential) and must be invalidated on 401 responses.