Class OpenAIToolCall
java.lang.Object
io.agentscope.extensions.model.openai.dto.OpenAIToolCall
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\"}"
}
}
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenAIToolCall.Builderbuilder()getId()getIndex()getType()voidsetFunction(OpenAIFunction function) voidvoidvoidsetThoughtSignature(String thoughtSignature) void
-
Constructor Details
-
OpenAIToolCall
public OpenAIToolCall()
-
-
Method Details
-
getId
-
setId
-
getType
-
setType
-
getFunction
-
setFunction
-
getIndex
-
setIndex
-
getThoughtSignature
-
setThoughtSignature
-
builder
-