diff --git a/dotnet/src/Connectors/Connectors.Memory.Pinecone/IPineconeMemoryStore.cs b/dotnet/src/Connectors/Connectors.Memory.Pinecone/IPineconeMemoryStore.cs index 6984951fdc90..c23c52b68760 100644 --- a/dotnet/src/Connectors/Connectors.Memory.Pinecone/IPineconeMemoryStore.cs +++ b/dotnet/src/Connectors/Connectors.Memory.Pinecone/IPineconeMemoryStore.cs @@ -126,7 +126,7 @@ IAsyncEnumerable GetBatchFromNamespaceAsync( /// if true, the embedding will be returned in the memory record. /// /// the memory records that match the filter. - public IAsyncEnumerable GetBatchWithFilterAsync( + IAsyncEnumerable GetBatchWithFilterAsync( string indexName, Dictionary filter, int limit = 10, @@ -182,7 +182,7 @@ Task RemoveWithDocumentIdAsync( /// the namespace to remove from. /// /// - public Task RemoveWithDocumentIdBatchAsync( + Task RemoveWithDocumentIdBatchAsync( string indexName, IEnumerable documentIds, string indexNamespace = "", diff --git a/dotnet/src/Connectors/Connectors.Memory.Postgres/IPostgresVectorStoreDbClient.cs b/dotnet/src/Connectors/Connectors.Memory.Postgres/IPostgresVectorStoreDbClient.cs index 59aa9829c568..1d6cb31be628 100644 --- a/dotnet/src/Connectors/Connectors.Memory.Postgres/IPostgresVectorStoreDbClient.cs +++ b/dotnet/src/Connectors/Connectors.Memory.Postgres/IPostgresVectorStoreDbClient.cs @@ -17,7 +17,7 @@ internal interface IPostgresVectorStoreDbClient /// /// The used to connect to the database. /// - public NpgsqlDataSource DataSource { get; } + NpgsqlDataSource DataSource { get; } /// /// Check if a table exists. diff --git a/dotnet/src/Connectors/Connectors.Memory.Qdrant/IQdrantVectorDbClient.cs b/dotnet/src/Connectors/Connectors.Memory.Qdrant/IQdrantVectorDbClient.cs index 3078e79c2113..aa9ad3f72190 100644 --- a/dotnet/src/Connectors/Connectors.Memory.Qdrant/IQdrantVectorDbClient.cs +++ b/dotnet/src/Connectors/Connectors.Memory.Qdrant/IQdrantVectorDbClient.cs @@ -22,7 +22,7 @@ public interface IQdrantVectorDbClient /// Whether to include the vector data in the returned results. /// The to monitor for cancellation requests. The default is . /// An asynchronous list of Qdrant vectors records associated with the given IDs - public IAsyncEnumerable GetVectorsByIdAsync(string collectionName, IEnumerable pointIds, bool withVectors = false, + IAsyncEnumerable GetVectorsByIdAsync(string collectionName, IEnumerable pointIds, bool withVectors = false, CancellationToken cancellationToken = default); /// @@ -33,7 +33,7 @@ public IAsyncEnumerable GetVectorsByIdAsync(string collectio /// Whether to include the vector data in the returned result. /// The to monitor for cancellation requests. The default is . /// The Qdrant vector record associated with the given ID if found, null if not. - public Task GetVectorByPayloadIdAsync(string collectionName, string metadataId, bool withVector = false, CancellationToken cancellationToken = default); + Task GetVectorByPayloadIdAsync(string collectionName, string metadataId, bool withVector = false, CancellationToken cancellationToken = default); /// /// Delete vectors by their unique Qdrant IDs. @@ -41,7 +41,7 @@ public IAsyncEnumerable GetVectorsByIdAsync(string collectio /// The name assigned to a collection of vectors. /// The unique IDs used to index Qdrant vector entries. /// The to monitor for cancellation requests. The default is . - public Task DeleteVectorsByIdAsync(string collectionName, IEnumerable pointIds, CancellationToken cancellationToken = default); + Task DeleteVectorsByIdAsync(string collectionName, IEnumerable pointIds, CancellationToken cancellationToken = default); /// /// Delete a vector by its unique identifier in the metadata (Qdrant payload). @@ -49,7 +49,7 @@ public IAsyncEnumerable GetVectorsByIdAsync(string collectio /// The name assigned to a collection of vectors. /// The unique ID stored in a Qdrant vector entry's metadata. /// The to monitor for cancellation requests. The default is . - public Task DeleteVectorByPayloadIdAsync(string collectionName, string metadataId, CancellationToken cancellationToken = default); + Task DeleteVectorByPayloadIdAsync(string collectionName, string metadataId, CancellationToken cancellationToken = default); /// /// Upsert a group of vectors into a collection. @@ -57,7 +57,7 @@ public IAsyncEnumerable GetVectorsByIdAsync(string collectio /// The name assigned to a collection of vectors. /// The Qdrant vector records to upsert. /// The to monitor for cancellation requests. The default is . - public Task UpsertVectorsAsync(string collectionName, IEnumerable vectorData, CancellationToken cancellationToken = default); + Task UpsertVectorsAsync(string collectionName, IEnumerable vectorData, CancellationToken cancellationToken = default); /// /// Find the nearest vectors in a collection using vector similarity search. @@ -69,7 +69,7 @@ public IAsyncEnumerable GetVectorsByIdAsync(string collectio /// Whether to include the vector data in the returned results. /// Qdrant tags used to filter the results. /// The to monitor for cancellation requests. The default is . - public IAsyncEnumerable<(QdrantVectorRecord, double)> FindNearestInCollectionAsync( + IAsyncEnumerable<(QdrantVectorRecord, double)> FindNearestInCollectionAsync( string collectionName, ReadOnlyMemory target, double threshold, @@ -83,25 +83,25 @@ public IAsyncEnumerable GetVectorsByIdAsync(string collectio /// /// The name assigned to a collection of vectors. /// The to monitor for cancellation requests. The default is . - public Task CreateCollectionAsync(string collectionName, CancellationToken cancellationToken = default); + Task CreateCollectionAsync(string collectionName, CancellationToken cancellationToken = default); /// /// Delete a Qdrant vector collection. /// /// The name assigned to a collection of vectors. /// The to monitor for cancellation requests. The default is . - public Task DeleteCollectionAsync(string collectionName, CancellationToken cancellationToken = default); + Task DeleteCollectionAsync(string collectionName, CancellationToken cancellationToken = default); /// /// Check if a vector collection exists. /// /// The name assigned to a collection of vectors. /// The to monitor for cancellation requests. The default is . - public Task DoesCollectionExistAsync(string collectionName, CancellationToken cancellationToken = default); + Task DoesCollectionExistAsync(string collectionName, CancellationToken cancellationToken = default); /// /// List all vector collections. /// /// The to monitor for cancellation requests. The default is . - public IAsyncEnumerable ListCollectionsAsync(CancellationToken cancellationToken = default); + IAsyncEnumerable ListCollectionsAsync(CancellationToken cancellationToken = default); } diff --git a/dotnet/src/Connectors/VectorData.Abstractions/VectorStorage/IVectorStoreRecordCollection.cs b/dotnet/src/Connectors/VectorData.Abstractions/VectorStorage/IVectorStoreRecordCollection.cs index 09a9339507f7..37d8bdb47e7b 100644 --- a/dotnet/src/Connectors/VectorData.Abstractions/VectorStorage/IVectorStoreRecordCollection.cs +++ b/dotnet/src/Connectors/VectorData.Abstractions/VectorStorage/IVectorStoreRecordCollection.cs @@ -19,7 +19,7 @@ public interface IVectorStoreRecordCollection : IVectorizedSearch /// /// Gets the name of the collection. /// - public string CollectionName { get; } + string CollectionName { get; } /// /// Checks if the collection exists in the vector store. diff --git a/dotnet/src/Experimental/Process.Abstractions/IKernelExternalProcessMessageChannel.cs b/dotnet/src/Experimental/Process.Abstractions/IKernelExternalProcessMessageChannel.cs index eaf9b0e92859..10cfbadd951e 100644 --- a/dotnet/src/Experimental/Process.Abstractions/IKernelExternalProcessMessageChannel.cs +++ b/dotnet/src/Experimental/Process.Abstractions/IKernelExternalProcessMessageChannel.cs @@ -14,13 +14,13 @@ public interface IExternalKernelProcessMessageChannel /// Initialization of the external messaging channel used /// /// A - public abstract ValueTask Initialize(); + abstract ValueTask Initialize(); /// /// Uninitialization of the external messaging channel used /// /// A - public abstract ValueTask Uninitialize(); + abstract ValueTask Uninitialize(); /// /// Emits the specified event from the step outside the SK process @@ -28,5 +28,5 @@ public interface IExternalKernelProcessMessageChannel /// name of the topic to be used externally as the event name /// data to be transmitted externally /// - public abstract Task EmitExternalEventAsync(string externalTopicEvent, object? eventData); + abstract Task EmitExternalEventAsync(string externalTopicEvent, object? eventData); } diff --git a/dotnet/src/Experimental/Process.Abstractions/IKernelProcessMessageChannel.cs b/dotnet/src/Experimental/Process.Abstractions/IKernelProcessMessageChannel.cs index d98dc211aaf8..53df244aa8a9 100644 --- a/dotnet/src/Experimental/Process.Abstractions/IKernelProcessMessageChannel.cs +++ b/dotnet/src/Experimental/Process.Abstractions/IKernelProcessMessageChannel.cs @@ -14,5 +14,5 @@ public interface IKernelProcessMessageChannel /// /// The event to emit. /// A - public abstract ValueTask EmitEventAsync(KernelProcessEvent processEvent); + abstract ValueTask EmitEventAsync(KernelProcessEvent processEvent); } diff --git a/dotnet/src/InternalUtilities/src/Diagnostics/ActivityExtensions.cs b/dotnet/src/InternalUtilities/src/Diagnostics/ActivityExtensions.cs index 6b21ce027628..14d29749e36e 100644 --- a/dotnet/src/InternalUtilities/src/Diagnostics/ActivityExtensions.cs +++ b/dotnet/src/InternalUtilities/src/Diagnostics/ActivityExtensions.cs @@ -27,7 +27,8 @@ public static Activity SetTags(this Activity activity, ReadOnlySpan /// Path to the file. /// The to monitor for cancellation requests. The default is . - public Task GetFileContentStreamAsync(string filePath, CancellationToken cancellationToken = default); + Task GetFileContentStreamAsync(string filePath, CancellationToken cancellationToken = default); /// /// Get a writeable stream to an existing file. /// /// Path to file. /// The to monitor for cancellation requests. The default is . - public Task GetWriteableFileStreamAsync(string filePath, CancellationToken cancellationToken = default); + Task GetWriteableFileStreamAsync(string filePath, CancellationToken cancellationToken = default); /// /// Create a new file and get a writeable stream to it. /// /// Path to file. /// The to monitor for cancellation requests. The default is . - public Task CreateFileAsync(string filePath, CancellationToken cancellationToken = default); + Task CreateFileAsync(string filePath, CancellationToken cancellationToken = default); /// /// Determine whether a file exists at the specified path. @@ -38,5 +38,5 @@ public interface IFileSystemConnector /// Path to file. /// The to monitor for cancellation requests. The default is . /// True if file exists, false otherwise. - public Task FileExistsAsync(string filePath, CancellationToken cancellationToken = default); + Task FileExistsAsync(string filePath, CancellationToken cancellationToken = default); } diff --git a/dotnet/src/Plugins/Plugins.Document/IDocumentConnector.cs b/dotnet/src/Plugins/Plugins.Document/IDocumentConnector.cs index 82934b86cecf..586129e4b84e 100644 --- a/dotnet/src/Plugins/Plugins.Document/IDocumentConnector.cs +++ b/dotnet/src/Plugins/Plugins.Document/IDocumentConnector.cs @@ -14,18 +14,18 @@ public interface IDocumentConnector /// /// Document stream /// String containing all text from the document. - public string ReadText(Stream stream); + string ReadText(Stream stream); /// /// Initialize a document from the given stream. /// /// IO stream - public void Initialize(Stream stream); + void Initialize(Stream stream); /// /// Append the specified text to the document. /// /// Document stream /// String of text to write to the document. - public void AppendText(Stream stream, string text); + void AppendText(Stream stream, string text); } diff --git a/dotnet/src/SemanticKernel.Abstractions/AI/TextToImage/ITextToImageService.cs b/dotnet/src/SemanticKernel.Abstractions/AI/TextToImage/ITextToImageService.cs index 3eb2d890aa54..95d1d442ab2f 100644 --- a/dotnet/src/SemanticKernel.Abstractions/AI/TextToImage/ITextToImageService.cs +++ b/dotnet/src/SemanticKernel.Abstractions/AI/TextToImage/ITextToImageService.cs @@ -23,7 +23,7 @@ public interface ITextToImageService : IAIService /// The to monitor for cancellation requests. The default is . /// Generated image contents [Experimental("SKEXP0001")] - public Task> GetImageContentsAsync( + Task> GetImageContentsAsync( TextContent input, PromptExecutionSettings? executionSettings = null, Kernel? kernel = null, diff --git a/dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/ITextSearch.cs b/dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/ITextSearch.cs index 3b1ef667255b..095c6d9a78d5 100644 --- a/dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/ITextSearch.cs +++ b/dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/ITextSearch.cs @@ -18,7 +18,7 @@ public interface ITextSearch /// What to search for. /// Options used when executing a text search. /// The to monitor for cancellation requests. The default is . - public Task> SearchAsync( + Task> SearchAsync( string query, TextSearchOptions? searchOptions = null, CancellationToken cancellationToken = default); @@ -29,7 +29,7 @@ public Task> SearchAsync( /// What to search for. /// Options used when executing a text search. /// The to monitor for cancellation requests. The default is . - public Task> GetTextSearchResultsAsync( + Task> GetTextSearchResultsAsync( string query, TextSearchOptions? searchOptions = null, CancellationToken cancellationToken = default); @@ -40,7 +40,7 @@ public Task> GetTextSearchResultsAsync( /// What to search for. /// Options used when executing a text search. /// The to monitor for cancellation requests. The default is . - public Task> GetSearchResultsAsync( + Task> GetSearchResultsAsync( string query, TextSearchOptions? searchOptions = null, CancellationToken cancellationToken = default); diff --git a/dotnet/src/SemanticKernel.Abstractions/Memory/ISemanticTextMemory.cs b/dotnet/src/SemanticKernel.Abstractions/Memory/ISemanticTextMemory.cs index d587fc56778b..7218f0ad4033 100644 --- a/dotnet/src/SemanticKernel.Abstractions/Memory/ISemanticTextMemory.cs +++ b/dotnet/src/SemanticKernel.Abstractions/Memory/ISemanticTextMemory.cs @@ -24,7 +24,7 @@ public interface ISemanticTextMemory /// The containing services, plugins, and other state for use throughout the operation. /// The to monitor for cancellation requests. The default is . /// Unique identifier of the saved memory record. - public Task SaveInformationAsync( + Task SaveInformationAsync( string collection, string text, string id, @@ -45,7 +45,7 @@ public Task SaveInformationAsync( /// The containing services, plugins, and other state for use throughout the operation. /// The to monitor for cancellation requests. The default is . /// Unique identifier of the saved memory record. - public Task SaveReferenceAsync( + Task SaveReferenceAsync( string collection, string text, string externalId, @@ -66,7 +66,7 @@ public Task SaveReferenceAsync( /// The containing services, plugins, and other state for use throughout the operation. /// The to monitor for cancellation requests. The default is . /// Memory record, or null when nothing is found - public Task GetAsync(string collection, string key, bool withEmbedding = false, Kernel? kernel = null, CancellationToken cancellationToken = default); + Task GetAsync(string collection, string key, bool withEmbedding = false, Kernel? kernel = null, CancellationToken cancellationToken = default); /// /// Remove a memory by key. @@ -77,7 +77,7 @@ public Task SaveReferenceAsync( /// Unique memory record identifier. /// The containing services, plugins, and other state for use throughout the operation. /// The to monitor for cancellation requests. The default is . - public Task RemoveAsync(string collection, string key, Kernel? kernel = null, CancellationToken cancellationToken = default); + Task RemoveAsync(string collection, string key, Kernel? kernel = null, CancellationToken cancellationToken = default); /// /// Find some information in memory @@ -90,7 +90,7 @@ public Task SaveReferenceAsync( /// The containing services, plugins, and other state for use throughout the operation. /// The to monitor for cancellation requests. The default is . /// Memories found - public IAsyncEnumerable SearchAsync( + IAsyncEnumerable SearchAsync( string collection, string query, int limit = 1, @@ -105,5 +105,5 @@ public IAsyncEnumerable SearchAsync( /// The containing services, plugins, and other state for use throughout the operation. /// The to monitor for cancellation requests. The default is . /// A group of collection names. - public Task> GetCollectionsAsync(Kernel? kernel = null, CancellationToken cancellationToken = default); + Task> GetCollectionsAsync(Kernel? kernel = null, CancellationToken cancellationToken = default); } diff --git a/dotnet/src/SemanticKernel.Core/TemplateEngine/Blocks/ICodeRendering.cs b/dotnet/src/SemanticKernel.Core/TemplateEngine/Blocks/ICodeRendering.cs index d1dcea92bf50..2a0581290eae 100644 --- a/dotnet/src/SemanticKernel.Core/TemplateEngine/Blocks/ICodeRendering.cs +++ b/dotnet/src/SemanticKernel.Core/TemplateEngine/Blocks/ICodeRendering.cs @@ -17,5 +17,5 @@ internal interface ICodeRendering /// The arguments /// The to monitor for cancellation requests. The default is . /// Rendered content - public ValueTask RenderCodeAsync(Kernel kernel, KernelArguments? arguments = null, CancellationToken cancellationToken = default); + ValueTask RenderCodeAsync(Kernel kernel, KernelArguments? arguments = null, CancellationToken cancellationToken = default); } diff --git a/dotnet/src/SemanticKernel.Core/TemplateEngine/Blocks/ITextRendering.cs b/dotnet/src/SemanticKernel.Core/TemplateEngine/Blocks/ITextRendering.cs index 87044226e4d1..48d63bed9971 100644 --- a/dotnet/src/SemanticKernel.Core/TemplateEngine/Blocks/ITextRendering.cs +++ b/dotnet/src/SemanticKernel.Core/TemplateEngine/Blocks/ITextRendering.cs @@ -11,5 +11,5 @@ internal interface ITextRendering /// /// Optional arguments the block rendering /// Rendered content - public object? Render(KernelArguments? arguments); + object? Render(KernelArguments? arguments); }