Class: Agent::Sessions::Node

Inherits:
Data
  • Object
show all
Defined in:
lib/agent/sessions/node.rb

Overview

One message in a branching conversation, with the messages that follow it. Agents that let a turn be edited and re-run record two children under one parent: 380 such branch points sit across 85 of 151 real Claude transcripts, so a caller reading messages in file order is reading two alternative histories interleaved without being told.

children is a plain Array and the Node is frozen, so the shape is settled before anyone sees it.

Instance Attribute Summary collapse

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



13
14
15
# File 'lib/agent/sessions/node.rb', line 13

def children
  @children
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



13
14
15
# File 'lib/agent/sessions/node.rb', line 13

def message
  @message
end