Class DashScopeTool
java.lang.Object
io.agentscope.extensions.model.dashscope.dto.DashScopeTool
DashScope tool definition DTO.
This class represents a tool that can be called by the model.
Example:
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string"}
},
"required": ["location"]
}
}
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DashScopeToolfunction(DashScopeToolFunction function) Create a function tool.getType()voidsetFunction(DashScopeToolFunction function) void
-
Constructor Details
-
DashScopeTool
public DashScopeTool() -
DashScopeTool
-
-
Method Details
-
getType
-
setType
-
getFunction
-
setFunction
-
function
Create a function tool.- Parameters:
function- the function definition- Returns:
- a new DashScopeTool
-