class Riffer::Tool

Riffer::Tool is the base class for all tools in the Riffer framework.

Provides a DSL for defining tool description and parameters. Subclasses must implement the +call+ method.

See Riffer::Agent.

class WeatherLookupTool < Riffer::Tool description โ€œProvides current weather information for a specified city.โ€

params do
  required :city, String, description: "The city to look up"
  optional :units, String, default: "celsius"
end

def call(context:, city:, units: nil)
  # Implementation
end

end