Module: OC::OLLAMA::CHAT::TOOLS

Defined in:
lib/ollama_chat/oc.rb

Defined Under Namespace

Modules: IMAGE_GENERATOR, JIRA

Constant Summary collapse

TEST_RUNNER =

Run Tests tool configuration

set do
  description 'Configured test runner for run_tests tool function'
  default     'rspec'
  required     true
end
PIRATEWEATHER_API_KEY =
set do
  description 'Pirate Weather API key'
end
CTAGS_TOOL =
set do
  description 'Tools ctags path'
  default { `which ctags`.full?(:chomp) }
  check   { value.blank? || File.exist?(value) }
end
TAGS_FILE =
set do
  description 'Tag file location'
  default     './tags'
  decode       { Pathname.new(_1).expand_path }
end
PATCH_TOOL =
set do
  description 'Patch tool to use'

  default { `which patch`.full?(:chomp) }
  check   { value.blank? || File.exist?(value) }
end
GHR_URL =
set do
  description 'Base URL for GHR api server, e. g. https://ghr.example.com'
  sensitive   true
  decode { URI.parse(_1) if _1.present? }
  check { value.blank? || value.scheme =~ /\Ahttps?\z/ }
end
RUBY_EVAL_IMAGE_TEMPLATE =
set do
  description <<~EOT
    Docker image template for ruby, e. g. "ruby:%{version}-alpine",
    version will be substitued with the ruby version requested.'
  EOT
  default 'ruby:%{version}-alpine'
  required true
end