类 OpenAITool

java.lang.Object
io.agentscope.core.formatter.openai.dto.OpenAITool

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

    • OpenAITool

      public OpenAITool()
    • OpenAITool

      public OpenAITool(OpenAIToolFunction function)
  • 方法详细资料