Completion
org.llm4s.llmconnect.model.Completion
case class Completion(id: String, created: Long, content: String, model: String, message: AssistantMessage, toolCalls: List[ToolCall], usage: Option[TokenUsage], thinking: Option[String])
Represents a completion response from an LLM. This includes the ID, creation timestamp, the assistant's message, and optional token usage statistics.
Value parameters
- content
-
The main content of the response.
- created
-
Timestamp of when the completion was created.
- id
-
Unique identifier for the completion.
- message
-
The assistant's message in response to the user's input.
- model
-
The model that generated this completion.
- thinking
-
Optional thinking/reasoning content from extended thinking models. Present when using reasoning modes with Claude or o1/o3 models.
- toolCalls
-
List of tool calls made by the assistant.
- usage
-
Optional token usage statistics for the completion.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article