Uses of Interface
dev.langchain4j.service.AiServiceStreamingEvent
Packages that use AiServiceStreamingEvent
-
Uses of AiServiceStreamingEvent in dev.langchain4j.service
Classes in dev.langchain4j.service that implement AiServiceStreamingEventModifier and TypeClassDescriptionstatic classBase class holding theInvocationContextcommon to every event.static final classSignals that a tool has finished executing, carrying its request and result.static final classSignals that a tool is about to be executed.static final classA fully assembled tool call requested by the model (before it is executed).static final classThe finalChatResponseof the interaction — the answer.static final classAChatResponseof an intermediate (tool-calling) round — i.e. not the final answer.static final classA chunk of the model's textual response, as it streams.static final classA chunk of the model's thinking/reasoning, as it streams.static final classA chunk of a tool call's arguments, as they stream.static final classA provider-specific raw event, relayed as-is from the model's reactive stream.static final classThe content retrieved by RAG for this interaction, emitted once before the first response chunk.static final classSignals that a successfully-executed tool was compensated (rolled back) — for example because another tool in the same round failed.Classes in dev.langchain4j.service that implement interfaces with type arguments of type AiServiceStreamingEventModifier and TypeClassDescriptionclassA cold, non-blocking reactive stream for an AI Service method that returns aFlow.PublisherofAiServiceStreamingEvents.Method parameters in dev.langchain4j.service with type arguments of type AiServiceStreamingEventModifier and TypeMethodDescriptionvoidAiServiceStreamingEventPublisher.subscribe(Flow.Subscriber<? super AiServiceStreamingEvent> subscriber) static Flow.Publisher<String> AiServiceStreamingEventPublisher.toTextPublisher(Flow.Publisher<AiServiceStreamingEvent> events, boolean hasOutputGuardrails, int bufferSize) Maps a richAiServiceStreamingEventstream to a text-onlyStringstream.