Class: OllamaAgent::ToolRuntime::Tool

Inherits:
Object
  • Object
show all
Defined in:
lib/ollama_agent/tool_runtime/tool.rb

Overview

Plugin contract for tools used with Registry, Executor, and Loop.

Instance Method Summary collapse

Instance Method Details

#call(args) ⇒ Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/ollama_agent/tool_runtime/tool.rb', line 19

def call(args)
  raise NotImplementedError, "#{self.class} must implement #call"
end

#descriptionObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/ollama_agent/tool_runtime/tool.rb', line 11

def description
  raise NotImplementedError, "#{self.class} must implement #description"
end

#nameObject

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/ollama_agent/tool_runtime/tool.rb', line 7

def name
  raise NotImplementedError, "#{self.class} must implement #name"
end

#schemaObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/ollama_agent/tool_runtime/tool.rb', line 15

def schema
  raise NotImplementedError, "#{self.class} must implement #schema"
end