Uses of Class
dyntabs.ai.ConversationBuilder
Packages that use ConversationBuilder
-
Uses of ConversationBuilder in dyntabs.ai
Methods in dyntabs.ai that return ConversationBuilderModifier and TypeMethodDescriptionstatic ConversationBuilderEasyAI.chat()Starts building a newConversationfor simple chat.ConversationBuilder.withActivityContext(ActivityContext activityContext) Makes this conversation ambient-activity aware: before eachConversation.send(String)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).ConversationBuilder.withApiKey(String apiKey) Overrides the API key from configuration.ConversationBuilder.withBaseUrl(String baseUrl) Overrides the API base URL.ConversationBuilder.withChatModel(dev.langchain4j.model.chat.ChatModel model) Injects an externally created ChatModel.ConversationBuilder.withEventListener(EasyAIListener eventListener) Registers a listener that receives a liveEasyAIEventstream around eachConversation.send(String): a STARTED event, a RESULT event carrying the reply, and a FINISHED event (or an ERROR event on failure).ConversationBuilder.withMaxTokens(int maxTokens) Limits the maximum number of tokens in the AI response.ConversationBuilder.withMemory(int maxMessages) Enables conversation memory.Overrides the model name from configuration.ConversationBuilder.withProvider(String provider) Overrides the AI provider.ConversationBuilder.withSystemMessage(String systemMessage) Sets a system message that defines the AI's behavior and personality.ConversationBuilder.withTemperature(double temperature) Sets the temperature (creativity) of the AI responses.