ChatFunction class

Annotations
  • @freezed

Constructors

ChatFunction({required String name, String? description, ChatFunctionParameters? parameters})
const
factory
ChatFunction.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $ChatFunctionCopyWith<ChatFunction>
no setterinherited
description String?
The description of what the function does.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
no setterinherited
parameters ChatFunctionParameters?
The parameters the functions accepts, described as a JSON Schema object. See the guide for examples, and the JSON Schema reference for documentation about the format. To describe a function that accepts no parameters, provide the value {"type": "object", "properties": {}}.
no setterinherited
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>
inherited
toString() String
A string representation of this object.
inherited

Operators

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