Documentation
¶
Overview ¶
Package laya is a Decider backed by Laya, an open decision model, run as a sidecar beside Cartograph (deploy/laya): the model needs a runtime the static binary does not carry, so it is reached over HTTP on the same host or network. The protocol is Laya's own systemOne call as JSON:
POST <url>/decide
{"state": "...", "questions": {"name": {"type": "choice"|"noul",
"instructions": "...", "criteria": {"key": "description"}}}}
-> {"answers": {"name": {"choice": "key", "probabilities": {...},
"noul": 0.82}}}
A sidecar that cannot be reached, or answers with an error, is decide.ErrUnavailable, so the engine answers as it would without one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.