ToolDescriptor class

Description of a single tool available to the model on a given turn.

inputSchema is a JSON Schema (draft-07) fragment describing the arguments accepted by the tool.

Constructors

ToolDescriptor({required String name, required String description, required Map<String, dynamic> inputSchema})
const
ToolDescriptor.fromJson(Map<String, dynamic> json)
Decodes a tool descriptor from its provider-wire representation.
factory

Properties

description String
Human-readable description surfaced to the model.
final
hashCode int
The hash code for this object.
no setteroverride
inputSchema Map<String, dynamic>
JSON Schema (draft-07) fragment describing tool arguments.
final
name String
Pre-namespaced tool name, e.g. core.tap, router.push.
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
toJson() Map<String, dynamic>
Encodes this descriptor for transport across the provider boundary.
toString() String
A string representation of this object.
inherited

Operators

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