Class ZhiPuAiApi.FunctionTool
java.lang.Object
org.springframework.ai.zhipuai.api.ZhiPuAiApi.FunctionTool
- Enclosing class:
- ZhiPuAiApi
Represents a tool the model may call. Currently, only functions are supported as a tool.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Function definition.static enum
Create a tool of type 'function' and the given function definition. -
Constructor Summary
ConstructorDescriptionFunctionTool
(ZhiPuAiApi.FunctionTool.Function function) Create a tool of type 'function' and the given function definition.FunctionTool
(ZhiPuAiApi.FunctionTool.Type type, ZhiPuAiApi.FunctionTool.Function function) Create a tool of type 'function' and the given function definition. -
Method Summary
Modifier and TypeMethodDescriptiongetType()
void
setFunction
(ZhiPuAiApi.FunctionTool.Function function) void
-
Constructor Details
-
FunctionTool
public FunctionTool() -
FunctionTool
Create a tool of type 'function' and the given function definition.- Parameters:
type
- the tool typefunction
- function definition
-
FunctionTool
Create a tool of type 'function' and the given function definition.- Parameters:
function
- function definition.
-
-
Method Details
-
getType
-
getFunction
-
setType
-
setFunction
-