Class FunctionManager.NoCallableFunction
java.lang.Object
com.jackdaw.chatwithnpc.openaiapi.function.CustomFunction
com.jackdaw.chatwithnpc.openaiapi.function.FunctionManager.NoCallableFunction
- Enclosing class:
- FunctionManager
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable String
(package private) @NotNull String
Fields inherited from class com.jackdaw.chatwithnpc.openaiapi.function.CustomFunction
description, properties, required
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
-
call
-
-
Constructor Details
-
NoCallableFunction
-
-
Method Details
-
execute
public Map<String,String> execute(@NotNull @NotNull ConversationHandler conversation, @NotNull @NotNull Map<String, Object> args) Description copied from class:CustomFunction
Execute the function. This method will be called by the OpenAI Assistant in a conversation.- Specified by:
execute
in classCustomFunction
- Parameters:
conversation
- The conversation handlerargs
- The arguments- Returns:
- The result you want to tell the OpenAI assistant
-