Skip to content

Commit 262eb47

Browse files
authored
Improve recipes and Docs (#394)
1 parent b345a6f commit 262eb47

File tree

64 files changed

+1920
-1629
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1920
-1629
lines changed

Directory.Packages.props

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
</PropertyGroup>
88
<ItemGroup>
99
<!-- Miscellaneous Packages -->
10-
<PackageVersion Include="CrestApps.AgentSkills.OrchardCore" Version="1.0.0-preview-0003" />
11-
<PackageVersion Include="CrestApps.AgentSkills.Mcp.OrchardCore" Version="1.0.0-preview-0003" />
12-
<PackageVersion Include="DocumentFormat.OpenXml" Version="3.4.1" />
10+
<PackageVersion Include="CrestApps.AgentSkills.OrchardCore" Version="1.0.0-preview-0004" />
11+
<PackageVersion Include="CrestApps.AgentSkills.Mcp.OrchardCore" Version="1.0.0-preview-0004" />
12+
<PackageVersion Include="DocumentFormat.OpenXml" Version="3.5.1" />
1313
<PackageVersion Include="Fluid.Core" Version="2.31.0" />
14-
<PackageVersion Include="FluentFTP" Version="53.0.2" />
15-
<PackageVersion Include="JsonSchema.Net" Version="7.4.0" />
14+
<PackageVersion Include="FluentFTP" Version="54.0.2" />
15+
<PackageVersion Include="JsonSchema.Net" Version="9.1.3" />
1616
<PackageVersion Include="Lucene.Net.Analysis.Common" Version="4.8.0-beta00017" />
1717
<PackageVersion Include="Markdig" Version="1.1.1" />
1818
<PackageVersion Include="Microsoft.Extensions.DataIngestion" Version="10.4.0-preview.1.26160.2" />
1919
<PackageVersion Include="Microsoft.Extensions.DataIngestion.Markdig" Version="10.4.0-preview.1.26160.2" />
2020
<PackageVersion Include="Microsoft.ML.Tokenizers.Data.O200kBase" Version="2.0.0" />
2121
<PackageVersion Include="MongoDB.Driver" Version="3.4.0" />
2222
<PackageVersion Include="NuGet.Versioning" Version="7.3.0" />
23-
<PackageVersion Include="OllamaSharp" Version="5.4.23" />
23+
<PackageVersion Include="OllamaSharp" Version="5.4.24" />
2424
<PackageVersion Include="SSH.NET" Version="2025.1.0" />
2525
<PackageVersion Include="ZString" Version="2.6.0" />
2626
<PackageVersion Include="YesSql.Abstractions" Version="5.4.7" />
@@ -30,8 +30,8 @@
3030
<PackageVersion Include="ModelContextProtocol" Version="$(ModelContextProtocolVersion)" />
3131
<PackageVersion Include="ModelContextProtocol.AspNetCore" Version="$(ModelContextProtocolVersion)" />
3232
<PackageVersion Include="ModelContextProtocol.Core" Version="$(ModelContextProtocolVersion)" />
33-
<PackageVersion Include="PdfPig" Version="0.1.13" />
34-
<PackageVersion Include="GitHub.Copilot.SDK" Version="0.1.32" />
33+
<PackageVersion Include="PdfPig" Version="0.1.14" />
34+
<PackageVersion Include="GitHub.Copilot.SDK" Version="0.2.0" />
3535
</ItemGroup>
3636
<ItemGroup>
3737
<!-- OrchardCore Packages -->
@@ -98,9 +98,9 @@
9898
<PackageVersion Include="Azure.Messaging.EventGrid" Version="5.0.0" />
9999
<PackageVersion Include="Azure.Search.Documents" Version="11.7.0" />
100100
<PackageVersion Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="10.0.3" />
101-
<PackageVersion Include="Microsoft.Extensions.AI" Version="10.4.0" />
102-
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="10.4.0" />
103-
<PackageVersion Include="Microsoft.Extensions.AI.OpenAI" Version="10.4.0" />
101+
<PackageVersion Include="Microsoft.Extensions.AI" Version="10.4.1" />
102+
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="10.4.1" />
103+
<PackageVersion Include="Microsoft.Extensions.AI.OpenAI" Version="10.4.1" />
104104
<PackageVersion Include="Microsoft.Extensions.AI.AzureAIInference" Version="10.0.0-preview.1.25559.3" />
105105
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.5" />
106106
<PackageVersion Include="Microsoft.Extensions.FileProviders.Physical" Version="10.0.5" />
@@ -124,9 +124,9 @@
124124
</ItemGroup>
125125
<ItemGroup>
126126
<!-- Aspire Packages -->
127-
<PackageVersion Include="Aspire.Hosting.AppHost" Version="13.1.2" />
127+
<PackageVersion Include="Aspire.Hosting.AppHost" Version="13.2.0" />
128128
<PackageVersion Include="Aspire.Hosting.Elasticsearch" Version="13.1.0" />
129-
<PackageVersion Include="Aspire.Hosting.Redis" Version="13.1.2" />
129+
<PackageVersion Include="Aspire.Hosting.Redis" Version="13.2.0" />
130130
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.Ollama" Version="13.1.1" />
131131
</ItemGroup>
132132
<ItemGroup>

src/Abstractions/CrestApps.OrchardCore.AI.Abstractions/IAIClientFactory.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ public interface IAIClientFactory
7878
/// <returns>
7979
/// A <see cref="ValueTask{TResult}"/> representing the asynchronous operation, with the created <see cref="ITextToSpeechClient"/>.
8080
/// </returns>
81+
#pragma warning disable MEAI001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
8182
ValueTask<ITextToSpeechClient> CreateTextToSpeechClientAsync(string providerName, string connectionName, string deploymentName = null);
83+
#pragma warning restore MEAI001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
8284

8385
/// <summary>
8486
/// Asynchronously creates an <see cref="ITextToSpeechClient"/> instance from a deployment that may use
@@ -88,12 +90,8 @@ public interface IAIClientFactory
8890
/// <returns>
8991
/// A <see cref="ValueTask{TResult}"/> representing the asynchronous operation, with the created <see cref="ITextToSpeechClient"/>.
9092
/// </returns>
93+
#pragma warning disable MEAI001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
9194
ValueTask<ITextToSpeechClient> CreateTextToSpeechClientAsync(AIDeployment deployment);
95+
#pragma warning restore MEAI001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
9296

93-
/// <summary>
94-
/// Gets the available speech voices for the specified deployment by delegating to the appropriate provider.
95-
/// </summary>
96-
/// <param name="deployment">The AI deployment containing provider, connection, and model information.</param>
97-
/// <returns>An array of available <see cref="SpeechVoice"/> instances.</returns>
98-
Task<SpeechVoice[]> GetSpeechVoicesAsync(AIDeployment deployment);
9997
}

src/Abstractions/CrestApps.OrchardCore.AI.Abstractions/IAIClientProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public interface IAIClientProvider
5757
/// <param name="connection">The connection entry containing provider configuration.</param>
5858
/// <param name="deploymentName">The optional deployment name to use.</param>
5959
/// <returns>A <see cref="ValueTask{ITextToSpeechClient}"/> representing the asynchronous operation.</returns>
60+
#pragma warning disable MEAI001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
6061
ValueTask<ITextToSpeechClient> GetTextToSpeechClientAsync(AIProviderConnectionEntry connection, string deploymentName = null);
62+
#pragma warning restore MEAI001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
6163

6264
/// <summary>
6365
/// Gets the available speech voices for the specified connection and deployment.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using CrestApps.OrchardCore.AI.Models;
2+
3+
namespace CrestApps.OrchardCore.AI;
4+
5+
/// <summary>
6+
/// Resolves the available speech voices for a deployment by delegating to the matching AI client provider.
7+
/// </summary>
8+
public interface ISpeechVoiceResolver
9+
{
10+
/// <summary>
11+
/// Gets the available speech voices for the specified deployment.
12+
/// </summary>
13+
/// <param name="deployment">The AI deployment containing provider, connection, and model information.</param>
14+
/// <returns>An array of available <see cref="SpeechVoice"/> instances.</returns>
15+
Task<SpeechVoice[]> GetSpeechVoicesAsync(AIDeployment deployment);
16+
}

src/Abstractions/CrestApps.OrchardCore.AI.Abstractions/ITextToSpeechClient.cs

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/Abstractions/CrestApps.OrchardCore.AI.Abstractions/Models/TextToSpeechClientMetadata.cs

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/Abstractions/CrestApps.OrchardCore.AI.Abstractions/Models/TextToSpeechOptions.cs

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)