Uses of Class
com.vaadin.flow.component.ai.orchestrator.AIOrchestrator.Builder
Packages that use AIOrchestrator.Builder
-
Uses of AIOrchestrator.Builder in com.vaadin.flow.component.ai.orchestrator
Methods in com.vaadin.flow.component.ai.orchestrator that return AIOrchestrator.BuilderModifier and TypeMethodDescriptionstatic AIOrchestrator.BuilderAIOrchestrator.builder(LLMProvider provider, String systemPrompt) Creates a new builder for AIOrchestrator with a system prompt.AIOrchestrator.Builder.withAssistantName(String assistantName) Sets the display name for AI assistant messages in the message list.AIOrchestrator.Builder.withAttachmentClickListener(AttachmentClickListener listener) Sets a listener that is called when an attachment in the message list is clicked.AIOrchestrator.Builder.withController(AIController controller) Sets the controller that provides framework-agnostic tools and lifecycle hooks to the orchestrator.AIOrchestrator.Builder.withFileReceiver(AIFileReceiver fileReceiver) Sets the file receiver component for file uploads.AIOrchestrator.Builder.withFileReceiver(com.vaadin.flow.component.upload.Upload upload) Sets the file receiver component using a Flow Upload component.AIOrchestrator.Builder.withFileReceiver(com.vaadin.flow.component.upload.UploadManager uploadManager) Sets the file receiver component using a Flow UploadManager.AIOrchestrator.Builder.withHistory(List<ChatMessage> history, Map<String, List<AIAttachment>> attachmentsByMessageId) Sets the conversation history and associated attachments to restore when the orchestrator is built.Sets the input component.AIOrchestrator.Builder.withInput(com.vaadin.flow.component.messages.MessageInput messageInput) Sets the input component using a Flow MessageInput component.AIOrchestrator.Builder.withMessageList(AIMessageList messageList) Sets the message list component.AIOrchestrator.Builder.withMessageList(com.vaadin.flow.component.messages.MessageList messageList) Sets the message list component using a Flow MessageList component.AIOrchestrator.Builder.withRequestListener(RequestListener listener) Sets a listener that is called on every prompt, just before the LLM stream opens.AIOrchestrator.Builder.withResponseListener(ResponseListener listener) Sets a listener that is called once per turn when the assistant's stream has completed — successfully or with an error.Sets the objects containing vendor-specific tool-annotated methods that will be available to the LLM.AIOrchestrator.Builder.withUserName(String userName) Sets the display name for user messages in the message list.