ToolRunCommands class

Inheritance

Constructors

ToolRunCommands.new({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"]}})

Properties

description String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
parameters Map<String, dynamic>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spec → ToolSpec
no setterinherited

Methods

call(AgentEngine engine, AIChatMessageToolCall toolCall) Future<String>
inherited
handleCall({required AgentEngine engine, required ToolRunCommandsRequest result}) Future<String>
override
mapToResult(Map<String, dynamic> data) Future<ToolRunCommandsRequest>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited