Exception: Pikuri::Agent::Control::StepLimit::Exceeded

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pikuri/agent/control/step_limit.rb

Overview

Raised by #tick! once the tool-call count exceeds max; carries the tripped budget for user-facing messages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_steps) ⇒ Exceeded

Returns a new instance of Exceeded.

Parameters:

  • max_steps (Integer)


32
33
34
35
# File 'lib/pikuri/agent/control/step_limit.rb', line 32

def initialize(max_steps)
  @max_steps = max_steps
  super("Agent loop exceeded #{max_steps} steps")
end

Instance Attribute Details

#max_stepsInteger (readonly)

Returns:

  • (Integer)


29
30
31
# File 'lib/pikuri/agent/control/step_limit.rb', line 29

def max_steps
  @max_steps
end