package chatoyant
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml-first LLM SDK with Melange-generated JavaScript
Install
dune-project
Dependency
Authors
Maintainers
Sources
chatoyant-v0.12.4.tbz
sha256=fbf19dea0d39482e0263812504d94c682a9f3a6e93f68fe0c57b2d38ed4166b3
sha512=4e01be9c0ec9c16880f98360dec4ef5e0dddd9192e2113991b154e891b3bdaefb614051c2cb63afa0b714efa0e4cc4fd8054528fdc1995f3a4858fe2fcd50256
doc/chatoyant.schema/Chatoyant_schema/Schema/index.html
Module Chatoyant_schema.SchemaSource
Typed schema descriptors used for structured outputs and tool arguments.
This first layer models schema metadata explicitly. Later increments can add richer typed builders and generated/proxied ergonomics without changing the provider-facing JSON Schema contract.
Source
type field = | String of string_options| Number of number_options| Integer of number_options| Boolean of boolean_options| Null of base_options| Array of array_options| Object of object_options| Enum of enum_options| Literal of literal_options
Source
and string_options = {string_base : base_options;string_default : string option;min_length : int option;max_length : int option;pattern : string option;format : string_format option;
}Source
and number_options = {number_base : base_options;number_default : float option;minimum : float option;maximum : float option;exclusive_minimum : float option;exclusive_maximum : float option;multiple_of : float option;
}Source
and array_options = {array_base : base_options;items : field;min_items : int option;max_items : int option;unique_items : bool option;
}Source
and enum_options = {enum_base : base_options;values : Chatoyant_runtime.Json.t list;enum_default : Chatoyant_runtime.Json.t option;
}Source
val string :
?description:string ->
?optional:bool ->
?default:string ->
?min_length:int ->
?max_length:int ->
?pattern:string ->
?format:string_format ->
unit ->
fieldReplace the human-readable description on a schema field.
Source
val with_array_constraints :
?min_items:int ->
?max_items:int ->
?unique_items:bool ->
field ->
fieldApply array-specific validation constraints when field is an array.
Source
val with_string_constraints :
?min_length:int ->
?max_length:int ->
?pattern:string ->
field ->
fieldApply string-specific validation constraints when field is a string.
Apply numeric validation constraints when field is a number or integer.
Convert a field to JSON Schema draft-compatible JSON.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>