copyWith method
FakeChatModelOptions
copyWith({
- String? model,
- Map<
String, dynamic> ? metadata, - 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
FakeChatModelOptions copyWith({
final String? model,
final Map<String, dynamic>? metadata,
final List<ToolSpec>? tools,
final ChatToolChoice? toolChoice,
final int? concurrencyLimit,
}) {
return FakeChatModelOptions(
model: model ?? this.model,
metadata: metadata ?? this.metadata,
tools: tools ?? this.tools,
toolChoice: toolChoice ?? this.toolChoice,
concurrencyLimit: concurrencyLimit ?? this.concurrencyLimit,
);
}