copyWith method

ToolCallsDetails copyWith({
  1. List<StepToolCall>? toolCalls,
})

Creates a copy with the given fields replaced.

Implementation

ToolCallsDetails copyWith({List<StepToolCall>? toolCalls}) {
  return ToolCallsDetails(toolCalls: toolCalls ?? this.toolCalls);
}