ChatTool class

The host explicitly registers tools and validates their business arguments.

Constructors

ChatTool({required String name, required String description, required Map<String, Object?> parameters, required ChatToolExecutor execute, bool requiresApproval = true})
const

Properties

description → String
final
execute → ChatToolExecutor
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
parameters → Map<String, Object?>
final
requiresApproval → bool
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, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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