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
trait Serializable
trait Product
trait Equals
trait Message
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product