Ask typed questions about text, JSON, or media with the Gemini Decisions API.
A single request can combine Noul probabilities, Choice selections, and
Score ratings over shared state. The response preserves probabilities,
confidence, and token usage so application code can decide whether to act,
route, or request human review.
ChoiceAnswer.confidence and ScoreAnswer.confidence are the probability of the
selected label or level. The API's NoulAnswer confidence, max(noul, 1 - noul),
is not kept because it can be computed from noul. NoulAnswer.noul is always
between 0.01 and 0.99, so a threshold above 0.99 never matches.
Requests always use the Gemini Developer API.
Strings are sent as-is. Any other state, such as JSON objects, arrays, or LangChain
messages, is sent as JSON text, with messages converted to role/content objects.
LangChain standard media blocks (type of image, audio, video, or file,
with base64 or url data) are sent as native media at the position where they
appear in the JSON text.