copyWith method

ConversationHistoryTranscriptToolCallCommonModel copyWith({
  1. dynamic type,
  2. String? requestId,
  3. String? toolName,
  4. String? paramsAsJson,
  5. bool? toolHasBeenCalled,
  6. dynamic toolDetails,
})

Implementation

ConversationHistoryTranscriptToolCallCommonModel copyWith(
    {dynamic type,
    String? requestId,
    String? toolName,
    String? paramsAsJson,
    bool? toolHasBeenCalled,
    dynamic toolDetails}) {
  return ConversationHistoryTranscriptToolCallCommonModel(
      type: type ?? this.type,
      requestId: requestId ?? this.requestId,
      toolName: toolName ?? this.toolName,
      paramsAsJson: paramsAsJson ?? this.paramsAsJson,
      toolHasBeenCalled: toolHasBeenCalled ?? this.toolHasBeenCalled,
      toolDetails: toolDetails ?? this.toolDetails);
}