Class Assistant

java.lang.Object
com.jackdaw.chatwithnpc.openaiapi.Assistant

public class Assistant extends Object
  • Constructor Details

    • Assistant

      public Assistant()
  • Method Details

    • createAssistant

      public static void createAssistant(@NotNull @NotNull NPCEntity npc) throws Exception
      Create an assistant for the NPC from the OpenAI API
      Parameters:
      npc - The NPC to create the assistant for
      Throws:
      Exception - If the assistant id is null
    • modifyAssistant

      public static void modifyAssistant(@NotNull @NotNull NPCEntity npc) throws Exception
      Modify the assistant for the NPC from the OpenAI API
      Parameters:
      npc - The NPC to modify the assistant for
      Throws:
      Exception - If the assistant id is null
    • assistantRequest

      @NotNull private static @NotNull String assistantRequest(@NotNull @NotNull NPCEntity npc, Assistant.Do what) throws Exception
      Throws:
      Exception