Decisions

Create Decisions

TypeSafe-compatible System One decisions endpoint.

post/v3/alpha/decisions

Request

  • Base URL
    https://api.edenai.run
  • Auth
    HTTP bearer

Request body

tagsunknown
questionsobject required

Typed questions keyed by name: noul (yes/no probability), choice (one of the criteria keys) or score (position on the ordered criteria rubric).

modelstring required

Model identifier in 'provider/model' format, e.g. 'typesafe/jev-latest'.

fallbacksstring[] nullable

Decision models to try, in order, if the primary model fails. Each is a 'provider/model' id or a model name with no provider prefix. Example: ['typesafe/jev-latest'].

metadataobject nullable

Arbitrary metadata attached to the request.

extra_headersobject nullable

Additional HTTP headers forwarded to the provider API.

extra_bodyobject nullable

Additional body fields forwarded to the provider API.

Example request

{
  "tags": {
    "client": "acme",
    "project": "invoices"
  }
}

Response

Successful Response

costnumber nullable
providerstring nullable
idstring nullable

TypeSafe request id (x-typesafe-request-id).

modelstring required
answersobject required

Changes

No recorded changes to this operation across all 1 revision of this API.