copyWith method
Returns a copy with the given fields replaced.
Implementation
ToolResultPart copyWith({
String? toolCallId,
Object? result,
bool? isError,
}) =>
ToolResultPart(
toolCallId: toolCallId ?? this.toolCallId,
result: result ?? this.result,
isError: isError ?? this.isError,
);