Class OpenAIToolFunction
java.lang.Object
io.agentscope.core.chat.completions.model.OpenAIToolFunction
OpenAI tool function definition for Chat Completions API requests.
This class represents the function definition in a tool, following OpenAI's format.
Example:
{
"name": "get_weather",
"description": "Get the current weather",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string"}
},
"required": ["location"]
}
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidsetDescription(String description) voidvoidsetParameters(Map<String, Object> parameters) void
-
Constructor Details
-
OpenAIToolFunction
public OpenAIToolFunction()Default constructor for deserialization.
-
-
Method Details
-
getName
-
setName
-
getDescription
-
setDescription
-
getParameters
-
setParameters
-
getStrict
-
setStrict
-