Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addUsage(long) - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Add one usage to the discord user with current time.
- addUsage(UUID) - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Add one usage to the minecraft player with current time.
- admin_roles() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
B
- blocked_roles() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- BOSSBAR - Enum constant in enum class dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ReplyingAnimation.TYPE
- bossbar_color() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ReplyingAnimation
- bossbar_duration() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ReplyingAnimation
- bot_name() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- bot_status() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- bot_token() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- bypass_roles() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
C
- channel_id() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- chat_listener() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- chat_max_history() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- ChatEnvironmentConfig - Interface in dev.bluetree242.serverassistantai.api.config.loader
-
This holds information about a specific environment for the assistant to exist.
- ChatModelContext - Record Class in dev.bluetree242.serverassistantai.api.registry.chatmodel
-
This provides information to
ChatModelProvider
in some methods, to help it with its functions. - ChatModelContext(OptionMap) - Constructor for record class dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelContext
-
Creates an instance of a
ChatModelContext
record class. - chatModelProvider() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredChatModel
-
Get the chat model provider attached to this wrapper.
- ChatModelProvider<T extends dev.langchain4j.model.chat.ChatLanguageModel> - Interface in dev.bluetree242.serverassistantai.api.registry.chatmodel
-
Represents a chat language model provider.
- ChatModelRegistry - Interface in dev.bluetree242.serverassistantai.api.registry.chatmodel
-
This is where you can register chat model providers.
- Config - Interface in dev.bluetree242.serverassistantai.api.config
-
This represents the configuration file for the plugin.
- Config.Discord - Interface in dev.bluetree242.serverassistantai.api.config
- Config.HelpfulInformation - Interface in dev.bluetree242.serverassistantai.api.config
- Config.HelpfulInformation.Environment - Interface in dev.bluetree242.serverassistantai.api.config
- Config.Limits - Interface in dev.bluetree242.serverassistantai.api.config
- Config.Minecraft - Interface in dev.bluetree242.serverassistantai.api.config
- Config.Minecraft.ChatListener - Interface in dev.bluetree242.serverassistantai.api.config
- Config.Minecraft.ReplyingAnimation - Interface in dev.bluetree242.serverassistantai.api.config
- Config.Minecraft.ReplyingAnimation.TYPE - Enum Class in dev.bluetree242.serverassistantai.api.config
- Config.Prompt - Interface in dev.bluetree242.serverassistantai.api.config
- Config.ResponseFiltering - Interface in dev.bluetree242.serverassistantai.api.config
- Config.Splitter - Interface in dev.bluetree242.serverassistantai.api.config
- ConfigLoader - Interface in dev.bluetree242.serverassistantai.api.config.loader
-
This class is responsible for loading configuration data into their respective objects.
- ConfigManager<C> - Class in dev.bluetree242.serverassistantai.api.config
-
Config manager used to manage configurations.
- ConfiguredChatModel<U extends dev.langchain4j.model.chat.ChatLanguageModel> - Record Class in dev.bluetree242.serverassistantai.api.config.configured
-
Represents a configured chat model.
- ConfiguredChatModel(ChatModelProvider<U>, OptionMap, String) - Constructor for record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredChatModel
-
Creates an instance of a
ConfiguredChatModel
record class. - ConfiguredDiscordMessage - Interface in dev.bluetree242.serverassistantai.api.config.configured
-
Represents a configured discord message.
- ConfiguredEmbeddingModel<U extends dev.langchain4j.model.embedding.EmbeddingModel> - Record Class in dev.bluetree242.serverassistantai.api.config.configured
-
Represents a configured embedding model.
- ConfiguredEmbeddingModel(EmbeddingModelProvider<U>, OptionMap, String) - Constructor for record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredEmbeddingModel
-
Creates an instance of a
ConfiguredEmbeddingModel
record class. - ConfiguredQuestionDetection<T extends QuestionDetector> - Record Class in dev.bluetree242.serverassistantai.api.config.configured
-
Represents a configured question detector.
- ConfiguredQuestionDetection(QuestionDetectorProvider<T>, OptionMap, String) - Constructor for record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredQuestionDetection
-
Creates an instance of a
ConfiguredQuestionDetection
record class. - create(Path, String, Class<C>, ValueSerialiser<?>...) - Static method in class dev.bluetree242.serverassistantai.api.config.ConfigManager
- CredentialsContext - Record Class in dev.bluetree242.serverassistantai.api.registry.credentials
-
This provides information to
CredentialsLoader
in some methods, to help it with its functions. - CredentialsContext(OptionMap, String) - Constructor for record class dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsContext
-
Creates an instance of a
CredentialsContext
record class. - CredentialsLoader<T> - Interface in dev.bluetree242.serverassistantai.api.registry.credentials
-
Loads credentials from configuration options.
- CredentialsRegistry - Interface in dev.bluetree242.serverassistantai.api.registry.credentials
-
This is where you can register credentials loaders.
D
- DatabaseManager - Interface in dev.bluetree242.serverassistantai.api.database
-
Represents the database manager.
- DatabaseManager.DiscordUsageRecord - Record Class in dev.bluetree242.serverassistantai.api.database
-
Represents a record holding a discord usage.
- DatabaseManager.MinecraftUsageRecord - Record Class in dev.bluetree242.serverassistantai.api.database
-
Represents a record holding a minecraft usage.
- default_toggle_value() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- default_toggle_value() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- detailed() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.HelpfulInformation.Environment
- dev.bluetree242.serverassistantai.api - package dev.bluetree242.serverassistantai.api
- dev.bluetree242.serverassistantai.api.config - package dev.bluetree242.serverassistantai.api.config
- dev.bluetree242.serverassistantai.api.config.configured - package dev.bluetree242.serverassistantai.api.config.configured
- dev.bluetree242.serverassistantai.api.config.loader - package dev.bluetree242.serverassistantai.api.config.loader
- dev.bluetree242.serverassistantai.api.config.option - package dev.bluetree242.serverassistantai.api.config.option
- dev.bluetree242.serverassistantai.api.database - package dev.bluetree242.serverassistantai.api.database
- dev.bluetree242.serverassistantai.api.events - package dev.bluetree242.serverassistantai.api.events
- dev.bluetree242.serverassistantai.api.exceptions - package dev.bluetree242.serverassistantai.api.exceptions
- dev.bluetree242.serverassistantai.api.history - package dev.bluetree242.serverassistantai.api.history
- dev.bluetree242.serverassistantai.api.jda - package dev.bluetree242.serverassistantai.api.jda
- dev.bluetree242.serverassistantai.api.registry.chatmodel - package dev.bluetree242.serverassistantai.api.registry.chatmodel
- dev.bluetree242.serverassistantai.api.registry.credentials - package dev.bluetree242.serverassistantai.api.registry.credentials
- dev.bluetree242.serverassistantai.api.registry.documentloader - package dev.bluetree242.serverassistantai.api.registry.documentloader
- dev.bluetree242.serverassistantai.api.registry.embedding - package dev.bluetree242.serverassistantai.api.registry.embedding
- dev.bluetree242.serverassistantai.api.registry.questiondetection - package dev.bluetree242.serverassistantai.api.registry.questiondetection
- discord() - Method in interface dev.bluetree242.serverassistantai.api.config.Config
- discord() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.HelpfulInformation
- DISCORD - Static variable in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage.MessageSource
-
Represents a discord message source.
- discord_chat_model() - Method in interface dev.bluetree242.serverassistantai.api.config.Config
- discord_prompt() - Method in interface dev.bluetree242.serverassistantai.api.config.Config
- DiscordUsageRecord(long, long) - Constructor for record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.DiscordUsageRecord
-
Creates an instance of a
DiscordUsageRecord
record class. - displayName() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredChatModel
-
This retrieves the display name using
ChatModelProvider.getDisplayName(ChatModelContext)
. - displayName() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredEmbeddingModel
-
This retrieves the display name using
EmbeddingModelProvider.getDisplayName(EmbeddingContext)
. - displayName() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredQuestionDetection
-
This retrieves the display name using
QuestionDetectorProvider.getDisplayName(QuestionDetectorContext)
. - DocumentLoader - Interface in dev.bluetree242.serverassistantai.api.registry.documentloader
-
Interface to load
Document
objects from a file. - DocumentLoaderRegistry - Interface in dev.bluetree242.serverassistantai.api.registry.documentloader
-
This is where you can register your own document loaders.
E
- embedding_model() - Method in interface dev.bluetree242.serverassistantai.api.config.Config
- EmbeddingContext - Record Class in dev.bluetree242.serverassistantai.api.registry.embedding
-
This provides information to
EmbeddingModelProvider
in some methods, to help it with its functions. - EmbeddingContext(OptionMap) - Constructor for record class dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingContext
-
Creates an instance of a
EmbeddingContext
record class. - embeddingModelProvider() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredEmbeddingModel
-
Get the embedding model provider attached to this wrapper.
- EmbeddingModelProvider<T extends dev.langchain4j.model.embedding.EmbeddingModel> - Interface in dev.bluetree242.serverassistantai.api.registry.embedding
-
Represents an embedding model provider.
- EmbeddingModelRegistry - Interface in dev.bluetree242.serverassistantai.api.registry.embedding
-
This is where you can register embedding model providers.
- enabled() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- enabled() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.HelpfulInformation.Environment
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredChatModel
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredEmbeddingModel
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredQuestionDetection
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.DiscordUsageRecord
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.MinecraftUsageRecord
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage.MessageSource
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetector.Question
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorContext
-
Indicates whether some other object is "equal to" this one.
- exclude() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.ResponseFiltering
- export() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredChatModel
-
Exports the configuration options using the attached options.
- export() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredEmbeddingModel
-
Exports the configuration options using the attached options.
- export() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredQuestionDetection
-
Exports the configuration options using the attached options.
- export(ChatModelContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelProvider
-
Export the options and saves them in the config.
- export(CredentialsContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsLoader
-
Export the options and saves them in the config.
- export(EmbeddingContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingModelProvider
-
Export the options and saves them in the config.
- export(QuestionDetectorContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorProvider
-
Export the options and saves them in the config.
F
- fillDefaults(OptionMap) - Method in interface dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelProvider
-
This fills the default values into the options before calling
ChatModelProvider.provide(ChatModelContext)
. - fillDefaults(OptionMap) - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsLoader
-
This fills the default values into the options before calling
CredentialsLoader.load(CredentialsContext)
. - fillDefaults(OptionMap) - Method in interface dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingModelProvider
-
This fills the default values into the options before calling
EmbeddingModelProvider.provide(EmbeddingContext)
. - fillDefaults(OptionMap) - Method in interface dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorProvider
-
This fills the default values into the options before calling
QuestionDetectorProvider.provide(QuestionDetectorContext)
. - friendlyName() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage.MessageSource
-
Returns the value of the
friendlyName
record component.
G
- get(Class<? extends CredentialsLoader<?>>) - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsRegistry
-
Get an unnamed loader by its type.
- get(String) - Method in interface dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelRegistry
-
Get a provider by its name.
- get(String) - Method in interface dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingModelRegistry
-
Get a provider by its name.
- get(String) - Method in interface dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorRegistry
-
Get a provider by its name.
- get(String) - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsRegistry
-
Get a loader by its name.
- get(String) - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Limits
- getAsType(String, Class<T>) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a value from the map and casts it to the specified type.
- getAsTypeOrDefault(String, Class<T>, Predicate<T>, T) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a value from the map and casts it to the specified type, or returns a default value if the predicate returns true.
- getBoolean(String) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a boolean value from the map.
- getBooleanList() - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionList
-
Retrieves a list of booleans from the list.
- getBooleanOrDefault(String, Predicate<Boolean>, Boolean) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a boolean value from the map, or returns a default value if the predicate returns true.
- getChatModel() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredChatModel
-
This retrieves the chat model from the chat model provider.
- getChatModel() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ChatEnvironmentConfig
-
Get the chat model extracted from
ChatEnvironmentConfig.getConfigModel()
. - getChatModelRegistry() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
Get the chat language model provider registry.
- getConfig() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ConfigLoader
-
Get the current configuration of the plugin.
- getConfigData() - Method in class dev.bluetree242.serverassistantai.api.config.ConfigManager
- getConfigModel() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ChatEnvironmentConfig
-
Get the current
ConfiguredChatModel
used for this environment. - getConfigured(String, Class<? extends CredentialsLoader<T>>) - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsRegistry
-
This loads the credentials from the credentials.yml, according to the name and type you provide in the parameters.
- getCredentialsLocation() - Method in exception dev.bluetree242.serverassistantai.api.exceptions.MissingCredentialsException
-
The file location that the credentials should've been.
- getCredentialsRegistry() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
Get the chat credentials loader registry.
- getCurrentlyHandlingDiscordCount() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
The number of questions being answered on discord currently.
- getCurrentlyHandlingMinecraftCount() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
The number of questions being answered in-game currently.
- getDatabaseManager() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
Get an instance of the database manager.
- getDefault() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Limits
- getDefaultOptions() - Method in interface dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelProvider
-
The default options for this chat language model.
- getDefaultOptions() - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsLoader
-
The default options for the credentials.
- getDefaultOptions() - Method in interface dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingModelProvider
-
The default options for this embedding model.
- getDefaultOptions() - Method in interface dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorProvider
-
The default options for this question detector.
- getDiscordConfig() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ConfigLoader
-
The discord chat config.
- getDiscordQuestionDetector() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ConfigLoader
-
The minecraft question detector in use.
- getDisplay() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage
-
This method is used to send the history to the AI chatbot.
- getDisplayName(ChatModelContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelProvider
-
The display name of this provider.
- getDisplayName(EmbeddingContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingModelProvider
-
The display name of this provider.
- getDisplayName(QuestionDetectorContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorProvider
-
The display name of this provider.
- getDocumentLoaderRegistry() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
Get the document loader registry.
- getDouble(String) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a double value from the map.
- getDoubleList() - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionList
-
Retrieves a list of doubles from the list.
- getDoubleOrDefault(String, Predicate<Double>, Double) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a double value from the map, or returns a default value if the predicate returns true.
- getEmbeddingModel() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredEmbeddingModel
-
This retrieves the embedding model from the embedding model provider.
- getEmbeddingModel() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ConfigLoader
-
The embedding model in use.
- getEmbeddingModelRegistry() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
Get the embedding model provider registry An embedding model is used to get relevant data from the document file, before sending a question.
- getEmbeddingStore() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ConfigLoader
-
The embedding store in use.
- getExecutorService() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
The executor service is used around the plugin to handle things async, or schedule tasks.
- getExpected() - Method in exception dev.bluetree242.serverassistantai.api.exceptions.IncorrectTypeException
-
Get the expected class type.
- getFloat(String) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a float value from the map.
- getFloatList() - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionList
-
Retrieves a list of floats from the list.
- getFloatOrDefault(String, Predicate<Float>, Float) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a float value from the map, or returns a default value if the predicate returns true.
- getFound() - Method in exception dev.bluetree242.serverassistantai.api.exceptions.IncorrectTypeException
-
Get the found class type.
- getGroupMap() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Limits
- getHandlerList() - Static method in class dev.bluetree242.serverassistantai.api.events.PostDiscordHandleEvent
- getHandlerList() - Static method in class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
- getHandlerList() - Static method in class dev.bluetree242.serverassistantai.api.events.PreDiscordHandleEvent
- getHandlerList() - Static method in class dev.bluetree242.serverassistantai.api.events.PreMinecraftHandleEvent
- getHandlers() - Method in class dev.bluetree242.serverassistantai.api.events.PostDiscordHandleEvent
- getHandlers() - Method in class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
- getHandlers() - Method in class dev.bluetree242.serverassistantai.api.events.PreDiscordHandleEvent
- getHandlers() - Method in class dev.bluetree242.serverassistantai.api.events.PreMinecraftHandleEvent
- getHistory() - Method in class dev.bluetree242.serverassistantai.api.events.PostDiscordHandleEvent
-
Get the history of the channel.
- getHistory() - Method in class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
-
Get the history of the chat.
- getHistory() - Method in class dev.bluetree242.serverassistantai.api.events.PreDiscordHandleEvent
-
Get the history of the channel.
- getHistory() - Method in class dev.bluetree242.serverassistantai.api.events.PreMinecraftHandleEvent
-
Get the history of the chat.
- getInformation() - Method in class dev.bluetree242.serverassistantai.api.events.PostDiscordHandleEvent
-
The information sent to the AI model for a response.
- getInformation() - Method in class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
-
The information sent to the AI model for a response.
- getInformationMessageFile() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ChatEnvironmentConfig
-
Get the
information-message.txt
file. - getInteger(String) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves an integer value from the map.
- getIntegerList() - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionList
-
Retrieves a list of integers from the list.
- getIntegerOrDefault(String, Predicate<Integer>, Integer) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves an integer value from the map, or returns a default value if the predicate returns true.
- getJda() - Method in interface dev.bluetree242.serverassistantai.api.jda.JDAManager
-
Get the instance of JDA currently in use.
- getJdaManager() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
Get the current jda manager.
- getLimit(Member) - Method in interface dev.bluetree242.serverassistantai.api.jda.JDAManager
-
Get the current usage limit for a discord member.
- getLimit(Player) - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
Get the current usage limit for a minecraft player.
- getList(Class<T>) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionList
-
Retrieves the list and casts its elements to the specified type.
- getList(String) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a list from the map and wraps it in an OptionList.
- getListOrDefault(String, Predicate<OptionList>, OptionList) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a list from the map and wraps it in an OptionList, or returns a default value if the predicate returns true.
- getLoader(String) - Method in interface dev.bluetree242.serverassistantai.api.registry.documentloader.DocumentLoaderRegistry
-
Get the document loader responsible for loading a file extension.
- getLong(String) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a long value from the map.
- getLongOrDefault(String, Predicate<Long>, Long) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a long value from the map, or returns a default value if the predicate returns true.
- getMap(String) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a nested map from the map and wraps it in an OptionMap.
- getMapList() - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionList
-
Retrieves a list of maps from the list.
- getMapOrDefault(String, Predicate<OptionMap>, OptionMap) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a nested map from the map and wraps it in an OptionMap, or returns a default value if the predicate returns true.
- getMessage() - Method in interface dev.bluetree242.serverassistantai.api.config.configured.ConfiguredDiscordMessage
-
Get the message builder exactly as it was configured.
- getMessage() - Method in class dev.bluetree242.serverassistantai.api.events.PostDiscordHandleEvent
-
The message the user sent.
- getMessage() - Method in class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
-
The message the player sent.
- getMessage() - Method in class dev.bluetree242.serverassistantai.api.events.PreDiscordHandleEvent
-
The message the user sent.
- getMessage() - Method in class dev.bluetree242.serverassistantai.api.events.PreMinecraftHandleEvent
-
The message the player sent.
- getMessage() - Method in exception dev.bluetree242.serverassistantai.api.exceptions.IncorrectTypeException
- getMessage() - Method in exception dev.bluetree242.serverassistantai.api.exceptions.MissingCredentialsException
-
This is the exception's message, By default, this is what it looks like:
Missing {missing}.
- getMessage(Function<String, String>) - Method in interface dev.bluetree242.serverassistantai.api.config.configured.ConfiguredDiscordMessage
-
Get the message builder while allowing you to map strings into other strings.
- getMinecraftConfig() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ConfigLoader
-
The minecraft chat config.
- getMinecraftQuestionDetector() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ConfigLoader
-
The minecraft question detector in use.
- getMissing() - Method in exception dev.bluetree242.serverassistantai.api.exceptions.MissingCredentialsException
-
Getter for the missing credentials.
- getOptions() - Method in interface dev.bluetree242.serverassistantai.api.config.configured.ConfiguredDiscordMessage
-
The
OptionMap
that represents the discord message fromConfiguredDiscordMessage.getOriginal()
. - getOrDefault(String, Predicate<Object>, Object) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a value from the map or returns a default value if the predicate returns true.
- getOriginal() - Method in interface dev.bluetree242.serverassistantai.api.config.configured.ConfiguredDiscordMessage
-
The original object in its simplest form.
- getPath() - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Get the path of this map in the source.
- getPath() - Method in exception dev.bluetree242.serverassistantai.api.exceptions.IncorrectTypeException
-
Get the path where the type mismatch occurred.
- getPlayer() - Method in class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
-
The player who triggered this event.
- getPlayer() - Method in class dev.bluetree242.serverassistantai.api.events.PreMinecraftHandleEvent
-
The player who triggered this event.
- getPromptHeaderFile() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ChatEnvironmentConfig
-
Get the
prompt-header.txt
file. - getQuestionDetector() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredQuestionDetection
-
This retrieves the question detector from the question detector provider.
- getQuestionDetectorRegistry() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
Get the question detector provider registry.
- getQuestionMessageFile() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ChatEnvironmentConfig
-
Get the
question-message.txt
file. - getRegisteredLoaders() - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsRegistry
-
Returns the options of all registered loaders.
- getRegisteredLoaders() - Method in interface dev.bluetree242.serverassistantai.api.registry.documentloader.DocumentLoaderRegistry
-
Get the map of registered document loaders.
- getRegisteredProviders() - Method in interface dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelRegistry
-
Returns the options of all registered providers.
- getRegisteredProviders() - Method in interface dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingModelRegistry
-
Returns a options of all registered providers.
- getRegisteredProviders() - Method in interface dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorRegistry
-
Returns the options of all registered providers.
- getReplyMessage() - Method in class dev.bluetree242.serverassistantai.api.events.PostDiscordHandleEvent
-
The message that the bot sent as a reply to user's question.
- getRequester() - Method in class dev.bluetree242.serverassistantai.api.events.PostDiscordHandleEvent
-
Get the user who requested to answer this question.
- getRequester() - Method in class dev.bluetree242.serverassistantai.api.events.PreDiscordHandleEvent
-
Get the user who requested to answer this question.
- getResponse() - Method in class dev.bluetree242.serverassistantai.api.events.PostDiscordHandleEvent
-
The exact response from the AI model.
- getResponse() - Method in class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
-
The exact response from the AI model.
- getResponseText() - Method in class dev.bluetree242.serverassistantai.api.events.PostDiscordHandleEvent
-
The exact text that was replied to the user's question.
- getResponseText() - Method in class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
-
The exact text that was replied to the player's question.
- getSource() - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Get the source of this map.
- getSource() - Method in exception dev.bluetree242.serverassistantai.api.exceptions.IncorrectTypeException
-
Get the source which contained the value whose type mismatched.
- getString(String) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a string value from the map.
- getStringList() - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionList
-
Retrieves a list of strings from the list.
- getStringOrDefault(String, Predicate<String>, String) - Method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Retrieves a string value from the map, or returns a default value if the predicate returns true.
- getTodayUsages(long) - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Get the usages of a user today.
- getTodayUsages(UUID) - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Get the usages of a player today.
- getTodayUsagesDiscord() - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Get the usages on Discord today.
- getTodayUsagesMinecraft() - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Get the usages in Minecraft today.
- getToggleStatus(long) - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Get the toggle status for automatically answering user's questions in chat.
- getToggleStatus(UUID) - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Get the toggle status for automatically answering player's questions in chat.
- getUnnamedLoaders() - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsRegistry
-
Returns a map of all unnamed loaders with their class types as keys.
- global_limit() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- global_limit() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
H
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredChatModel
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredEmbeddingModel
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredQuestionDetection
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.DiscordUsageRecord
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.MinecraftUsageRecord
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage.MessageSource
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetector.Question
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorContext
-
Returns a hash code value for this object.
- helpful_information() - Method in interface dev.bluetree242.serverassistantai.api.config.Config
- HistoryMessage<T> - Record Class in dev.bluetree242.serverassistantai.api.history
-
Represents a history chat message, from any source.
- HistoryMessage(String, String, Instant, HistoryMessage.MessageSource<T>, T) - Constructor for record class dev.bluetree242.serverassistantai.api.history.HistoryMessage
-
Creates an instance of a
HistoryMessage
record class. - HistoryMessage.MessageSource<T> - Record Class in dev.bluetree242.serverassistantai.api.history
-
Represents the source of a history message.
I
- ignore_cancelled() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ChatListener
- ignore_keyword() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- ignore_keyword() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- ignore_question() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- ignore_question() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- IncorrectTypeException - Exception in dev.bluetree242.serverassistantai.api.exceptions
-
This error is thrown when the expected type is different from the found type.
- IncorrectTypeException(Class<?>, Class<?>) - Constructor for exception dev.bluetree242.serverassistantai.api.exceptions.IncorrectTypeException
-
Constructs a new IncorrectTypeException with the expected and found types.
- IncorrectTypeException(Class<?>, Class<?>, String, String) - Constructor for exception dev.bluetree242.serverassistantai.api.exceptions.IncorrectTypeException
-
Constructs a new IncorrectTypeException with the expected and found types, path, and source.
- isCancelled() - Method in class dev.bluetree242.serverassistantai.api.events.PreDiscordHandleEvent
- isCancelled() - Method in class dev.bluetree242.serverassistantai.api.events.PreMinecraftHandleEvent
- isEnabled() - Method in interface dev.bluetree242.serverassistantai.api.jda.JDAManager
-
Check if discord features are enabled.
- isEnabled() - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
Whether ServerAssistantAI is enabled or not.
- isForced() - Method in class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
-
Whether handling this question was forced.
- isForced() - Method in class dev.bluetree242.serverassistantai.api.events.PreMinecraftHandleEvent
-
Whether handling this question was forced.
- isJsonMode() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ChatEnvironmentConfig
-
Check whether json mode is enabled for this chat environment.
- isLoaded() - Method in interface dev.bluetree242.serverassistantai.api.jda.JDAManager
-
Check whether this manager hasn't loaded yet.
- isLoadingConfig() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ConfigLoader
-
This checks whether the plugin is loading config or not.
- isMinecraft() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ChatEnvironmentConfig
-
Check whether this instance holds config for minecraft.
- isPrivately() - Method in class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
-
Whether this question was private.
- isPrivately() - Method in class dev.bluetree242.serverassistantai.api.events.PreMinecraftHandleEvent
-
Whether this question was private.
- isQuestion(QuestionDetector.Question) - Method in interface dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetector
-
Check whether a chat message is a question or not.
- isReady() - Method in interface dev.bluetree242.serverassistantai.api.config.loader.ConfigLoader
-
This checks whether the plugin is ready to handle and answer questions.
J
- JDAManager - Interface in dev.bluetree242.serverassistantai.api.jda
-
This is responsible for connecting to discord.
- joinPath(String, String) - Static method in class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Creates a string that joins a key with the associated key of its parent.
- json_mode() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- json_mode() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
L
- limits() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- limits() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- load(CredentialsContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsLoader
-
Convert the configuration options into the credentials object.
- load(File) - Method in interface dev.bluetree242.serverassistantai.api.registry.documentloader.DocumentLoader
-
Loads a set of
Document
objects from the given file.
M
- max_history() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- max_history() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- max_history_characters() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- max_history_characters() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- max_overlap() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Splitter
- max_results() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Prompt
- max_segment() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Splitter
- maximum_characters() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- maximum_characters() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- message() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage
-
Returns the value of the
message
record component. - message() - Method in record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetector.Question
-
Returns the associated message.
- messages_channel() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- messages_channel() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- MessageSource(String) - Constructor for record class dev.bluetree242.serverassistantai.api.history.HistoryMessage.MessageSource
-
Creates an instance of a
MessageSource
record class. - min_score() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Prompt
- minecraft() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.HelpfulInformation
- minecraft() - Method in interface dev.bluetree242.serverassistantai.api.config.Config
- MINECRAFT - Static variable in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage.MessageSource
-
Represents a minecraft message source.
- minecraft_chat_model() - Method in interface dev.bluetree242.serverassistantai.api.config.Config
- minecraft_prompt() - Method in interface dev.bluetree242.serverassistantai.api.config.Config
- MinecraftUsageRecord(UUID, long) - Constructor for record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.MinecraftUsageRecord
-
Creates an instance of a
MinecraftUsageRecord
record class. - minimum_words() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- minimum_words() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- MissingCredentialsException - Exception in dev.bluetree242.serverassistantai.api.exceptions
-
Represents missing credentials.
- MissingCredentialsException(String) - Constructor for exception dev.bluetree242.serverassistantai.api.exceptions.MissingCredentialsException
-
Initialize a new exception.
N
- name() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredChatModel
-
The name of the provider in the registry
- name() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredEmbeddingModel
-
The name of the provider in the registry
- name() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredQuestionDetection
-
The name of the provider in the registry
- name() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage
-
Returns the value of the
name
record component.
O
- OptionList - Class in dev.bluetree242.serverassistantai.api.config.option
-
A class representing a list with various types of values, extending ArrayList.
- OptionList() - Constructor for class dev.bluetree242.serverassistantai.api.config.option.OptionList
-
Constructs an empty OptionList.
- OptionList(List<Object>) - Constructor for class dev.bluetree242.serverassistantai.api.config.option.OptionList
-
Constructs an OptionList from the given original list.
- OptionMap - Class in dev.bluetree242.serverassistantai.api.config.option
-
A class representing a map with string keys and various types of values, extending HashMap.
- OptionMap(Map<String, Object>) - Constructor for class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Constructs an OptionMap from the given original map.
- OptionMap(Map<String, Object>, String, String) - Constructor for class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Constructs an OptionMap from the given original map.
- OptionMap(String, String) - Constructor for class dev.bluetree242.serverassistantai.api.config.option.OptionMap
-
Constructs an empty OptionMap.
- options() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredChatModel
-
Get the options attached to this wrapper.
- options() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredEmbeddingModel
-
Get the options attached to this wrapper.
- options() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredQuestionDetection
-
Get the options attached to this wrapper.
- options() - Method in record class dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelContext
-
The options in the config that user configured.
- options() - Method in record class dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsContext
-
The options in the config that user configured.
- options() - Method in record class dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingContext
-
The options in the config that user configured.
- options() - Method in record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorContext
-
The options in the config that user configured.
- original() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage
-
Returns the value of the
original
record component.
P
- playerUUID() - Method in record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.MinecraftUsageRecord
-
Returns the value of the
playerUUID
record component. - PostDiscordHandleEvent - Class in dev.bluetree242.serverassistantai.api.events
-
Fired after the bot has finished handling the discord question.
- PostDiscordHandleEvent(Message, List<HistoryMessage<?>>, Message, Response<AiMessage>, String, String, User) - Constructor for class dev.bluetree242.serverassistantai.api.events.PostDiscordHandleEvent
- PostMinecraftHandleEvent - Class in dev.bluetree242.serverassistantai.api.events
- PostMinecraftHandleEvent(Player, String, List<HistoryMessage<?>>, boolean, boolean, Response<AiMessage>, String, String) - Constructor for class dev.bluetree242.serverassistantai.api.events.PostMinecraftHandleEvent
- PreDiscordHandleEvent - Class in dev.bluetree242.serverassistantai.api.events
-
Fired after a
MessageReceivedEvent
should be handled by the bot. - PreDiscordHandleEvent(Message, List<HistoryMessage<?>>, User) - Constructor for class dev.bluetree242.serverassistantai.api.events.PreDiscordHandleEvent
- PreMinecraftHandleEvent - Class in dev.bluetree242.serverassistantai.api.events
-
Fired when the player asks an in-game question.
- PreMinecraftHandleEvent(Player, String, List<HistoryMessage<?>>, boolean, boolean) - Constructor for class dev.bluetree242.serverassistantai.api.events.PreMinecraftHandleEvent
- priority() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ChatListener
- provide(ChatModelContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelProvider
-
Convert the configuration into the chat model.
- provide(EmbeddingContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingModelProvider
-
Convert the configuration options into the embedding model.
- provide(QuestionDetectorContext) - Method in interface dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorProvider
-
Convert the configuration options into the question detector.
Q
- Question(String, Object, Object) - Constructor for record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetector.Question
-
Creates an instance of a
Question
record class. - question_detection() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- question_detection() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- question_detection_channels() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- question_received_sound() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- QuestionDetector - Interface in dev.bluetree242.serverassistantai.api.registry.questiondetection
-
Represents a question detector.
- QuestionDetector.Question - Record Class in dev.bluetree242.serverassistantai.api.registry.questiondetection
- QuestionDetectorContext - Record Class in dev.bluetree242.serverassistantai.api.registry.questiondetection
-
This provides information to
QuestionDetectorProvider
in some methods, to help it with its functions. - QuestionDetectorContext(OptionMap) - Constructor for record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorContext
-
Creates an instance of a
QuestionDetectorContext
record class. - questionDetectorProvider() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredQuestionDetection
-
Get the question detector provider attached to this wrapper.
- QuestionDetectorProvider<T extends QuestionDetector> - Interface in dev.bluetree242.serverassistantai.api.registry.questiondetection
-
Represents a question detector provider.
- QuestionDetectorRegistry - Interface in dev.bluetree242.serverassistantai.api.registry.questiondetection
-
This is where you can register question detector providers.
R
- register(DocumentLoader, String...) - Method in interface dev.bluetree242.serverassistantai.api.registry.documentloader.DocumentLoaderRegistry
-
Registers a document loader with supported extensions.
- register(DocumentLoader, Set<String>) - Method in interface dev.bluetree242.serverassistantai.api.registry.documentloader.DocumentLoaderRegistry
-
Registers a document loader with supported extensions.
- register(String, ChatModelProvider<?>) - Method in interface dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelRegistry
-
Register a chat model provider to the registry.
- register(String, EmbeddingModelProvider<?>) - Method in interface dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingModelRegistry
-
Register an embedding model provider to the registry.
- register(String, QuestionDetectorProvider<?>) - Method in interface dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorRegistry
-
Register a question detector provider to the registry.
- register(String, CredentialsLoader<?>) - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsRegistry
-
Register a chat model loader to the registry.
- reloadConfig() - Method in class dev.bluetree242.serverassistantai.api.config.ConfigManager
- reply_format() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- reply_format() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- replying_status() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- requestedName() - Method in record class dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsContext
-
The name of the credentials in the credentials.yml file, as requested using
CredentialsRegistry.getConfigured(String, Class)
. - resetUsage(long) - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Reset the usage count for the discord user.
- resetUsage(UUID) - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Reset the usage count for the minecraft player.
- respond_to_pings() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- response_filtering() - Method in interface dev.bluetree242.serverassistantai.api.config.Config
- response_sound() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
S
- send_replies_only_to_sender() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- sender() - Method in record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetector.Question
-
Returns the sender of the question.
- ServerAssistantAIAPI - Interface in dev.bluetree242.serverassistantai.api
-
This is where you can interact with the ServerAssistantAI API.
If you need to get an instance of this, you can use the following: - setCancelled(boolean) - Method in class dev.bluetree242.serverassistantai.api.events.PreDiscordHandleEvent
-
Change the cancellation status of this event.
- setCancelled(boolean) - Method in class dev.bluetree242.serverassistantai.api.events.PreMinecraftHandleEvent
-
Change the cancellation status of this event.
- setToggleStatus(long, Boolean) - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Set the toggle status for automatically answering user's questions in chat.
- setToggleStatus(UUID, Boolean) - Method in interface dev.bluetree242.serverassistantai.api.database.DatabaseManager
-
Set the toggle status for automatically answering player's questions in chat.
- skip_keyword() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- skip_keyword_roles() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- source() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage
-
Returns the value of the
source
record component. - splitter() - Method in interface dev.bluetree242.serverassistantai.api.config.Config
- stop() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.ResponseFiltering
- SUBTITLE - Enum constant in enum class dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ReplyingAnimation.TYPE
T
- text() - Method in record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetector.Question
-
Returns the question text.
- timestamp() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage
-
Returns the value of the
timestamp
record component. - TITLE - Enum constant in enum class dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ReplyingAnimation.TYPE
- toString() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredChatModel
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredEmbeddingModel
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.config.configured.ConfiguredQuestionDetection
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.DiscordUsageRecord
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.MinecraftUsageRecord
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage.MessageSource
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.history.HistoryMessage
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelContext
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsContext
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingContext
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetector.Question
-
Returns a string representation of this record class.
- toString() - Method in record class dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorContext
-
Returns a string representation of this record class.
- type() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ReplyingAnimation
U
- unregister(DocumentLoader) - Method in interface dev.bluetree242.serverassistantai.api.registry.documentloader.DocumentLoaderRegistry
-
Unregister a document loader.
- unregister(Class<? extends CredentialsLoader<?>>) - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsRegistry
-
Unregister an unnamed loader by its name.
- unregister(String) - Method in interface dev.bluetree242.serverassistantai.api.registry.chatmodel.ChatModelRegistry
-
Unregister a chat model provider by its name.
- unregister(String) - Method in interface dev.bluetree242.serverassistantai.api.registry.embedding.EmbeddingModelRegistry
-
Unregister an embedding model provider by its name.
- unregister(String) - Method in interface dev.bluetree242.serverassistantai.api.registry.questiondetection.QuestionDetectorRegistry
-
Unregister a question detector provider by its name.
- unregister(String) - Method in interface dev.bluetree242.serverassistantai.api.registry.credentials.CredentialsRegistry
-
Unregister a loader by its name.
- usageTime() - Method in record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.DiscordUsageRecord
-
Returns the value of the
usageTime
record component. - usageTime() - Method in record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.MinecraftUsageRecord
-
Returns the value of the
usageTime
record component. - use_paper_event() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ChatListener
- UserFriendlyException - Exception in dev.bluetree242.serverassistantai.api.exceptions
-
Represents a user-friendly exception.
- UserFriendlyException() - Constructor for exception dev.bluetree242.serverassistantai.api.exceptions.UserFriendlyException
- UserFriendlyException(String) - Constructor for exception dev.bluetree242.serverassistantai.api.exceptions.UserFriendlyException
- UserFriendlyException(String, Throwable) - Constructor for exception dev.bluetree242.serverassistantai.api.exceptions.UserFriendlyException
- UserFriendlyException(Throwable) - Constructor for exception dev.bluetree242.serverassistantai.api.exceptions.UserFriendlyException
- userID() - Method in record class dev.bluetree242.serverassistantai.api.database.DatabaseManager.DiscordUsageRecord
-
Returns the value of the
userID
record component.
V
- valueOf(String) - Static method in enum class dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ReplyingAnimation.TYPE
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.bluetree242.serverassistantai.api.config.Config.Minecraft.ReplyingAnimation.TYPE
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- waitForPlugin(Plugin) - Method in interface dev.bluetree242.serverassistantai.api.ServerAssistantAIAPI
-
Deprecated, for removal: This API element is subject to removal in a future version.
- webhook_url() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Discord
- webhook_url() - Method in interface dev.bluetree242.serverassistantai.api.config.Config.Minecraft
- write() - Method in class dev.bluetree242.serverassistantai.api.config.ConfigManager
-
Writes the config data into the file.
All Classes and Interfaces|All Packages|Serialized Form
Plugin.onLoad()
.