Uses of Interface
dev.langchain4j.agentic.internal.Context.ContextSummarizer
Packages that use Context.ContextSummarizer
-
Uses of Context.ContextSummarizer in dev.langchain4j.agentic.internal
Methods in dev.langchain4j.agentic.internal that return Context.ContextSummarizerModifier and TypeMethodDescriptionstatic Context.ContextSummarizerContext.createStreamingSummarizer(StreamingChatModel streamingChatModel) Creates a new stateless summarizer that sends the summarization prompt to the givenStreamingChatModeland returns the text of its answer.static Context.ContextSummarizerContext.createSummarizer(ChatModel chatModel) Creates a new stateless summarizer that sends the summarization prompt to the givenChatModeland returns the text of its answer.static Context.ContextSummarizerContext.createSummarizer(ChatModel chatModel, Consumer<ChatResponse> responseConsumer) Creates a new stateless summarizer that sends the summarization prompt to the givenChatModel, passes the response of the model to the given consumer, for instance to report its token usage, and returns the text of its answer.Methods in dev.langchain4j.agentic.internal with parameters of type Context.ContextSummarizerModifier and TypeMethodDescriptionstatic Context.SummarizerContext.Summarizer.withSummarizer(AgenticScope agenticScope, Context.ContextSummarizer summarizer, String... agentNames) Creates a summarizer backed by a pre-builtContext.ContextSummarizer, typically one shared by the caller across agents or invocations using the same model.