FunctionCall class

Represents the AI model's request to call a function.

Constructors

FunctionCall({required String name, Map<String, dynamic> args = const {}})
FunctionCall.fromJson(Map<String, dynamic> json)
Convert JSON to FunctionCall
factory

Properties

args Map<String, dynamic>
Arguments for the function call, matching the declared schema.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the function to be called.
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>
Convert FunctionCall to JSON
toString() String
A string representation of this object.
inherited

Operators

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