types.ConversationRecordV2

types.ConversationRecordV2()

The v2 exchange-tree record, isolated from the released v1 model.

Attributes

Name Description
root_id The unique node with no parent.

Methods

Name Description
checkpoint_leaf Remembered coherent destination within a subtree, never its parent.
iter_visible_inputs Yield (exchange id, display index) for each input-bearing
newest_child Newest eligible child; insertion order breaks timestamp ties.
open_exchange Open one ordinary input-bearing exchange and select it.

checkpoint_leaf

types.ConversationRecordV2.checkpoint_leaf(node_id)

Remembered coherent destination within a subtree, never its parent.

iter_visible_inputs

types.ConversationRecordV2.iter_visible_inputs()

Yield (exchange id, display index) for each input-bearing exchange on the active path, in display order.

The display index is the position of the exchange’s input message in the rendered transcript: an input occupies one slot, and each of the exchange’s messages occupies one.

newest_child

types.ConversationRecordV2.newest_child(children)

Newest eligible child; insertion order breaks timestamp ties.

open_exchange

types.ConversationRecordV2.open_exchange(
    exchange_id,
    message,
    *,
    parent_id=None,
)

Open one ordinary input-bearing exchange and select it.

parent_id defaults to the active leaf (ordinary acceptance). A staged edit/retry passes its target’s valid parent explicitly: the node is recorded and selected before any fallible preparation, so the attempt survives preparation failure and is never silently lost — while sharing this one construction and linking lifecycle with ordinary exchanges. Either way the whole ancestor path’s selection pointers move to the new node, which for the default case is exactly the prior active path.