Class: AgentSandbox::RubyLLMTools::WriteFile
- Defined in:
- lib/agent_sandbox/ruby_llm_tools.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from AgentSandbox::RubyLLMTools::Base
Instance Method Details
#execute(path:, content:) ⇒ Object
52 53 54 55 |
# File 'lib/agent_sandbox/ruby_llm_tools.rb', line 52 def execute(path:, content:) @sandbox.write_file(path, content) { ok: true, path: path, bytes: content.bytesize } end |