RealtimeEvent.responseFunctionCallArgumentsDelta constructor
- @FreezedUnionValue('response.function_call_arguments.delta')
- @JsonKey(name: 'event_id') required String eventId,
- @Default(RealtimeEventType.responseFunctionCallArgumentsDelta) RealtimeEventType type,
- @JsonKey(name: 'response_id') required String responseId,
- @JsonKey(name: 'item_id') required String itemId,
- @JsonKey(name: 'output_index') required int outputIndex,
- @JsonKey(name: 'call_id') required String callId,
- required String delta,
Returned when the model-generated function call arguments are updated.
Implementation
@FreezedUnionValue('response.function_call_arguments.delta')
const factory RealtimeEvent.responseFunctionCallArgumentsDelta({
/// The unique ID of the server event.
@JsonKey(name: 'event_id') required String eventId,
/// The type of the event.
@Default(RealtimeEventType.responseFunctionCallArgumentsDelta)
RealtimeEventType type,
/// The ID of the response.
@JsonKey(name: 'response_id') required String responseId,
/// The ID of the function call item.
@JsonKey(name: 'item_id') required String itemId,
/// The index of the output item in the response.
@JsonKey(name: 'output_index') required int outputIndex,
/// The ID of the function call.
@JsonKey(name: 'call_id') required String callId,
/// The arguments delta as a JSON string.
required String delta,
}) = RealtimeEventResponseFunctionCallArgumentsDelta;