class RubyLLM::CodeExecution

CodeExecution is the run_code tool Chat#with_code_execution gives the model. Each call runs Ruby, Python, or a shell script in the configured Sandbox, in a fresh working directory with read-only copies of the conversation’s files, and returns the exit code, the output, and every file the code wrote as an attachment on the tool result.

chat = RubyLLM.chat.with_code_execution
chat.tools[:run_code] # => #<RubyLLM::CodeExecution ...>