Module Content_block.Thinking

Assistant's internal reasoning blocks.

type t

The type of thinking blocks.

val jsont : t Jsont.t

jsont is the Jsont codec for thinking blocks. Use Jsont.Json.encode jsont and Jsont.Json.decode jsont for serialization. Use Jsont.pp_value jsont () for pretty-printing.

val create : thinking:string -> signature:string -> t

create ~thinking ~signature creates a new thinking block.

  • parameter thinking

    The assistant's internal reasoning

  • parameter signature

    Cryptographic signature for verification

val thinking : t -> string

thinking t returns the thinking content.

val signature : t -> string

signature t returns the cryptographic signature.

val unknown : t -> Unknown.t

unknown t returns any unknown fields from JSON parsing.