Class: Agentilda::Runner::Attempt

Inherits:
Data
  • Object
show all
Defined in:
lib/agentilda/runner.rb

Overview

What one agent did to one plan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#agentString (readonly)

Returns:

  • (String)


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

#delegatedInteger (readonly)

Returns of #up, how much arrived unsplit from a sub-agent.

Returns:

  • (Integer)

    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

#downInteger (readonly)

Returns tokens generated.

Returns:

  • (Integer)

    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

#fromSymbol (readonly)

Returns state before.

Returns:

  • (Symbol)

    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

#noteString (readonly)

Returns:

  • (String)


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

#okBoolean (readonly)

Returns:

  • (Boolean)


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

#ordinalString (readonly)

Returns:

  • (String)


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

#secondsFloat (readonly)

Returns how long the agent ran.

Returns:

  • (Float)

    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

#subagentsInteger (readonly)

Returns sub-agents this agent spawned.

Returns:

  • (Integer)

    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

#toSymbol (readonly)

Returns state after.

Returns:

  • (Symbol)

    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

#upInteger (readonly)

Returns tokens sent, sub-agents included.

Returns:

  • (Integer)

    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.

Returns:

  • (Boolean)

    whether the plan actually moved



42
# File 'lib/agentilda/runner.rb', line 42

def advanced? = ok && from != to