Tool class
Message representing a single tool.
Constructors
-
Tool.new({ToolAnnotations? annotations, List<
String> ? dependsOn, String? description, JsonSchema? inputSchema, String? name, JsonSchema? outputSchema}) - Tool.fromJson(Map json_)
Properties
- annotations ↔ ToolAnnotations?
-
Annotations for the tool.
getter/setter pair
-
dependsOn
↔ List<
String> ? -
List of tool names that this tool depends on.
getter/setter pair
- description ↔ String?
-
Description of the tool.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputSchema ↔ JsonSchema?
-
JSON schema for the input parameters of the tool.
getter/setter pair
- name ↔ String?
-
Name of the tool.
getter/setter pair
- outputSchema ↔ JsonSchema?
-
JSON schema for the output of the tool.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited