Uses of Record Class
com.vaadin.flow.component.ai.common.AiAttachment
Packages that use AiAttachment
Package
Description
-
Uses of AiAttachment in com.vaadin.flow.component.ai.orchestrator
Methods in com.vaadin.flow.component.ai.orchestrator that return types with arguments of type AiAttachmentModifier and TypeMethodDescriptionRequestInterceptor.RequestInterceptEvent.getAttachments()Gets the attachments as they currently stand — the submitted ones untilRequestInterceptor.RequestInterceptEvent.setAttachments(List)replaces them.RequestListener.RequestEvent.getAttachments()Gets the attachments included with the request.Method parameters in com.vaadin.flow.component.ai.orchestrator with type arguments of type AiAttachmentModifier and TypeMethodDescriptionvoidAiOrchestrator.prompt(String userMessage, List<AiAttachment> attachments) Sends a prompt with caller-supplied attachments.voidRequestInterceptor.RequestInterceptEvent.setAttachments(List<AiAttachment> attachments) Replaces the attachments sent to the LLM.AiOrchestrator.Reconnector.withAttachments(Map<String, List<AiAttachment>> attachmentsByMessageId) Sets the file attachments to restore on the new provider's conversation memory.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.Constructor parameters in com.vaadin.flow.component.ai.orchestrator with type arguments of type AiAttachmentModifierConstructorDescriptionRequestEvent(String userMessage, String messageId, List<AiAttachment> attachments) Creates a request event.RequestInterceptEvent(String userMessage, List<AiAttachment> attachments) Creates a new event. -
Uses of AiAttachment in com.vaadin.flow.component.ai.provider
Methods in com.vaadin.flow.component.ai.provider that return types with arguments of type AiAttachmentModifier and TypeMethodDescriptionLlmProvider.LlmRequest.attachments()Gets the list of file attachments to include with the request.Method parameters in com.vaadin.flow.component.ai.provider with type arguments of type AiAttachmentModifier and TypeMethodDescriptionvoidLangChain4jLlmProvider.setHistory(List<ChatMessage> history, Map<String, List<AiAttachment>> attachmentsByMessageId) default voidLlmProvider.setHistory(List<ChatMessage> history, Map<String, List<AiAttachment>> attachmentsByMessageId) Restores the provider's conversation memory from a list of chat messages with their associated attachments.voidSpringAiLlmProvider.setHistory(List<ChatMessage> history, Map<String, List<AiAttachment>> attachmentsByMessageId) Restores the provider's conversation memory from a list of chat messages with their associated attachments. -
Uses of AiAttachment in com.vaadin.flow.component.ai.ui
Methods in com.vaadin.flow.component.ai.ui that return types with arguments of type AiAttachmentModifier and TypeMethodDescriptionAiFileReceiver.takeAttachments()Returns all accumulated attachments and clears the internal state.Method parameters in com.vaadin.flow.component.ai.ui with type arguments of type AiAttachmentModifier and TypeMethodDescriptionAiMessageList.addMessage(String text, String userName, List<AiAttachment> attachments) Creates a new message with the given parameters and attachments.