ResultMessage
works.iterative.claude.core.model.ResultMessage
case class ResultMessage(subtype: String, durationMs: Int, durationApiMs: Int, isError: Boolean, numTurns: Int, sessionId: SessionId, totalCostUsd: Option[Double] = ..., usage: Option[TokenUsage] = ..., result: Option[String] = ..., id: Option[MessageId] = ..., origin: Option[ResultOrigin] = ..., stopReason: Option[String] = ..., terminalReason: Option[String] = ..., permissionDenials: List[PermissionDenial] = ..., apiErrorStatus: Option[String] = ..., timings: ResultTimings = ...) extends Message
The end-of-turn envelope on the live stream. origin is None when the result ends an interactive turn — the wire key is absent there — and present when a background task finished; id is the vendor uuid; usage carries real token counts.
Attributes
- Graph
-
- Supertypes
Members list
In this article