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: Extend function calling model to support strict mode #9786

Open
SergeyMenshykh opened this issue Nov 21, 2024 · 0 comments
Open

.Net: Extend function calling model to support strict mode #9786

SergeyMenshykh opened this issue Nov 21, 2024 · 0 comments
Labels
ai connector Anything related to AI connectors function_calling .NET Issue or Pull requests regarding .NET code triage

Comments

@SergeyMenshykh
Copy link
Member

Context: {Azure}OpenAI support the 'strict' mode for function calling that tells the model to adhere to JSON schema of the function definition:
Image
Source: https://platform.openai.com/docs/guides/function-calling

Enabling this mode should ensure that the arguments generated by the model for a function call exactly match the JSON Schema provided in the function definition.

ToDo: Add the new AllowStrictSchemaAdherence property to the FunctionChoiceBehaviorOptions class allowing activation of the strict mode for function calling.

@SergeyMenshykh SergeyMenshykh added ai connector Anything related to AI connectors function_calling labels Nov 21, 2024
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code triage labels Nov 21, 2024
@SergeyMenshykh SergeyMenshykh moved this to Backlog in Semantic Kernel Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai connector Anything related to AI connectors function_calling .NET Issue or Pull requests regarding .NET code triage
Projects
Status: Backlog
Development

No branches or pull requests

2 participants