ToolDefinition class

Schema definition for a tool, matching Anthropic's tool format.

Constructors

ToolDefinition({required String name, required String description, required Map<String, dynamic> inputSchema})
const

Properties

description → String
Human-readable description of what the tool does.
final
hashCode → int
The hash code for this object.
no setterinherited
inputSchema → Map<String, dynamic>
JSON Schema describing the tool's input parameters.
final
name → String
Unique name identifying this tool.
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
toApiMap() → Map<String, dynamic>
Convert to Anthropic API tool format.
toOpenAiMap() → Map<String, dynamic>
Convert to OpenAI function format.
toString() → String
A string representation of this object.
inherited

Operators

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