public class UniResponseSchema extends Object
| Constructor and Description |
|---|
UniResponseSchema() |
UniResponseSchema(String type,
Map<String,UniResponseProperty> properties,
List<String> required) |
| Modifier and Type | Method and Description |
|---|---|
static UniResponseSchema |
array(String key)
"responseSchema": { "type": "object", "properties": { "suggestions": {
"type": "array", "items": { "type": "string" } } } }
|
Map<String,UniResponseProperty> |
getProperties() |
List<String> |
getRequired() |
String |
getType() |
static Map<String,String> |
itemType(String value) |
static UniResponseSchema |
pythonCode()
"responseSchema": { "type": "object", "properties": { "action": { "type":
"string" }, "tool": { "type": "string" } "code": { "type": "string" },
} }
|
void |
setProperties(Map<String,UniResponseProperty> properties) |
void |
setRequired(List<String> required) |
void |
setType(String type) |
public static UniResponseSchema array(String key)
public static UniResponseSchema pythonCode()
public String getType()
public void setType(String type)
public Map<String,UniResponseProperty> getProperties()
public void setProperties(Map<String,UniResponseProperty> properties)
Copyright © 2026. All rights reserved.