Uses of Class
dyntabs.ai.AssistantBuilder
Packages that use AssistantBuilder
-
Uses of AssistantBuilder in dyntabs.ai
Methods in dyntabs.ai that return AssistantBuilderModifier and TypeMethodDescriptionstatic <T> AssistantBuilder<T> Starts building an AI Assistant proxy for the given interface.AssistantBuilder.withActivityContext(ActivityContext activityContext) Makes this assistant ambient-activity aware: before each call to any of the assistant's methods, the given context is re-rendered and folded into the system message, so the model already knows what the user has recently been doing in the UI (and can resolve "this"/"that" without being told).AssistantBuilder.withApiKey(String apiKey) AssistantBuilder.withChatModel(dev.langchain4j.model.chat.ChatModel model) AssistantBuilder.withMemory(int maxMessages) AssistantBuilder.withMilvus()Connects this assistant to a persistent Milvus collection configured entirely fromeasyai.properties(keyseasyai.milvus.*).AssistantBuilder.withMilvus(MilvusConfig config) Connects this assistant to a persistent Milvus collection using a fully builtMilvusConfig(for non-default dimension or credentials).AssistantBuilder.withMilvus(MilvusConfig config, int maxResults, double minScore) Connects this assistant to a persistent Milvus collection with explicit retrieval tuning.AssistantBuilder.withMilvus(String host, int port, String collectionName) Connects this assistant to a persistent Milvus collection for retrieval, using explicit connection settings.AssistantBuilder.withRAG(DocumentSource... sources) Enables RAG from in-memory document sources (byte arrays).Enables RAG (document-powered AI) with the given document sources.Enables RAG with full control over retrieval parameters.AssistantBuilder.withRAG(List<DocumentSource> sources, int maxResults, double minScore) Enables RAG from in-memory document sources with tuning parameters.AssistantBuilder.withSystemMessage(String systemMessage) Adds tool objects whose public methods the AI can call.