Class: Insika::Checkpoint

Inherits:
Data
  • Object
show all
Defined in:
lib/insika/checkpoint.rb

Overview

Per-turn snapshot. The checkpoint of turn n holds the state AT THE START of turn n — resuming = re-executing the whole turn n. messages is the MATERIALIZED transcript (not a cursor): the checkpoint is self-contained and resumption does not depend on the Session Store.

completed_side_effects: ids of non-idempotent tool calls already completed within the turn (resumption answers them with "already_executed").

Instance Attribute Summary collapse

Instance Attribute Details

#agent_idObject (readonly)

Returns the value of attribute agent_id

Returns:

  • (Object)

    the current value of agent_id



11
12
13
# File 'lib/insika/checkpoint.rb', line 11

def agent_id
  @agent_id
end

#completed_side_effectsObject (readonly)

Returns the value of attribute completed_side_effects

Returns:

  • (Object)

    the current value of completed_side_effects



11
12
13
# File 'lib/insika/checkpoint.rb', line 11

def completed_side_effects
  @completed_side_effects
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



11
12
13
# File 'lib/insika/checkpoint.rb', line 11

def created_at
  @created_at
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



11
12
13
# File 'lib/insika/checkpoint.rb', line 11

def messages
  @messages
end

#session_idObject (readonly)

Returns the value of attribute session_id

Returns:

  • (Object)

    the current value of session_id



11
12
13
# File 'lib/insika/checkpoint.rb', line 11

def session_id
  @session_id
end

#task_idObject (readonly)

Returns the value of attribute task_id

Returns:

  • (Object)

    the current value of task_id



11
12
13
# File 'lib/insika/checkpoint.rb', line 11

def task_id
  @task_id
end

#turnObject (readonly)

Returns the value of attribute turn

Returns:

  • (Object)

    the current value of turn



11
12
13
# File 'lib/insika/checkpoint.rb', line 11

def turn
  @turn
end