Class Context

java.lang.Object
dev.langchain4j.agentic.internal.Context

public class Context extends Object
  • Constructor Details

    • Context

      public Context()
  • Method Details

    • createSummarizer

      public static Context.ContextSummarizer createSummarizer(ChatModel chatModel)
      Creates a new stateless summarizer AI service bound to the given ChatModel. The service is not cached here: callers that build it once and share it across invocations (e.g. AgentBuilder and SupervisorAgentServiceImpl) own the caching strategy.
      Throws:
      IllegalConfigurationException - if chatModel is null