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

Methods in M.W.AI.Generative.ILanguageModelX interfaces missing unique overload attributes #5118

Open
riverar opened this issue Feb 7, 2025 · 0 comments

Comments

@riverar
Copy link
Contributor

riverar commented Feb 7, 2025

Describe the bug

When projecting Microsoft.Windows.AI.Generative.ILanguageModelX interfaces, methods with identical names (such as GenerateResponseAsync) lack unique Overload attributes. All methods across an interface inheritance hierarchy must have distinct projected names in languages that do not support overloading.

internal interface ILanguageModel
{
	[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
	IAsyncOperation<LanguageModelResponse> GenerateResponseAsync(...);
	// ...
}

internal interface ILanguageModel5
{
	[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
	[Overload("GenerateResponseAsync")]
	IAsyncOperation<LanguageModelResponse> GenerateResponseAsync(...);
	// ...
}

Steps to reproduce the bug

N/A

Expected behavior

No response

Screenshots

No response

NuGet package version

Windows App SDK 1.7 Experimental 3: 1.7.250127003-experimental3

Packaging type

No response

Windows version

Insider Build (xxxxx)

IDE

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants