coze-dev / coze-dev/coze-java

CONVERSATION_CHAT_REQUIRES_ACTION 这个事件要如何触发,目前是不支持嘛

Open
#153 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
214
Forks
97
PR merge metrics
No merged PRs in 30d

Description

使用对话流bot, 工作流里面使用的智能体唤醒插件。插件是调用后台接口数据的。 单独使用工作流程测试是显示调用了技能

Image

Image

if (ChatEventType.CONVERSATION_CHAT_CREATED.equals(eventType)) {
handleChatCreated(event, emitter, param);

} 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());
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Java event-dispatch snippet in the issue and trace the CONVERSATION_CHAT_REQUIRES_ACTION branch through handleRequiresAction. Reproduce the conversation-flow bot case using the agent wake-up plugin, then compare it with the standalone workflow test that reports skill invocation. Done means establishing whether this event is emitted and documenting the supported trigger behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.