Class Context
java.lang.Object
dev.langchain4j.agentic.internal.Context
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Context.ContextSummarizercreateSummarizer(ChatModel chatModel) Creates a new stateless summarizer AI service bound to the givenChatModel.
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
createSummarizer
Creates a new stateless summarizer AI service bound to the givenChatModel. The service is not cached here: callers that build it once and share it across invocations (e.g.AgentBuilderandSupervisorAgentServiceImpl) own the caching strategy.- Throws:
IllegalConfigurationException- ifchatModelisnull
-