ClassificationService

@ApiStatus.Experimental
interface ClassificationService : ClassificationServiceMetadata

Provider-neutral closed-category classification; implementations own execution and provider integration.

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

Functions

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

Copy public model identity into pure metadata before serialization. This snapshot contains no live client, credentials, or implementation discriminator. Serializing the live service itself is outside this contract; use this method even when the service is viewed as ModelMetadata.