DecisionService

Classification plus proposition assessment. Applications own any routing or revision policy.

Inheritors

Properties

Link copied to clipboard
abstract val name: String

Name of the LLM, such as "gpt-3.5-turbo"

Link copied to clipboard
abstract val provider: String

Name of the provider, such as "OpenAI"

Link copied to clipboard
open override val type: ModelType

Family remains DECISION even when this service is used only for classification.

Functions

Link copied to clipboard

Answers a request.

open fun ask(input: String, spec: DecisionSpec): DecisionResponse

Answers the questions of a spec against the given input. It behaves as ask with a request.

Link copied to clipboard

Assess the proposition; a false answer is successful evidence, not an operational failure.

Link copied to clipboard

Returns what this service can accept.

Link copied to clipboard

Classify text using only the request's category domain, returning evidence rather than routing policy.

Classifies text with a spec. Same as calling classify with ClassificationRequest.of(input, spec).

Link copied to clipboard
open fun infoString(verbose: Boolean?, indent: Int): String
Link copied to clipboard
open override fun metadata(): DecisionServiceMetadata

Pure DECISION metadata snapshot; never serialize a live service in place of this value.