package chatoyant
Build not yet checked 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.19.0.tbz
sha256=64099f65cef748f611ab5157321a1537d9be74ccc82a3f7afa22e20747978304
sha512=2be8f10f1dfcc48aeaca1b9762dedf13f2f4929946153f73a135a82f8bf4170f308d2dbf3fff04aaf3ac729a2e0791c157affe700c981ab124aca9467f024c67
doc/chatoyant.schema/Chatoyant_schema/Codec/index.html
Module Chatoyant_schema.CodecSource
Typed JSON codecs that carry JSON Schema.
A codec is the small bridge Chatoyant needs for ergonomic tool definitions: one value knows how to describe JSON with schema, decode incoming JSON into an OCaml value, and encode an OCaml value back to JSON.
Source
val custom :
schema:Schema.field ->
encode:('a -> Chatoyant_runtime.Json.t) ->
decode:(Chatoyant_runtime.Json.t -> ('a, string) result) ->
'a tBuild a codec from explicit schema/encoder/decoder pieces.
This is primarily the low-level hook used by generated code and custom integrations. Prefer the typed builders or chatoyant.ppx in application code.
Return an equivalent codec with its schema transformed.
Decode a field from a JSON object, respecting optional codecs.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>