Class AiChat.LlmRequest

java.lang.Object
io.jmix.aichat.component.chat.AiChat.LlmRequest
All Implemented Interfaces:
com.vaadin.flow.component.ai.provider.LLMProvider.LLMRequest, Serializable
Enclosing class:
AiChat<T extends AiChatMessage>

protected static class AiChat.LlmRequest extends Object implements com.vaadin.flow.component.ai.provider.LLMProvider.LLMRequest
See Also:
  • Field Details

    • userMessage

      protected String userMessage
    • systemPrompt

      protected @Nullable String systemPrompt
    • attachments

      protected List<com.vaadin.flow.component.ai.common.AIAttachment> attachments
  • Constructor Details

    • LlmRequest

      protected LlmRequest(String userMessage, @Nullable String systemPrompt, List<com.vaadin.flow.component.ai.common.AIAttachment> attachments)
  • Method Details

    • userMessage

      public String userMessage()
      Specified by:
      userMessage in interface com.vaadin.flow.component.ai.provider.LLMProvider.LLMRequest
    • attachments

      public List<com.vaadin.flow.component.ai.common.AIAttachment> attachments()
      Specified by:
      attachments in interface com.vaadin.flow.component.ai.provider.LLMProvider.LLMRequest
    • systemPrompt

      public @Nullable String systemPrompt()
      Specified by:
      systemPrompt in interface com.vaadin.flow.component.ai.provider.LLMProvider.LLMRequest
    • tools

      public Object[] tools()
      Specified by:
      tools in interface com.vaadin.flow.component.ai.provider.LLMProvider.LLMRequest