class

Enkaidu::ShellCommandFunction::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

ameba:disable Metrics/CyclomaticComplexity: Clear without splitting up

Source
requires_confirmation?(command)
Source
restricted_terms_in(command) : Array(String)

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

Source
run_command(cmd)
Source
run_cordoned_command(cmd)
Source
success_response(command, output)

Create a success response as a JSON string

Source
user_confirms?(command, found_restricted)
Source