Class AiServiceStreamingEvent.FinalResponseEvent

java.lang.Object
dev.langchain4j.service.AiServiceStreamingEvent.AbstractEvent
dev.langchain4j.service.AiServiceStreamingEvent.FinalResponseEvent
All Implemented Interfaces:
AiServiceStreamingEvent
Enclosing interface:
AiServiceStreamingEvent

public static final class AiServiceStreamingEvent.FinalResponseEvent extends AiServiceStreamingEvent.AbstractEvent
The final ChatResponse of the interaction — the answer. Exactly one is emitted, last, right before the stream completes. Corresponds to TokenStream.onCompleteResponse(Consumer).
Since:
1.20.0