类 DashScopeToolFunction

java.lang.Object
io.agentscope.core.formatter.dashscope.dto.DashScopeToolFunction

public class DashScopeToolFunction extends Object
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"]
   }
 }
 
  • 构造器详细资料

    • DashScopeToolFunction

      public DashScopeToolFunction()
    • DashScopeToolFunction

      public DashScopeToolFunction(String name, String description, Map<String,Object> parameters)
  • 方法详细资料