Class AiServiceContext

java.lang.Object
dev.langchain4j.service.AiServiceContext

public class AiServiceContext extends Object
  • Field Details

    • aiServiceClass

      public final Class<?> aiServiceClass
    • chatModel

      public dev.langchain4j.model.chat.ChatLanguageModel chatModel
    • streamingChatModel

      public dev.langchain4j.model.chat.StreamingChatLanguageModel streamingChatModel
    • chatMemories

      public Map<Object,dev.langchain4j.memory.ChatMemory> chatMemories
    • chatMemoryProvider

      public ChatMemoryProvider chatMemoryProvider
    • moderationModel

      public dev.langchain4j.model.moderation.ModerationModel moderationModel
    • toolSpecifications

      public List<dev.langchain4j.agent.tool.ToolSpecification> toolSpecifications
    • toolExecutors

      public Map<String,ToolExecutor> toolExecutors
    • toolProvider

      public ToolProvider toolProvider
    • retrievalAugmentor

      public dev.langchain4j.rag.RetrievalAugmentor retrievalAugmentor
    • systemMessageProvider

      public Function<Object,Optional<String>> systemMessageProvider
  • Constructor Details

    • AiServiceContext

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

    • hasChatMemory

      public boolean hasChatMemory()
    • chatMemory

      public dev.langchain4j.memory.ChatMemory chatMemory(Object memoryId)