fi.evolver.ai.spring.AssistantContentSubscriber Maven / Gradle / Ivy
package fi.evolver.ai.spring;
import fi.evolver.ai.spring.provider.openai.OpenAiAssistantResponse.AssistantContent;
public interface AssistantContentSubscriber {
/**
* Handle an incremental piece of the content.
*
* @param content The content tokens to handle.
*/
void onContent(AssistantContent content);
/**
* Called when the event stream has completed.
*
* @param status The end status of the stream.
*/
default void onComplete(String status) {
}
/**
* Called on error.
*
* @param throwable The throwable detailing the issue.
*/
default void onError(Throwable throwable) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy