Class: AnalyticalBrain::Tools::EverythingIsReady

Inherits:
Tools::Base
  • Object
show all
Defined in:
lib/analytical_brain/tools/everything_is_ready.rb

Overview

Terminal tool that signals the analytical brain has completed its work. Call this when no changes are needed — the current session state is already good.

After this tool returns, the LLM responds with text (not another tool call), naturally terminating the chat_with_tools loop.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Tools::Base

#initialize, schema

Constructor Details

This class inherits a constructor from Tools::Base

Class Method Details

.descriptionObject



14
# File 'lib/analytical_brain/tools/everything_is_ready.rb', line 14

def self.description = "Nothing else to do."

.input_schemaObject



16
17
18
# File 'lib/analytical_brain/tools/everything_is_ready.rb', line 16

def self.input_schema
  {type: "object", properties: {}, required: []}
end

.tool_nameObject



12
# File 'lib/analytical_brain/tools/everything_is_ready.rb', line 12

def self.tool_name = "everything_is_ready"

Instance Method Details

#execute(_input) ⇒ String

Returns confirmation message.

Parameters:

  • _input (Hash)

    ignored — this tool takes no input

Returns:

  • (String)

    confirmation message



22
23
24
# File 'lib/analytical_brain/tools/everything_is_ready.rb', line 22

def execute(_input)
  "Acknowledged. No changes needed."
end