Skip to content

Commit

Permalink
工作流组件调用接口的出参更新
Browse files Browse the repository at this point in the history
  • Loading branch information
yinjiaqi authored and yinjiaqi committed Jan 22, 2025
1 parent b38dd18 commit 67d6f49
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 196 deletions.
12 changes: 4 additions & 8 deletions go/appbuilder/component_client_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,15 @@ type Message struct {
}

type ComponentRunResponse struct {
RequestID string `json:"request_id"`
Code string `json:"code"`
Message string `json:"message"`
Data ComponentRunResponseData `json:"data"`
}

type ComponentRunResponseData struct {
RequestID string `json:"request_id"`
Code string `json:"code"`
Message string `json:"message"`
ConversationID string `json:"conversation_id"`
MessageID string `json:"message_id"`
TraceID string `json:"trace_id"`
UserID string `json:"user_id"`
EndUserID string `json:"end_user_id"`
IsCompletion bool `json:"is_completion"`
Status string `json:"status"` // 新增的字段
Role string `json:"role"`
Content []Content `json:"content"`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public boolean hasNext() {
return iterator.hasNext();
}

public ComponentClientRunResponse.ComponentRunResponseData next() {
ComponentClientRunResponse response = iterator.next();
return response.getData();
public ComponentClientRunResponse next() {
return iterator.next();
}
}
Loading

0 comments on commit 67d6f49

Please sign in to comment.