Class FunctionManager.NoCallableFunction

java.lang.Object
com.jackdaw.chatwithnpc.openaiapi.function.CustomFunction
com.jackdaw.chatwithnpc.openaiapi.function.FunctionManager.NoCallableFunction
Enclosing class:
FunctionManager

private static class FunctionManager.NoCallableFunction extends CustomFunction
  • Field Details

    • name

      @NotNull @NotNull String name
    • call

      @Nullable @Nullable String call
  • Constructor Details

  • 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 class CustomFunction
      Parameters:
      conversation - The conversation handler
      args - The arguments
      Returns:
      The result you want to tell the OpenAI assistant