We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a5e9b0 commit 759b00fCopy full SHA for 759b00f
1 file changed
README.md
@@ -433,12 +433,12 @@ agent.on(AgentEvents.Open, () => {
433
});
434
435
// Handle agent responses
436
-agent.on(AgentEvents.Speech, (speech) => {
437
- console.log("Agent is speaking:", speech);
+agent.on(AgentEvents.AgentStartedSpeaking, (data) => {
+ console.log("Agent started speaking:", data["total_latency"]);
438
439
440
-agent.on(AgentEvents.Transcript, (transcript) => {
441
- console.log("User said:", transcript);
+agent.on(AgentEvents.ConversationText, (message) => {
+ console.log(`${message.role} said: ${message.content}`);
442
443
444
agent.on(AgentEvents.Audio, (audio) => {
0 commit comments