class

Tools::ShellAccess::ShellCommandTool::Runner

Inherits LLM::Function::Runner < Reference < Object

The Runner class executes the function

Constructors

Instance methods

check_safety(command)
Source
execute(args : JSON::Any) : String

Implement this method to handle the LLM function call, and return

  • EITHER a String with the JSON value,
  • OR a Reply if you need to return attachments.
Source
requires_confirmation?(command)
Source
restricted_terms_in(command) : Array(String)

Returns all restricted terms (array of strings) found in the command

Source
success_response(command, output)

Create a success response as a JSON string

Source
user_confirms?(command, found_restricted)
Source