Browse Source
Update Microsoft.Extensions.AI package to version 9.7.1, add Microsoft.Extensions.AI.Abstractions package, and introduce new abstractions for AI functionality. Include FodyWeavers configuration and schema files for weaving support.
pull/23533/head
enisn
1 year ago
No known key found for this signature in database
GPG Key ID: A052619F04155D1C
10 changed files with
77 additions and
1 deletions
Directory.Packages.props
framework/src/Volo.Abp.AI.Abstractions/FodyWeavers.xml
framework/src/Volo.Abp.AI.Abstractions/FodyWeavers.xsd
framework/src/Volo.Abp.AI.Abstractions/Volo.Abp.AI.Abstractions.abppkg
framework/src/Volo.Abp.AI.Abstractions/Volo.Abp.AI.Abstractions.csproj
framework/src/Volo.Abp.AI.Abstractions/Volo/Abp/AI/AbpAIAbstractionsModule.cs
framework/src/Volo.Abp.AI.Abstractions/Volo/Abp/AI/ChatClientNameAttribute.cs
framework/src/Volo.Abp.AI.Abstractions/Volo/Abp/AI/IChatClient.cs
framework/src/Volo.Abp.AI/Volo.Abp.AI.csproj
nupkg/common.ps1
@ -87,7 +87,8 @@
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.5" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.5" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.5" />
<PackageVersion Include="Microsoft.Extensions.AI" Version="9.4.0-preview.1.25207.5" />
<PackageVersion Include="Microsoft.Extensions.AI" Version="9.7.1" />
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="9.7.1" />
<PackageVersion Include="Microsoft.Extensions.Caching.Hybrid" Version="9.4.0" />
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="9.0.5" />
<PackageVersion Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="9.0.5" />
@ -0,0 +1,3 @@
<Weavers xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "FodyWeavers.xsd" >
<ConfigureAwait ContinueOnCapturedContext= "false" />
</Weavers>
@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs= "http://www.w3.org/2001/XMLSchema" >
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
<xs:element name= "Weavers" >
<xs:complexType >
<xs:all >
<xs:element name= "ConfigureAwait" minOccurs= "0" maxOccurs= "1" >
<xs:complexType >
<xs:attribute name= "ContinueOnCapturedContext" type= "xs:boolean" />
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name= "VerifyAssembly" type= "xs:boolean" >
<xs:annotation >
<xs:documentation > 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name= "VerifyIgnoreCodes" type= "xs:string" >
<xs:annotation >
<xs:documentation > A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name= "GenerateXsd" type= "xs:boolean" >
<xs:annotation >
<xs:documentation > 'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
@ -0,0 +1,3 @@
{
"role": "lib.framework"
}
@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\common.props"/>
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0</TargetFrameworks>
<Nullable>enable</Nullable>
<WarningsAsErrors>Nullable</WarningsAsErrors>
<PackageId>Volo.Abp.AI.Abstractions</PackageId>
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<RootNamespace/>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Volo.Abp.Core\Volo.Abp.Core.csproj"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" />
</ItemGroup>
</Project>
@ -0,0 +1,10 @@
using Microsoft.Extensions.AI ;
using Microsoft.Extensions.DependencyInjection ;
using Microsoft.Extensions.DependencyInjection.Extensions ;
using Volo.Abp.Modularity ;
namespace Volo.Abp.AI ;
public class AbpAIAbstractionsModule : AbpModule
{
}
@ -16,6 +16,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Volo.Abp.AI.Abstractions\Volo.Abp.AI.Abstractions.csproj"/>
<ProjectReference Include="..\Volo.Abp.Core\Volo.Abp.Core.csproj"/>
</ItemGroup>
@ -93,6 +93,8 @@ $solutions = (
$projects = (
# framework
" framework/src/Volo.Abp.AI.Abstractions " ,
" framework/src/Volo.Abp.AI " ,
" framework/src/Volo.Abp.ApiVersioning.Abstractions " ,
" framework/src/Volo.Abp.AspNetCore.Authentication.JwtBearer " ,
" framework/src/Volo.Abp.AspNetCore.Authentication.OAuth " ,