Class: OllamaAgent::RuntimeCommandSystem::CommandRegistry::CommandSpec

Inherits:
Struct
  • Object
show all
Defined in:
lib/ollama_agent/runtime_command_system/command_registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#completerObject

Returns the value of attribute completer

Returns:

  • (Object)

    the current value of completer



7
8
9
# File 'lib/ollama_agent/runtime_command_system/command_registry.rb', line 7

def completer
  @completer
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



7
8
9
# File 'lib/ollama_agent/runtime_command_system/command_registry.rb', line 7

def description
  @description
end

#executorObject

Returns the value of attribute executor

Returns:

  • (Object)

    the current value of executor



7
8
9
# File 'lib/ollama_agent/runtime_command_system/command_registry.rb', line 7

def executor
  @executor
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/ollama_agent/runtime_command_system/command_registry.rb', line 7

def name
  @name
end

#validatorObject

Returns the value of attribute validator

Returns:

  • (Object)

    the current value of validator



7
8
9
# File 'lib/ollama_agent/runtime_command_system/command_registry.rb', line 7

def validator
  @validator
end

Instance Method Details

#slash_nameObject



8
9
10
# File 'lib/ollama_agent/runtime_command_system/command_registry.rb', line 8

def slash_name
  name.to_s.start_with?("/") ? name.to_s : "/#{name}"
end