CompletionEvidence

data class CompletionEvidence(val finishReason: String? = null, val usage: JsonObject? = null, val providerModel: String? = null, val metadata: JsonObject? = null)

What the provider reported about how a streamed turn ended.

Every field is null when the provider did not report it. Usage is never estimated.

Constructors

Link copied to clipboard
constructor(finishReason: String? = null, usage: JsonObject? = null, providerModel: String? = null, metadata: JsonObject? = null)

Properties

Link copied to clipboard

Provider finish reason, for example stop or length.

Link copied to clipboard
val metadata: JsonObject?

Other provider-reported metadata, for example Ollama durations.

Link copied to clipboard

Model name the provider reported.

Link copied to clipboard
val usage: JsonObject?

Token usage as the provider reported it.