Skip to content

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

@SergeyMenshykh

Description

@SergeyMenshykh

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.

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codeai connectorAnything related to AI connectorsfunction_callingsk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)
No fields configured for Feature.

Projects

Status
Sprint: In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions