Commit 4ec4f85
Move AIFunctionFactory down to M.E.AI.Abstractions (dotnet#6412)
* Remove AIFunctionFactory dependency on M.E.DI
This means reverting the recent changes to it that:
- Special-cased KeyedServices
- Special-cased IServiceProviderIsService
- Used ActivatorUtilities.CreateInstance
* Move AIFunctionFactory down to M.E.AI.Abstractions
* Add CreateInstance delegate to AIFunctionFactoryOptions
To enable use of ActivatorUtilities.CreateInstance or alternative.
* Add some comments1 parent 7a1b919 commit 4ec4f85
5 files changed
Lines changed: 234 additions & 391 deletions
File tree
- src/Libraries
- Microsoft.Extensions.AI.Abstractions/Functions
- Microsoft.Extensions.AI
- ChatCompletion
- Functions
- test/Libraries/Microsoft.Extensions.AI.Tests/Functions
0 commit comments