Class: Agentilda::Runner::Attempt
- Inherits:
-
Data
- Object
- Data
- Agentilda::Runner::Attempt
- Defined in:
- lib/agentilda/runner.rb
Overview
What one agent did to one plan.
Instance Attribute Summary collapse
- #agent ⇒ String readonly
-
#delegated ⇒ Integer
readonly
Of #up, how much arrived unsplit from a sub-agent.
-
#down ⇒ Integer
readonly
Tokens generated.
-
#from ⇒ Symbol
readonly
State before.
- #note ⇒ String readonly
- #ok ⇒ Boolean readonly
- #ordinal ⇒ String readonly
-
#seconds ⇒ Float
readonly
How long the agent ran.
-
#subagents ⇒ Integer
readonly
Sub-agents this agent spawned.
-
#to ⇒ Symbol
readonly
State after.
-
#up ⇒ Integer
readonly
Tokens sent, sub-agents included.
Instance Method Summary collapse
-
#advanced? ⇒ Boolean
Whether the plan actually moved.
Instance Attribute Details
#agent ⇒ String (readonly)
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
#delegated ⇒ Integer (readonly)
Returns of #up, how much arrived unsplit from a sub-agent.
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
#down ⇒ Integer (readonly)
Returns tokens generated.
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
#from ⇒ Symbol (readonly)
Returns state before.
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
#note ⇒ String (readonly)
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
#ok ⇒ Boolean (readonly)
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
#ordinal ⇒ String (readonly)
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
#seconds ⇒ Float (readonly)
Returns how long the agent ran.
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
#subagents ⇒ Integer (readonly)
Returns sub-agents this agent spawned.
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
#to ⇒ Symbol (readonly)
Returns state after.
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
#up ⇒ Integer (readonly)
Returns tokens sent, sub-agents included.
39 40 41 42 43 |
# File 'lib/agentilda/runner.rb', line 39 Attempt = Data.define(:ordinal, :agent, :from, :to, :ok, :note, :up, :down, :subagents, :delegated, :seconds) do # @return [Boolean] whether the plan actually moved def advanced? = ok && from != to end |
Instance Method Details
#advanced? ⇒ Boolean
Returns whether the plan actually moved.
42 |
# File 'lib/agentilda/runner.rb', line 42 def advanced? = ok && from != to |