PromptResponse
com.alecdorrington.iris.prompt.PromptResponse
final case class PromptResponse(text: String, stopReason: StopReason = ..., usage: Usage = ..., cost: Option[Usd] = ..., toolCalls: List[ToolCall] = ...)
One response of the model's, as the provider gave it: its message, why it stopped, and what it took.
Value parameters
- cost
-
What the response cost, priced as it came at the Rates of the service's configuration or else of its model, or
Nonewhere there are none, as for a model Iris does not list. - stopReason
-
The reason the model stopped.
- text
-
The text of the response, as the model wrote it.
- toolCalls
-
The tools the model asks to have run before it goes on, if any.
- usage
-
The token counts of the response.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article