maybeWhen<TResult extends Object?> method
- @optionalTypeArgs
- TResult codeInterpreter(
- int index,
- String? id,
- String type,
- RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? codeInterpreter,
- TResult fileSearch()?,
- TResult function(
- int index,
- String? id,
- String type,
- RunStepDeltaStepDetailsToolCallsFunction? function,
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(
int index,
@JsonKey(includeIfNull: false) String? id,
String type,
@JsonKey(name: 'code_interpreter', includeIfNull: false)
RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter?
codeInterpreter)?
codeInterpreter,
TResult Function(
int index,
@JsonKey(includeIfNull: false) String? id,
String type,
@JsonKey(name: 'file_search') Map<String, dynamic> fileSearch)?
fileSearch,
TResult Function(
int index,
@JsonKey(includeIfNull: false) String? id,
String type,
@JsonKey(includeIfNull: false)
RunStepDeltaStepDetailsToolCallsFunction? function)?
function,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;