-
Notifications
You must be signed in to change notification settings - Fork 4.6k
.Net: Extend function calling model to support strict mode #9786
Copy link
Copy link
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codeai connectorAnything related to AI connectorsAnything related to AI connectorsfunction_callingsk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)
Metadata
Metadata
Assignees
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codeai connectorAnything related to AI connectorsAnything related to AI connectorsfunction_callingsk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)
Type
Fields
Give feedbackNo fields configured for Feature.
Projects
StatusShow more project fields
Sprint: In Review
Context: {Azure}OpenAI support the 'strict' mode for function calling that tells the model to adhere to JSON schema of the function definition:

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
AllowStrictSchemaAdherenceproperty to theFunctionChoiceBehaviorOptionsclass allowing activation of the strict mode for function calling.