copyWith method

  1. @override
VectorStoreRetrieverOptions copyWith({
  1. VectorStoreSearchType? searchType,
  2. int? concurrencyLimit,
})
override

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

Implementation

@override
VectorStoreRetrieverOptions copyWith({
  final VectorStoreSearchType? searchType,
  final int? concurrencyLimit,
}) {
  return VectorStoreRetrieverOptions(
    searchType: searchType ?? this.searchType,
    concurrencyLimit: concurrencyLimit ?? this.concurrencyLimit,
  );
}