Skip to content

Conversation

@eiriktsarpalis
Copy link
Member

@eiriktsarpalis eiriktsarpalis commented Oct 10, 2024

And removes all remaining RUC/RDC annotations from the codebase.

Microsoft Reviewers: Open in CodeFlow

@eiriktsarpalis eiriktsarpalis self-assigned this Oct 10, 2024
@eiriktsarpalis eiriktsarpalis requested a review from a team as a code owner October 10, 2024 18:07
/// <summary>Creates an <see cref="AIFunction"/> instance for a method, specified via a delegate.</summary>
/// <param name="method">The method to be represented via the created <see cref="AIFunction"/>.</param>
/// <returns>The created <see cref="AIFunction"/> for invoking <paramref name="method"/>.</returns>
[RequiresUnreferencedCode(UsesReflectionJsonSerializerMessage)]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A number of these overloads are now redundant, but I defer to @stephentoub when and when they should be removed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which are redundant / would you want to remove? Do you mean making the AIFunctionFactoryCreateOptions optional on the other overload?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be ok if you wanted to consolidate them here. I'm more concerned about batching up breaking binary changes to the object model, as those are the things we'd expect nuget packages to be impacted by. AIFunctionFactory is less relevant there.

@RussKie RussKie added the area-ai Microsoft.Extensions.AI libraries label Oct 10, 2024
@stephentoub stephentoub merged commit 058d827 into dotnet:main Oct 10, 2024
6 checks passed
@eiriktsarpalis eiriktsarpalis deleted the jso-defaults branch October 11, 2024 10:22
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2024
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.

4 participants