Assistant

@Serializable
data class Assistant(val id: UUID, val timestamp: Instant, val reasoning: String?, val content: String?, val model: UUID, val usage: Usage?) : AgentMessage(source)

表示一条 LLM 返回的消息。

Constructors

Link copied to clipboard
constructor(id: UUID, timestamp: Instant, reasoning: String?, content: String?, model: UUID, usage: Usage?)

Properties

Link copied to clipboard

LLM 响应正文。

Link copied to clipboard
@Serializable(with = UuidSerializer::class)
open override val id: UUID

消息 id,每种消息都有。

Link copied to clipboard
@Serializable(with = UuidSerializer::class)
val model: UUID

请求使用的模型 id。

Link copied to clipboard

LLM 思维链。

Link copied to clipboard
open override val timestamp: Instant

消息时间戳,每种消息都有。

Link copied to clipboard
val usage: Usage?

用量信息。