Class DashScopeResponseFormat.JsonSchemaConfig
java.lang.Object
com.alibaba.cloud.ai.dashscope.api.DashScopeResponseFormat.JsonSchemaConfig
- Enclosing class:
- DashScopeResponseFormat
The configuration for a JSON Schema-based structured output.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for constructing instances ofDashScopeResponseFormat.JsonSchemaConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns a new builder for constructing instances ofDashScopeResponseFormat.JsonSchemaConfig.booleanGets the schema description.getName()Gets the schema name.Gets the JSON Schema object defining the output structure.Gets the JSON Schema strict mode.inthashCode()voidsetDescription(String description) Sets the schema description.voidSets the schema name.voidSets the JSON Schema object defining the output structure.voidSets the JSON Schema strict mode.
-
Constructor Details
-
JsonSchemaConfig
public JsonSchemaConfig()
-
-
Method Details
-
getName
Gets the schema name.- Returns:
- the schema name
-
setName
Sets the schema name.- Parameters:
name- the schema name
-
getDescription
Gets the schema description.- Returns:
- the schema description
-
setDescription
Sets the schema description.- Parameters:
description- the schema description
-
getSchema
Gets the JSON Schema object defining the output structure.- Returns:
- the schema object
-
setSchema
Sets the JSON Schema object defining the output structure.- Parameters:
schema- the JSON Schema object
-
getStrict
Gets the JSON Schema strict mode.- Returns:
- true strict mode is enabled; false or null is disabled
-
setStrict
Sets the JSON Schema strict mode.- Parameters:
strict- true to enable strict mode (recommended), false to disable
-
equals
-
hashCode
public int hashCode() -
builder
Returns a new builder for constructing instances ofDashScopeResponseFormat.JsonSchemaConfig.- Returns:
- a new builder instance
-