package gemini

  1. Overview
  2. Docs

Support for parsing responses from a Gemini api REST endpoint.

module Json_result : sig ... end
type result_field = {
  1. result : Json_result.t;
}
val result_field_of_yojson : Yojson.Safe.t -> result_field Ppx_deriving_yojson_runtime.error_or
val sexp_of_result_field : result_field -> Sexplib0.Sexp.t
val result_field_of_sexp : Sexplib0.Sexp.t -> result_field
type t = {
  1. result : Json_result.t;
  2. payload : Yojson.Safe.t;
}
val parse : Yojson.Safe.t -> ([> Yojson.Safe.t ] -> ('a, string) Core.result) -> [ `Error of Error.detail | `Json_parse_error of Error.json_error | `Ok of 'a ]
OCaml

Innovation. Community. Security.