Skip to content

Commit

Permalink
🐛 Send proper payload for stream-end payload
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-brabant committed Oct 14, 2023
1 parent 40032c3 commit 4a30709
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sdks/node-sdk/src/agent-message-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ export class AgentMessageStream {
end() {
this.isEnded = true;
this.realtime.emit('stream-chat-message-end', {
data: {
conversationId: this.conversationId,
messageId: this.messageId,
}
conversationId: this.conversationId,
messageId: this.messageId,
agentId: this.agentId,
})
}
}

0 comments on commit 4a30709

Please sign in to comment.