Class: RubyLLM::Toolbox::Sandbox::Base
- Inherits:
-
Object
- Object
- RubyLLM::Toolbox::Sandbox::Base
show all
- Defined in:
- lib/ruby_llm/toolbox/sandbox/base.rb
Overview
Shared behavior for every backend.
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
69
70
71
|
# File 'lib/ruby_llm/toolbox/sandbox/base.rb', line 69
def initialize(config)
@config = config
end
|
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
73
74
75
|
# File 'lib/ruby_llm/toolbox/sandbox/base.rb', line 73
def config
@config
end
|
Instance Method Details
#available? ⇒ Boolean
79
80
81
|
# File 'lib/ruby_llm/toolbox/sandbox/base.rb', line 79
def available?
false
end
|
#command(_argv, image: nil) ⇒ Object
87
88
89
|
# File 'lib/ruby_llm/toolbox/sandbox/base.rb', line 87
def command(_argv, image: nil)
raise NotImplementedError
end
|
#name ⇒ Object
75
76
77
|
# File 'lib/ruby_llm/toolbox/sandbox/base.rb', line 75
def name
self.class.name.split("::").last.downcase
end
|
#run(_argv, stdin: nil, image: nil) ⇒ Object
83
84
85
|
# File 'lib/ruby_llm/toolbox/sandbox/base.rb', line 83
def run(_argv, stdin: nil, image: nil)
raise NotImplementedError
end
|