copyWith method

  1. @override
FakeEchoChatModelOptions copyWith({
  1. String? model,
  2. Map<String, dynamic>? metadata,
  3. bool? throwRandomError,
  4. List<ToolSpec>? tools,
  5. ChatToolChoice? toolChoice,
  6. int? concurrencyLimit,
})
override

Creates a copy of this RunnableOptions with the given fields replaced by the new values.

Implementation

@override
FakeEchoChatModelOptions copyWith({
  final String? model,
  final Map<String, dynamic>? metadata,
  final bool? throwRandomError,
  final List<ToolSpec>? tools,
  final ChatToolChoice? toolChoice,
  final int? concurrencyLimit,
}) {
  return FakeEchoChatModelOptions(
    model: model ?? this.model,
    metadata: metadata ?? this.metadata,
    throwRandomError: throwRandomError ?? this.throwRandomError,
    tools: tools ?? this.tools,
    toolChoice: toolChoice ?? this.toolChoice,
    concurrencyLimit: concurrencyLimit ?? this.concurrencyLimit,
  );
}