copyWith method
FakeEchoChatModelOptions
copyWith({
- String? model,
- Map<
String, dynamic> ? metadata, - bool? throwRandomError,
- List<
ToolSpec> ? tools, - ChatToolChoice? toolChoice,
- 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,
);
}