Uses of Class
com.jackdaw.chatwithnpc.conversation.ConversationHandler
Packages that use ConversationHandler
Package
Description
-
Uses of ConversationHandler in com.jackdaw.chatwithnpc.conversation
Fields in com.jackdaw.chatwithnpc.conversation with type parameters of type ConversationHandlerModifier and TypeFieldDescriptionstatic final ConcurrentHashMap<UUID,ConversationHandler> ConversationManager.conversationMapMethods in com.jackdaw.chatwithnpc.conversation that return ConversationHandlerModifier and TypeMethodDescriptionstatic ConversationHandlerConversationManager.getConversation(UUID uuid) Get the conversation with a specific UUIDstatic @Nullable ConversationHandlerConversationManager.getConversation(net.minecraft.entity.player.PlayerEntity player) Get the closest conversation around a playerMethods in com.jackdaw.chatwithnpc.conversation that return types with arguments of type ConversationHandlerModifier and TypeMethodDescriptionstatic List<ConversationHandler>ConversationManager.getConversations(net.minecraft.entity.player.PlayerEntity player) Get all conversations within a certain range of a player -
Uses of ConversationHandler in com.jackdaw.chatwithnpc.openaiapi
Methods in com.jackdaw.chatwithnpc.openaiapi with parameters of type ConversationHandlerModifier and TypeMethodDescriptionvoidRun.callFunctionsAndReply(ConversationHandler conversation) Call the functions and reply the messagestatic voidThreads.createThread(@NotNull ConversationHandler conversationHandler) Create a new thread and set the thread id to the npcstatic @NotNull Run.RunResultRun.run(@NotNull ConversationHandler conversation) Run the assistant for the NPC from the OpenAI API, and it will return the result. -
Uses of ConversationHandler in com.jackdaw.chatwithnpc.openaiapi.function
Methods in com.jackdaw.chatwithnpc.openaiapi.function with parameters of type ConversationHandlerModifier and TypeMethodDescriptionFunctionManager.callFunction(@NotNull ConversationHandler conversation, @NotNull String name, @NotNull Map<String, Object> args) Call a function by its name.CustomFunction.execute(@NotNull ConversationHandler conversation, @NotNull Map<String, Object> args) Execute the function.