RunStepDetails class sealed
The details of the run step.
- Implementers
- Annotations
-
- @Freezed(unionKey: 'type', unionValueCase: FreezedUnionCase.snake)
Constructors
-
RunStepDetails.fromJson(Map<
String, dynamic> json) -
Object construction from a JSON representation
factory
- RunStepDetails.messageCreation({required String type, @JsonKey(name: 'message_creation') required RunStepDetailsMessageCreation messageCreation})
-
Details of the message creation by the run step.
constfactory
-
RunStepDetails.toolCalls({required String type, @JsonKey(name: 'tool_calls') required List<
RunStepDetailsToolCalls> toolCalls}) -
Details of the tool call.
constfactory
Properties
-
copyWith
→ $RunStepDetailsCopyWith<
RunStepDetails> -
Create a copy of RunStepDetails
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Always
message_creation
.no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult messageCreation(RunStepDetailsMessageCreationObject value), required TResult toolCalls(RunStepDetailsToolCallsObject value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? messageCreation(RunStepDetailsMessageCreationObject value)?, TResult? toolCalls(RunStepDetailsToolCallsObject value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult messageCreation(RunStepDetailsMessageCreationObject value)?, TResult toolCalls(RunStepDetailsToolCallsObject value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult messageCreation(String type, RunStepDetailsMessageCreation messageCreation)?, TResult toolCalls(String type, List< RunStepDetailsToolCalls> toolCalls)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this RunStepDetails to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult messageCreation(String type, RunStepDetailsMessageCreation messageCreation), required TResult toolCalls(String type, List< RunStepDetailsToolCalls> toolCalls)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? messageCreation(String type, RunStepDetailsMessageCreation messageCreation)?, TResult? toolCalls(String type, List< RunStepDetailsToolCalls> toolCalls)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited