SessionState

works.iterative.claude.core.model.SessionState
See theSessionState companion class
object SessionState

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Records the session's end in the state.

Records the session's end in the state.

Attributes

def fold(state: SessionState, message: Message): SessionState

Folds one message into the state. Pure and total.

Folds one message into the state. Pure and total.

A result whose origin is absent is a real turn completion — including an interrupted turn's error result, which is a completion, just a failed one — and bumps resultsSeen. A result whose origin is present is a background-task notification and bumps notificationsSeen instead. Every other message leaves the state unchanged.

Attributes

Concrete fields