接口 ChatflowStreamCallback
- 所有超级接口:
BaseStreamCallback,ChatStreamCallback
工作流编排对话型应用流式回调接口
继承自 ChatStreamCallback,增加工作流相关回调方法
-
方法概要
修饰符和类型方法说明default void迭代器执行完成事件default void迭代器下一次执行事件default void迭代器开始执行事件default void循环执行完成事件default voidonLoopNext(LoopNextEvent event) 循环下一次执行事件default voidonLoopStarted(LoopStartedEvent event) 循环开始执行事件default voidonNodeFinished(NodeFinishedEvent event) 节点完成事件default voidonNodeStarted(NodeStartedEvent event) 节点开始事件default void工作流完成事件default void工作流开始事件从接口继承的方法 io.github.imfangs.dify.client.callback.BaseStreamCallback
onError, onException, onPing从接口继承的方法 io.github.imfangs.dify.client.callback.ChatStreamCallback
onAgentLog, onAgentMessage, onAgentThought, onMessage, onMessageEnd, onMessageFile, onMessageReplace, onTTSMessage, onTTSMessageEnd
-
方法详细资料
-
onWorkflowStarted
工作流开始事件- 参数:
event- 事件数据
-
onNodeStarted
节点开始事件- 参数:
event- 事件数据
-
onNodeFinished
节点完成事件- 参数:
event- 事件数据
-
onWorkflowFinished
工作流完成事件- 参数:
event- 事件数据
-
onIterationStarted
迭代器开始执行事件- 参数:
event- 事件数据
-
onIterationNext
迭代器下一次执行事件- 参数:
event- 事件数据
-
onIterationCompleted
迭代器执行完成事件- 参数:
event- 事件数据
-
onLoopStarted
循环开始执行事件- 参数:
event- 事件数据
-
onLoopNext
循环下一次执行事件- 参数:
event- 事件数据
-
onLoopCompleted
循环执行完成事件- 参数:
event- 事件数据
-