Class DashScopeResponseFormat.JsonSchemaConfig

java.lang.Object
com.alibaba.cloud.ai.dashscope.api.DashScopeResponseFormat.JsonSchemaConfig
Enclosing class:
DashScopeResponseFormat

public static class DashScopeResponseFormat.JsonSchemaConfig extends Object
The configuration for a JSON Schema-based structured output.
  • Constructor Details

    • JsonSchemaConfig

      public JsonSchemaConfig()
  • Method Details

    • getName

      public String getName()
      Gets the schema name.
      Returns:
      the schema name
    • setName

      public void setName(String name)
      Sets the schema name.
      Parameters:
      name - the schema name
    • getDescription

      public String getDescription()
      Gets the schema description.
      Returns:
      the schema description
    • setDescription

      public void setDescription(String description)
      Sets the schema description.
      Parameters:
      description - the schema description
    • getSchema

      public Object getSchema()
      Gets the JSON Schema object defining the output structure.
      Returns:
      the schema object
    • setSchema

      public void setSchema(Object schema)
      Sets the JSON Schema object defining the output structure.
      Parameters:
      schema - the JSON Schema object
    • getStrict

      public Boolean getStrict()
      Gets the JSON Schema strict mode.
      Returns:
      true strict mode is enabled; false or null is disabled
    • setStrict

      public void setStrict(Boolean strict)
      Sets the JSON Schema strict mode.
      Parameters:
      strict - true to enable strict mode (recommended), false to disable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • builder

      Returns a new builder for constructing instances of DashScopeResponseFormat.JsonSchemaConfig.
      Returns:
      a new builder instance