package ocaml-ai-sdk

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

Module Ai_provider_anthropic.ThinkingSource

Thinking configuration for Claude models.

Sourcetype budget_tokens = private int

Thinking budget — always >= 1024 tokens. Use budget or budget_exn to construct.

Sourceval budget : int -> (budget_tokens, string) result

Returns Error if budget < 1024.

Sourceval budget_exn : int -> budget_tokens

Raises Invalid_argument if budget < 1024.

Sourceval to_int : budget_tokens -> int

Extract the integer value.

Sourcetype display =
  1. | Summarized
  2. | Omitted
Sourcetype t =
  1. | Enabled of {
    1. budget_tokens : budget_tokens;
    2. display : display option;
    }
  2. | Adaptive of {
    1. display : display option;
    }
  3. | Disabled