package ocaml-ai-sdk

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

Module Ai_provider_anthropic.Cache_controlSource

Prompt caching control for Anthropic models.

Sourcetype breakpoint =
  1. | Ephemeral
    (*

    Cache control type. Currently only Ephemeral is supported.

    *)
Sourcetype t = {
  1. cache_type : breakpoint;
}
Sourceval ephemeral : t

Convenience constructor for ephemeral cache control.

Sourceval breakpoint_to_json : breakpoint -> Yojson.Basic.t
Sourceval breakpoint_of_json : Yojson.Basic.t -> breakpoint
Sourceval to_json : t -> Yojson.Basic.t
Sourceval of_json : Yojson.Basic.t -> t
Sourceval to_json_fields : t option -> (string * Yojson.Basic.t) list

Returns JSON fields for cache control. Empty list if None.