package ocaml-ai-sdk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ai_provider_anthropic.Cache_control_optionsSource

Per-content-part cache control via Provider_options.

Separate from Anthropic_options because cache control is per-part while Anthropic_options is per-request.

Sourcetype Ai_provider.Provider_options.key +=
  1. | Cache : Cache_control.t Ai_provider.Provider_options.key
    (*

    GADT key for per-part cache control.

    *)

Add cache control to provider options. No-op if cache_control is None.

Sourceval get_cache_control : Ai_provider.Provider_options.t -> Cache_control.t option

Extract cache control from provider options.