Hoosha Chat API
string · enum · requiredstring · maxLength: 256string · requiredstring · required
Decisions
Typed decisions from Jev: yes/no probabilities, choices, scores and image boxes.
Make a decision
POST
https://api.hoosha.com/v1
/decisions
Sends state and named questions to Jev and returns one typed answer
per question, keyed by the question's name.
Make a decision › Request Body
Fields not listed here are rejected with 400 unsupported_parameter,
except fields sent as null.
modelA decision model id.
Enum values:
jev-1.14
required
The content to evaluate, as a string or a JSON object or array.
object · minProps: 1 · maxProps: 64 · required
Questions keyed by a name you choose, 1 to 128 characters. Each answer comes back under the same name.
object · minProps: 1 · maxProps: 16
Images keyed by the reference string you write wherever the image
belongs in state, instructions or criteria. Every asset must
be referenced at least once.
userAn id for your end user. It is hashed before it reaches the model provider.
Make a decision › Responses
One typed answer per question, keyed by its name.
idmodelobject · required
One answer per question, keyed by the question's name.
object · required