DecisionRequest

@Serializable
data class DecisionRequest(val model: ModelId, val input: DecisionInput, val questions: List<DecisionQuestion>, val promptCacheKey: String? = null, val promptCacheOptions: DecisionPromptCacheOptions? = null, val safetyIdentifier: String? = null)

Evaluates ordered classification or scoring questions against shared input.

Constructors

Link copied to clipboard
constructor(model: ModelId, input: DecisionInput, questions: List<DecisionQuestion>, promptCacheKey: String? = null, promptCacheOptions: DecisionPromptCacheOptions? = null, safetyIdentifier: String? = null)

Properties

Link copied to clipboard

Shared text or conversation evidence.

Link copied to clipboard

Model supporting the Decisions API.

Link copied to clipboard
@SerialName(value = "prompt_cache_key")
val promptCacheKey: String? = null

Optional caller-provided cache partition key.

Link copied to clipboard
@SerialName(value = "prompt_cache_options")
val promptCacheOptions: DecisionPromptCacheOptions? = null

Implicit or explicit prompt caching policy.

Link copied to clipboard

One to 400 questions; answers retain this order.

Link copied to clipboard
@SerialName(value = "safety_identifier")
val safetyIdentifier: String? = null

Opaque end-user identifier, separate from the API credential.