DVAIToolDefinition class
A registered AI tool: the handler plus the description and JSON Schema a provider needs in order to decide when to call it.
Constructors
- DVAIToolDefinition({required String name, required DVAIToolHandler handler, String description = '', DVJsonObject parameters = const <String, DVJsonValue>{}})
-
const
Properties
- description → String
-
final
- handler → DVAIToolHandler
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
jsonSchema
→ Map<
String, Object?> -
The schema sent to providers. A tool that declared no parameters is
advertised as an object with no properties rather than omitted, because
every provider requires a schema on each tool.
no setter
- name → String
-
final
- parameters → DVJsonObject
-
JSON Schema object describing the tool's input.
final
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited