RealtimeSession class
Full assistant session (speech + text etc.)
- Inheritance
-
- Object
- BaseRealtimeSession
- RealtimeSession
Constructors
-
RealtimeSession.new({String? id, RealtimeModel? model, List<
Modality> ? outputModalities, RealtimeSessionAudio? audio, String? instructions, List<RealtimeFunctionTool> ? tools, ToolChoice? toolChoice, num? temperature, dynamic maxOutputTokens, Tracing? tracing, RealtimeTruncation? truncation, Prompt? prompt}) -
RealtimeSession.fromJson(Map<
String, dynamic> j) -
factory
Properties
- audio → RealtimeSessionAudio?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
finalinherited
- instructions → String?
-
finalinherited
- maxOutputTokens → dynamic
-
final
- model → RealtimeModel?
-
finalinherited
- object → String?
-
finalinherited
-
outputModalities
→ List<
Modality> ? -
final
- prompt → Prompt?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- temperature → num?
-
finalinherited
- toolChoice → ToolChoice?
-
finalinherited
-
tools
→ List<
RealtimeFunctionTool> ? -
finalinherited
- tracing → Tracing?
-
finalinherited
- truncation → RealtimeTruncation?
-
final
Methods
-
copyWith(
{String? id, String? object, List< Modality> ? outputModalities, RealtimeModel? model, RealtimeSessionAudio? audio, String? instructions, List<RealtimeFunctionTool> ? tools, ToolChoice? toolChoice, num? temperature, dynamic maxOutputTokens, Tracing? tracing, RealtimeTruncation? truncation, Prompt? prompt}) → RealtimeSession -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited