Interface DeepSeekJsonSchema
public sealed interface DeepSeekJsonSchema
A sealed interface representing a DeepSeek-compatible JSON Schema definition,
supporting object/array/string/enum/anyOf types and the ability to mark fields as required.
Usage example:
DeepSeekJsonSchema eventSchema = DeepSeekJsonSchema.objectSchema()
.property("name", DeepSeekJsonSchema.stringSchema("Event name"), true)
.property("date", DeepSeekJsonSchema.stringSchema("Event date"), true)
.additionalProperties(false);
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(boolean allowed) static DeepSeekJsonSchemaanyOf(DeepSeekJsonSchema... variants) static DeepSeekJsonSchemaarraySchema(DeepSeekJsonSchema itemsSchema) static DeepSeekJsonSchemabooleanSchema(String description) description(String desc) static DeepSeekJsonSchemaenumSchema(String description, String... enumValues) enumValues(String... values) static DeepSeekJsonSchemaintegerSchema(String description) items(DeepSeekJsonSchema itemSchema) static DeepSeekJsonSchemanumberSchema(String description) static DeepSeekJsonSchemaproperty(String name, DeepSeekJsonSchema schema, boolean requiredField) static DeepSeekJsonSchemastringSchema(String description) org.json.JSONObjecttoJson()
-
Method Details
-
toJson
org.json.JSONObject toJson() -
description
-
property
-
items
-
enumValues
-
additionalProperties
-
objectSchema
-
stringSchema
-
numberSchema
-
booleanSchema
-
integerSchema
-
arraySchema
-
enumSchema
-
anyOf
-