Skip to content

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

Open
@riverar

Description

@riverar

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions