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(Upload upload) Sets the file receiver component using a Flow Upload component.AiOrchestrator.Builder.withFileReceiver(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.AiOrchestrator.Builder.withI18n(AiOrchestratorI18n i18n) Sets the texts the orchestrator shows in the message list on its own, such as the message that replaces the assistant's answer when a turn fails.Sets the input component.AiOrchestrator.Builder.withInput(MessageInput messageInput) Sets the input component using a Flow MessageInput component.AiOrchestrator.Builder.withMessageList(AiMessageList messageList) Sets the message list component.AiOrchestrator.Builder.withMessageList(MessageList messageList) Sets the message list component using a Flow MessageList component.AiOrchestrator.Builder.withMetadata(SerializableSupplier<String> contextSupplier) Sets the supplier of free-form session context the LLM sees on every turn.AiOrchestrator.Builder.withRequestInterceptor(RequestInterceptor requestInterceptor) Sets the interceptor that is called with the user's message text and attachments before the orchestrator acts on them — before the message appears in the message list, before controller and request listener hooks, and before the LLM request is built.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.Deprecated.AiOrchestrator.Builder.withUserName(String userName) Sets the display name for user messages in the message list.
ChatClientthat you pass toSpringAiLlmProvider(ChatClient), or in the customizer ofLangChain4jLlmProvider.