package verdict

  1. Overview
  2. Docs

Module VerdictSource

Sourcemodule Answer : sig ... end

The answer shapes the API returns, one per question kind.

Sourcemodule Client : sig ... end

Requests against the TypeSafe AI API, with the retry policy applied internally.

Sourcemodule Confidence : sig ... end

A number in [0,1] expressing confidence in a whole answer.

Sourcemodule Config : sig ... end

Validated configuration: API key, base URL, model, limits and retry policy.

Sourcemodule Content : sig ... end
module Decode : sig ... end
Sourcemodule Error : sig ... end

A closed error taxonomy.

Sourcemodule Host : sig ... end

A host that is usable as a TLS endpoint, either a literal IP address or a TLS hostname.

Sourcemodule Model : sig ... end
Sourcemodule Probability : sig ... end

A number in [0,1] that is one value of a probability distribution.

Sourcemodule Question : sig ... end

A question handle indexed by the type of answer it produces: a noul question yields Answer.Noul.t, a choice question Answer.Choice.t, and a score question Answer.Score.t.

Sourcemodule Request : sig ... end
Sourcemodule Response : sig ... end

A decoded POST /v1/systemone response.

Sourcemodule Retry : sig ... end

Retry policy: how many attempts, how long to wait, and how to read the server's Retry-After.

Sourcemodule Transport : sig ... end

Bounded HTTP/TLS transport.

Sourcemodule Usage : sig ... end
Sourcemodule Version : sig ... end