Class: Rubino::Agent::DegenerateResponseRecovery::RecoveryState
- Inherits:
-
Struct
- Object
- Struct
- Rubino::Agent::DegenerateResponseRecovery::RecoveryState
- 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
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#prior_tools_all_housekeeping ⇒ Object
Returns the value of attribute prior_tools_all_housekeeping.
-
#prior_turn_content ⇒ Object
Returns the value of attribute prior_turn_content.
-
#response ⇒ Object
Returns the value of attribute response.
-
#streamed_text ⇒ Object
Returns the value of attribute streamed_text.
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages
58 59 60 |
# File 'lib/rubino/agent/degenerate_recovery.rb', line 58 def @messages end |
#prior_tools_all_housekeeping ⇒ Object
Returns the value of attribute 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_content ⇒ Object
Returns the value of attribute prior_turn_content
58 59 60 |
# File 'lib/rubino/agent/degenerate_recovery.rb', line 58 def prior_turn_content @prior_turn_content end |
#response ⇒ Object
Returns the value of attribute response
58 59 60 |
# File 'lib/rubino/agent/degenerate_recovery.rb', line 58 def response @response end |
#streamed_text ⇒ Object
Returns the value of attribute streamed_text
58 59 60 |
# File 'lib/rubino/agent/degenerate_recovery.rb', line 58 def streamed_text @streamed_text end |