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.conversationMap
Methods in com.jackdaw.chatwithnpc.conversation that return ConversationHandlerModifier and TypeMethodDescriptionstatic ConversationHandler
ConversationManager.getConversation
(UUID uuid) Get the conversation with a specific UUIDstatic @Nullable ConversationHandler
ConversationManager.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
Fields in com.jackdaw.chatwithnpc.openaiapi declared as ConversationHandlerModifier and TypeFieldDescriptionprivate final @Nullable ConversationHandler
Run.RunResult.conversation
Methods in com.jackdaw.chatwithnpc.openaiapi with parameters of type ConversationHandlerModifier and TypeMethodDescriptionvoid
Run.callFunctionsAndReply
(ConversationHandler conversation) Call the functions and reply the messagestatic void
Threads.createThread
(@NotNull ConversationHandler conversationHandler) Create a new thread and set the thread id to the npcprivate void
Run.replyMessage
(@NotNull ConversationHandler conversation) static @NotNull Run.RunResult
Run.run
(@NotNull ConversationHandler conversation) Run the assistant for the NPC from the OpenAI API, and it will return the result.Constructors in com.jackdaw.chatwithnpc.openaiapi with parameters of type ConversationHandlerModifierConstructorDescription(package private)
RunResult
(@Nullable ConversationHandler conversation, @Nullable Run run) -
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.FunctionManager.NoCallableFunction.execute
(@NotNull ConversationHandler conversation, @NotNull Map<String, Object> args) QueryGroupFunction.execute
(@NotNull ConversationHandler conversation, @NotNull Map<String, Object> args)