RealtimeSessionCreateRequest constructor
const
RealtimeSessionCreateRequest({
- required String model,
- String? type,
- RealtimeAudioConfig? audio,
- List<
String> ? outputModalities, - String? instructions,
- List<
RealtimeTool> ? tools, - RealtimeToolChoice? toolChoice,
- InfOrInt? maxOutputTokens,
- bool? parallelToolCalls,
- RealtimeReasoning? reasoning,
- RealtimeTracingConfig? tracing,
- RealtimeTruncation? truncation,
- List<
String> ? include,
Creates a RealtimeSessionCreateRequest.
The type field is the session-type discriminator ('realtime' for
realtime sessions). Set this when the API needs to distinguish between
realtime and transcription sessions, such as when creating client
secrets.
Implementation
const RealtimeSessionCreateRequest({
required this.model,
this.type,
this.audio,
this.outputModalities,
this.instructions,
this.tools,
this.toolChoice,
this.maxOutputTokens,
this.parallelToolCalls,
this.reasoning,
this.tracing,
this.truncation,
this.include,
});