Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Make Core package AOT compatible #9079

Draft
wants to merge 5 commits into
base: feature-aot
Choose a base branch
from

Conversation

SergeyMenshykh
Copy link
Member

@SergeyMenshykh SergeyMenshykh commented Oct 3, 2024

Motivation, Context and Description

This PR adds a new AOT-compatible API to the SK Core package and refactors existing functionality to make it AOT-compatible.

99% of the changes involve new AOT-friendly overloads of methods to create, add, or import plugins/functions that accept JsonSerializerOptions (JSOs) as a parameter. JSOs are required for the generation of plugins' functions schema, deserialization for functions' parameters and return values marshaling, and serialization for telemetry purposes. The remaining changes are related to making the vector store functionality AOT-friendly and updating the test application to reference the Core package for AOT compiler analysis.

@SergeyMenshykh SergeyMenshykh self-assigned this Oct 3, 2024
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel kernel.core labels Oct 3, 2024
…ssedMemberTypes.In

terfaces' in call to 'System.Type.GetInterfaces()'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation kernel.core kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants