} else if (ChatEventType.CONVERSATION_MESSAGE_DELTA.equals(eventType)) {
handleMessageDelta(event, emitter);
} else if (ChatEventType.CONVERSATION_AUDIO_DELTA.equals(eventType)) {
handleAudioDelta(event, emitter);
} else if (ChatEventType.CONVERSATION_CHAT_IN_PROGRESS.equals(eventType)) {
handleChatInProgress(event, emitter, param);
} else if (ChatEventType.CONVERSATION_MESSAGE_COMPLETED.equals(eventType)) {
handleMessageCompleted(event, emitter, param);
} else if (ChatEventType.CONVERSATION_CHAT_COMPLETED.equals(eventType)) {
handleChatCompleted(event, emitter, param);
} else if (ChatEventType.CONVERSATION_CHAT_FAILED.equals(eventType)) {
handleChatFailed(event, emitter, param);
} else if (ChatEventType.CONVERSATION_CHAT_REQUIRES_ACTION.equals(eventType)) {
param.setActiveConversationId(activeConversationId);
handleRequiresAction(event, emitter, param, application, zcAuth);
} else if (ChatEventType.ERROR.equals(eventType)) {
handleError(event, emitter, param);
} else if (ChatEventType.DONE.equals(eventType)) {
handleDone(event, emitter, param);
} else {
log.debug("Unhandled event type: {}", eventType.getValue());
}
使用对话流bot, 工作流里面使用的智能体唤醒插件。插件是调用后台接口数据的。 单独使用工作流程测试是显示调用了技能
if (ChatEventType.CONVERSATION_CHAT_CREATED.equals(eventType)) {
handleChatCreated(event, emitter, param);