类 OpenAIToolCall

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

public class OpenAIToolCall extends Object
OpenAI tool call DTO.

This class represents a tool call made by the assistant.

Example:


 {
   "id": "call_abc123",
   "type": "function",
   "function": {
     "name": "get_weather",
     "arguments": "{\"location\": \"Beijing\"}"
   }
 }
 
  • 构造器详细资料

    • OpenAIToolCall

      public OpenAIToolCall()
  • 方法详细资料

    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getFunction

      public OpenAIFunction getFunction()
    • setFunction

      public void setFunction(OpenAIFunction function)
    • getIndex

      public Integer getIndex()
    • setIndex

      public void setIndex(Integer index)
    • getThoughtSignature

      public String getThoughtSignature()
    • setThoughtSignature

      public void setThoughtSignature(String thoughtSignature)
    • builder

      public static OpenAIToolCall.Builder builder()