RealtimeTool class

A tool for realtime sessions.

Annotations
  • @immutable

Constructors

RealtimeTool({required String type, required String name, String? description, Map<String, dynamic>? parameters})
Creates a RealtimeTool.
const
RealtimeTool.fromJson(Map<String, dynamic> json)
Creates a RealtimeTool from JSON.
factory

Properties

description String?
The function description.
final
hashCode int
The hash code for this object.
no setteroverride
name String
The function name.
final
parameters Map<String, dynamic>?
The function parameters as JSON schema.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The tool type (always "function").
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

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