copyWith method
ToolCall
copyWith({
- Object? toolCallId = _acpCopyWithAbsent,
- Object? title = _acpCopyWithAbsent,
- Object? kind = _acpCopyWithAbsent,
- Object? status = _acpCopyWithAbsent,
- Object? content = _acpCopyWithAbsent,
- Object? locations = _acpCopyWithAbsent,
- Object? rawInput = _acpCopyWithAbsent,
- Object? rawOutput = _acpCopyWithAbsent,
- Object? meta = _acpCopyWithAbsent,
Implementation
ToolCall copyWith({
Object? toolCallId = _acpCopyWithAbsent,
Object? title = _acpCopyWithAbsent,
Object? kind = _acpCopyWithAbsent,
Object? status = _acpCopyWithAbsent,
Object? content = _acpCopyWithAbsent,
Object? locations = _acpCopyWithAbsent,
Object? rawInput = _acpCopyWithAbsent,
Object? rawOutput = _acpCopyWithAbsent,
Object? meta = _acpCopyWithAbsent,
}) => ToolCall(
toolCallId: identical(toolCallId, _acpCopyWithAbsent)
? this.toolCallId
: toolCallId as ToolCallId,
title: identical(title, _acpCopyWithAbsent) ? this.title : title as String,
kind: identical(kind, _acpCopyWithAbsent) ? this.kind : kind as ToolKind?,
status: identical(status, _acpCopyWithAbsent)
? this.status
: status as ToolCallStatus?,
content: identical(content, _acpCopyWithAbsent)
? this.content
: content as List<ToolCallContent>?,
locations: identical(locations, _acpCopyWithAbsent)
? this.locations
: locations as List<ToolCallLocation>?,
rawInput: identical(rawInput, _acpCopyWithAbsent)
? this.rawInput
: rawInput as Object?,
rawOutput: identical(rawOutput, _acpCopyWithAbsent)
? this.rawOutput
: rawOutput as Object?,
meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);