Class DashScopeToolFunction
java.lang.Object
io.agentscope.extensions.model.dashscope.dto.DashScopeToolFunction
DashScope tool function definition DTO.
This class represents the function schema for a tool.
Example:
{
"name": "get_weather",
"description": "Get the current weather in a location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city name"
}
},
"required": ["location"]
}
}
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getName()voidsetDescription(String description) voidvoidsetParameters(Map<String, Object> parameters)
-
Constructor Details
-
DashScopeToolFunction
public DashScopeToolFunction() -
DashScopeToolFunction
-
-
Method Details
-
getName
-
setName
-
getDescription
-
setDescription
-
getParameters
-
setParameters
-
builder
-