Class JsonSchema.JsonSchemaBuilder
java.lang.Object
nl.dannyj.mistral.models.completion.tool.JsonSchema.JsonSchemaBuilder
- Enclosing class:
- JsonSchema
-
Method Summary
Modifier and TypeMethodDescriptionbuild()description(String description) An optional description of the schema.The name of the schema.The JSON schema definition, represented as a String.strict(boolean strict) Whether the schema should be strictly adhered to.toString()
-
Method Details
-
name
The name of the schema.- Parameters:
name- The name of the schema.- Returns:
this.
-
description
An optional description of the schema.- Parameters:
description- The description of the schema.- Returns:
this.
-
schema
The JSON schema definition, represented as a String.- Parameters:
schema- The string representing the JSON schema.- Returns:
this.
-
strict
Whether the schema should be strictly adhered to. Defaults to false.- Parameters:
strict- Whether the schema is strict.- Returns:
this.
-
build
-
toString
-