ExtensionsOpenAIModelFactory.CustomGrammarFormatParam Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Grammar format.
public static Azure.AI.Extensions.OpenAI.CustomGrammarFormatParam CustomGrammarFormatParam(Azure.AI.Extensions.OpenAI.ResponsesGrammarSyntax syntax = Azure.AI.Extensions.OpenAI.ResponsesGrammarSyntax.Lark, string definition = default);
static member CustomGrammarFormatParam : Azure.AI.Extensions.OpenAI.ResponsesGrammarSyntax * string -> Azure.AI.Extensions.OpenAI.CustomGrammarFormatParam
Public Shared Function CustomGrammarFormatParam (Optional syntax As ResponsesGrammarSyntax = Azure.AI.Extensions.OpenAI.ResponsesGrammarSyntax.Lark, Optional definition As String = Nothing) As CustomGrammarFormatParam
Parameters
- syntax
- ResponsesGrammarSyntax
The syntax of the grammar definition. One of lark or regex.
- definition
- String
The grammar definition.
Returns
A new CustomGrammarFormatParam instance for mocking.