Class: Rubino::Agent::DegenerateResponseRecovery::RecoveryState

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubino/agent/degenerate_recovery.rb

Overview

Per-turn recovery state the ladder reads. Built by the runner/loop and handed to #recover with each degenerate response.

response                : the degenerate AdapterResponse just received
streamed_text           : visible text already streamed to the user this
                          call (rung 1); "" when nothing/streamed off
messages                : the live api-messages array for this turn —
                          the SAME reference the loop owns, so a rung-3
                          nudge appended here is seen on re-issue
prior_turn_content      : last assistant content delivered alongside
                          tool calls in a PRIOR turn (rung 2), or nil
prior_tools_all_housekeeping : true only when every tool in that prior
                          turn was housekeeping (memory/todo). The gem
                          has no housekeeping taxonomy yet, so this is
                          false today and rung 2 is a faithful no-op.

Instance Attribute Summary collapse

Instance Attribute Details

#messagesObject

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



58
59
60
# File 'lib/rubino/agent/degenerate_recovery.rb', line 58

def messages
  @messages
end

#prior_tools_all_housekeepingObject

Returns the value of attribute prior_tools_all_housekeeping

Returns:

  • (Object)

    the current value of prior_tools_all_housekeeping



58
59
60
# File 'lib/rubino/agent/degenerate_recovery.rb', line 58

def prior_tools_all_housekeeping
  @prior_tools_all_housekeeping
end

#prior_turn_contentObject

Returns the value of attribute prior_turn_content

Returns:

  • (Object)

    the current value of prior_turn_content



58
59
60
# File 'lib/rubino/agent/degenerate_recovery.rb', line 58

def prior_turn_content
  @prior_turn_content
end

#responseObject

Returns the value of attribute response

Returns:

  • (Object)

    the current value of response



58
59
60
# File 'lib/rubino/agent/degenerate_recovery.rb', line 58

def response
  @response
end

#streamed_textObject

Returns the value of attribute streamed_text

Returns:

  • (Object)

    the current value of streamed_text



58
59
60
# File 'lib/rubino/agent/degenerate_recovery.rb', line 58

def streamed_text
  @streamed_text
end