Package org.codelibs.fess.llm
Interface LlmStreamCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface for receiving streaming chat responses from LLM.
-
Method Summary
-
Method Details
-
onChunk
Called for each chunk of the streaming response.- Parameters:
chunk- the text chunk from the LLM responsedone- true if this is the final chunk
-
onError
Called when an error occurs during streaming.- Parameters:
error- the error that occurred
-