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][API Break Change] In AutoGen.SourceGenerator, stop generating FunctionDefinition #3133

Closed
Tracked by #2640
LittleLittleCloud opened this issue Jul 14, 2024 · 0 comments · Fixed by #3134
Closed
Tracked by #2640
Assignees
Labels
api-break-change Will break existing api and needs an migration for previous code to work dotnet issues related to AutoGen.Net

Comments

@LittleLittleCloud
Copy link
Collaborator

LittleLittleCloud commented Jul 14, 2024

FunctionDefinition is a type from Azure.AI.OpenAI, generating FunctionDefinition in source generator will introduce unnecessary package dependencies.

Migration guide

  • Use ToOpenAIFunctionDefinition() extension from AutoGen.OpenAI if you want to generate FunctionDefinition from AutoGen.Core.FunctionContract
  • Use FunctionContract to get meta data like function name or parameters

Also you can refer to #3134 on more information to migrate

@LittleLittleCloud LittleLittleCloud changed the title In AutoGen.SourceGenerator, stop generating FunctionDefinition [.Net] In AutoGen.SourceGenerator, stop generating FunctionDefinition Jul 14, 2024
@LittleLittleCloud LittleLittleCloud added dotnet issues related to AutoGen.Net api-break-change Will break existing api and needs an migration for previous code to work labels Jul 14, 2024
@LittleLittleCloud LittleLittleCloud added this to the AutoGen.Net 0.1.0 milestone Jul 14, 2024
@LittleLittleCloud LittleLittleCloud self-assigned this Jul 14, 2024
@LittleLittleCloud LittleLittleCloud changed the title [.Net] In AutoGen.SourceGenerator, stop generating FunctionDefinition [.Net][API Break Change] In AutoGen.SourceGenerator, stop generating FunctionDefinition Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-break-change Will break existing api and needs an migration for previous code to work dotnet issues related to AutoGen.Net
Projects
None yet
1 participant