ToolRunCommands constructor
ToolRunCommands({
- String name = "runCommands",
- String description = "Runs multiple terminal commands in sequence, each command ran returns the exit code, stdout and stderr if any. If the exit code is nonzero the remaining commands will not be run.",
- Map<
String, dynamic> parameters = const {"type" : "object", "properties" : {"commands" : {"type" : "array", "items" : {"type" : "string", "description" : "The command to run."}, "description" : "The commands to run in sequence. Each command will be run in the order they are provided."}}, "additionalProperties" : false, "required" : ["commands"]},
Implementation
ToolRunCommands({
super.name = "runCommands",
super.description =
"Runs multiple terminal commands in sequence, each command ran returns the exit code, stdout and stderr if any. If the exit code is nonzero the remaining commands will not be run.",
super.parameters = const {
"type": "object",
"properties": {
"commands": {
"type": "array",
"items": {"type": "string", "description": "The command to run."},
"description":
"The commands to run in sequence. Each command will be run in the order they are provided.",
},
},
"additionalProperties": false,
"required": ["commands"],
},
});