RealtimeEvent.conversationItemInputAudioTranscriptionDelta constructor
- @FreezedUnionValue('conversation.item.input_audio_transcription.delta')
- @JsonKey(name: 'event_id') required String eventId,
- @Default(RealtimeEventType.conversationItemInputAudioTranscriptionDelta) RealtimeEventType type,
- @JsonKey(name: 'item_id') required String itemId,
- @JsonKey(name: 'content_index', includeIfNull: false) int? contentIndex,
- @JsonKey(includeIfNull: false) String? delta,
Returned when the text value of an input audio transcription content part is updated.
Implementation
@FreezedUnionValue('conversation.item.input_audio_transcription.delta')
const factory RealtimeEvent.conversationItemInputAudioTranscriptionDelta({
/// The unique ID of the server event.
@JsonKey(name: 'event_id') required String eventId,
/// The type of the event.
@Default(RealtimeEventType.conversationItemInputAudioTranscriptionDelta)
RealtimeEventType type,
/// The ID of the user message item containing the audio.
@JsonKey(name: 'item_id') required String itemId,
/// The index of the content part containing the audio.
@JsonKey(name: 'content_index', includeIfNull: false) int? contentIndex,
/// The text delta.
@JsonKey(includeIfNull: false) String? delta,
}) = RealtimeEventConversationItemInputAudioTranscriptionDelta;