Skip to content

Rework the AIFunctionFactory APIs and remove redundant overloads following removal of trimmer annotations. - #5510

Merged
eiriktsarpalis merged 4 commits into
dotnet:mainfrom
eiriktsarpalis:remote-redundant-overloads
Oct 11, 2024
Merged

eiriktsarpalis merged 4 commits into
dotnet:mainfrom
eiriktsarpalis:remote-redundant-overloads

Conversation

@eiriktsarpalis

@eiriktsarpalis eiriktsarpalis commented Oct 11, 2024 •

Copy link
Copy Markdown
Member

Follow-up work to #5507

Microsoft Reviewers: Open in CodeFlow

Comment thread src/Libraries/Microsoft.Extensions.AI/Functions/AIFunctionFactory.cs Outdated
Comment thread src/Libraries/Microsoft.Extensions.AI/Functions/AIFunctionFactory.cs Outdated
@eiriktsarpalis

Copy link
Copy Markdown
Member Author

I pushed more changes adding a new MethodInfo overload that matches the Delegate accelerator. One source breaking change this introduces is making the object? target parameter non-optional. I think this is goodness because it forces users to be deliberate as to whether they're passing a static or instance method.

@eiriktsarpalis
eiriktsarpalis merged commit 6249779 into dotnet:main Oct 11, 2024
@eiriktsarpalis
eiriktsarpalis deleted the remote-redundant-overloads branch October 11, 2024 17:47
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 11, 2024
@jeffhandley jeffhandley added the area-ai Microsoft.Extensions.AI libraries label Mar 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants