TypedResponse

data class TypedResponse<out Answer>(val value: Answer, val message: ChatMessage.Assistant, val usage: TokenUsage? = null)

What ask returns for a ChatRequest.

Constructors

Link copied to clipboard
constructor(value: Answer, message: ChatMessage.Assistant, usage: TokenUsage? = null)

Properties

Link copied to clipboard

the message value was read from. Add it to the conversation to continue it.

Link copied to clipboard

the tokens of every call it took, also of those whose answer could not be read, when the provider reports them.

Link copied to clipboard

the model's answer.