Class OpenAIToolFunction
java.lang.Object
io.agentscope.extensions.model.openai.dto.OpenAIToolFunction
OpenAI tool function definition DTO.
This class represents the function definition in a tool.
Example:
{
"name": "get_weather",
"description": "Get the current weather",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string"}
},
"required": ["location"]
}
}
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenAIToolFunction.Builderbuilder()getName()voidsetDescription(String description) voidvoidsetParameters(Map<String, Object> parameters) void
-
Constructor Details
-
OpenAIToolFunction
public OpenAIToolFunction()
-
-
Method Details
-
getName
-
setName
-
getDescription
-
setDescription
-
getParameters
-
setParameters
-
getStrict
-
setStrict
-
builder
-