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
15
# File 'lib/analytical_brain/tools/everything_is_ready.rb', line 14

def self.description = "Signal that no changes are needed. " \
"Call this when the session name and active skills are already appropriate."

.input_schemaObject



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

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



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

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