Class QuarkusAiServiceContext

java.lang.Object
dev.langchain4j.service.AiServiceContext
io.quarkiverse.langchain4j.runtime.aiservice.QuarkusAiServiceContext

public class QuarkusAiServiceContext extends dev.langchain4j.service.AiServiceContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class dev.langchain4j.service.AiServiceContext

    aiServiceClass, chatMemories, chatMemoryProvider, chatModel, moderationModel, retrievalAugmentor, streamingChatModel, toolExecutors, toolSpecifications
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    QuarkusAiServiceContext(Class<?> aiServiceClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This is called by the close method of AiServices registered with RegisterAiService when the bean's scope is closed
    void
    This is called by the remove(Object... ids) method of AiServices when a user manually requests removal of chat memories via ChatMemoryRemover

    Methods inherited from class dev.langchain4j.service.AiServiceContext

    chatMemory, hasChatMemory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • QuarkusAiServiceContext

      public QuarkusAiServiceContext()
    • QuarkusAiServiceContext

      public QuarkusAiServiceContext(Class<?> aiServiceClass)
  • Method Details

    • close

      public void close()
      This is called by the close method of AiServices registered with RegisterAiService when the bean's scope is closed
    • removeChatMemoryIds

      public void removeChatMemoryIds(Object... ids)
      This is called by the remove(Object... ids) method of AiServices when a user manually requests removal of chat memories via ChatMemoryRemover