类 OpenAIFunction

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

public class OpenAIFunction extends Object
OpenAI function call DTO.

This class represents the function details in a tool call.

Example:


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

    • OpenAIFunction

      public OpenAIFunction()
    • OpenAIFunction

      public OpenAIFunction(String name, String arguments)
  • 方法详细资料

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getArguments

      public String getArguments()
    • setArguments

      public void setArguments(String arguments)
    • getThoughtSignature

      public String getThoughtSignature()
    • setThoughtSignature

      public void setThoughtSignature(String thoughtSignature)
    • of

      public static OpenAIFunction of(String name, String arguments)
    • of

      public static OpenAIFunction of(String name, String arguments, String thoughtSignature)