copyWith method

ConversationHistoryTranscriptToolResultCommonModel copyWith({
  1. dynamic type,
  2. String? requestId,
  3. String? toolName,
  4. String? resultValue,
  5. bool? isError,
  6. bool? toolHasBeenCalled,
  7. double? toolLatencySecs,
})

Implementation

ConversationHistoryTranscriptToolResultCommonModel copyWith(
    {dynamic type,
    String? requestId,
    String? toolName,
    String? resultValue,
    bool? isError,
    bool? toolHasBeenCalled,
    double? toolLatencySecs}) {
  return ConversationHistoryTranscriptToolResultCommonModel(
      type: type ?? this.type,
      requestId: requestId ?? this.requestId,
      toolName: toolName ?? this.toolName,
      resultValue: resultValue ?? this.resultValue,
      isError: isError ?? this.isError,
      toolHasBeenCalled: toolHasBeenCalled ?? this.toolHasBeenCalled,
      toolLatencySecs: toolLatencySecs ?? this.toolLatencySecs);
}