Class: Agent::Tools::ExampleTool

Inherits:
Silas::Tool
  • Object
show all
Defined in:
lib/generators/silas/install/templates/example_tool.rb

Overview

Tool identity is the filename: this is the "example_tool" tool. The keyword signature of #call IS the schema the model sees.

Instance Method Summary collapse

Instance Method Details

#call(message:) ⇒ Object

default: external effects park when in doubt



9
10
11
# File 'lib/generators/silas/install/templates/example_tool.rb', line 9

def call(message:)
  { echo: message }
end