Class: LLM::Tool::Bundle
Overview
The Bundle class implements
a tool that runs a command through bundle.
It inherits the BUNDLE_GEMFILE environment
variable when set, or defaults to a Gemfile
in the current working directory.
Instance Method Summary collapse
- #initialize ⇒ LLM::Tool::BundleExec constructor
- #call(arguments: [], timeout: 60, max_bytes: Exec.max_bytes) ⇒ Hash
Methods inherited from LLM::Tool
NotFound, a2a, a2a?, #a2a?, abstract!, abstract?, clear_registry!, description, find_by_name!, #function, function, inherited, mcp, #mcp?, mcp?, name, #on_cancel, #on_interrupt, params, register, registry, set, subclasses, unregister
Methods included from Param
Methods included from Function::Registry
#clear_registry!, #find_by_name, #lock, #register, #registry, #registry_key, #tool_name, #unregister
Constructor Details
#initialize ⇒ LLM::Tool::BundleExec
23 24 25 |
# File 'lib/llm/tools/bundle.rb', line 23 def initialize @env = {"BUNDLE_GEMFILE" => ENV["BUNDLE_GEMFILE"] || File.join(Dir.getwd, "Gemfile")} end |