Tools::ShellAccess::ShellCommandTool::Runner
Inherits LLM::Function::Runner < Reference < Object
The Runner class executes the function
Constructors
new(func : Tools::ShellAccess::ShellCommandTool)
SourceInstance methods
check_safety(command)
Sourceexecute(args : JSON::Any) : String
Implement this method to handle the LLM function call, and return
- EITHER a String with the JSON value,
- OR a
Replyif you need to return attachments.
requires_confirmation?(command)
Sourcerestricted_terms_in(command) : Array(String)
Returns all restricted terms (array of strings) found in the command
user_confirms?(command, found_restricted)
Source