Class ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar
-
- All Implemented Interfaces:
public final class ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammarYour chosen grammar.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar.BuilderA builder for InnerGrammar.
public final classChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar.SyntaxThe syntax of the grammar definition. One of
larkorregex.
-
Method Summary
Modifier and Type Method Description final Stringdefinition()The grammar definition. final ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar.Syntaxsyntax()The syntax of the grammar definition. final JsonField<String>_definition()Returns the raw JSON value of definition. final JsonField<ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar.Syntax>_syntax()Returns the raw JSON value of syntax. final Map<String, JsonValue>_additionalProperties()final ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar.BuildertoBuilder()final ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammarvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar.Builderbuilder()Returns a mutable builder for constructing an instance of InnerGrammar. -
-
Method Detail
-
definition
final String definition()
The grammar definition.
-
syntax
final ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar.Syntax syntax()
The syntax of the grammar definition. One of
larkorregex.
-
_definition
final JsonField<String> _definition()
Returns the raw JSON value of definition.
Unlike definition, this method doesn't throw if the JSON field has an unexpected type.
-
_syntax
final JsonField<ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar.Syntax> _syntax()
Returns the raw JSON value of syntax.
Unlike syntax, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar.Builder toBuilder()
-
validate
final ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar validate()
-
builder
final static ChatCompletionCustomTool.Custom.Format.Grammar.InnerGrammar.Builder builder()
Returns a mutable builder for constructing an instance of InnerGrammar.
The following fields are required:
.definition() .syntax()
-
-
-
-