Class Assistant
java.lang.Object
com.jackdaw.chatwithnpc.openaiapi.Assistant
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static @NotNull String
assistantRequest
(@NotNull NPCEntity npc, Assistant.Do what) static void
createAssistant
(@NotNull NPCEntity npc) Create an assistant for the NPC from the OpenAI APIstatic void
modifyAssistant
(@NotNull NPCEntity npc) Modify the assistant for the NPC from the OpenAI API
-
Constructor Details
-
Assistant
public Assistant()
-
-
Method Details
-
createAssistant
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
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
-