CompletionResult Type
The result of an LLM completion
Record fields
| Record Field |
Description
|
Full Usage:
Content
Field type: string
|
The generated text content
|
Full Usage:
FinishReason
Field type: string
|
Why generation stopped (e.g. "stop", "length", "tool_call")
|
Full Usage:
TokensUsed
Field type: int option
|
Number of tokens consumed (prompt + completion), if reported by the provider
|
Nao