Skip to content

Commit 946f4f4

Browse files
committed
add asyncapi
1 parent ed0cbbe commit 946f4f4

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Sources/ElevenLabs/Protocol/schemas/agent.asyncapi.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ channels:
5151
- $ref: "#/components/messages/TentativeUserTranscript"
5252
- $ref: "#/components/messages/AgentResponse"
5353
- $ref: "#/components/messages/AgentResponseCorrection"
54+
- $ref: "#/components/messages/AgentChatResponsePart"
5455
- $ref: "#/components/messages/Interruption"
5556
- $ref: "#/components/messages/ConversationMetadata"
5657
- $ref: "#/components/messages/ClientToolCallMessage"
@@ -195,6 +196,14 @@ components:
195196
payload:
196197
$ref: "#/components/schemas/AgentResponseCorrectionPayload"
197198

199+
AgentChatResponsePart:
200+
name: AgentChatResponsePartClientEvent
201+
title: Agent Chat Response Part
202+
summary: Streaming text chunk from agent (text-only mode)
203+
contentType: application/json
204+
payload:
205+
$ref: "#/components/schemas/AgentChatResponsePartPayload"
206+
198207
Interruption:
199208
name: InterruptionEvent
200209
title: Interruption
@@ -300,6 +309,7 @@ components:
300309
- audio
301310
- agent_response
302311
- agent_response_correction
312+
- agent_chat_response_part
303313
- interruption
304314
- user_transcript
305315
- tentative_user_transcript
@@ -643,6 +653,16 @@ components:
643653
agent_response_correction_event:
644654
$ref: "#/components/schemas/AgentResponseCorrectionData"
645655

656+
AgentChatResponsePartPayload:
657+
type: object
658+
required: [text_response_part, type]
659+
properties:
660+
type:
661+
type: string
662+
const: agent_chat_response_part
663+
text_response_part:
664+
$ref: "#/components/schemas/AgentChatResponsePartData"
665+
646666
InterruptionPayload:
647667
type: object
648668
required: [interruption_event, type]
@@ -779,6 +799,24 @@ components:
779799
event_id:
780800
type: integer
781801

802+
AgentChatResponsePartType:
803+
type: string
804+
enum:
805+
- start
806+
- delta
807+
- stop
808+
description: Type of streaming response chunk
809+
810+
AgentChatResponsePartData:
811+
type: object
812+
required: [text, type]
813+
properties:
814+
text:
815+
type: string
816+
description: Text chunk (empty for start/stop events)
817+
type:
818+
$ref: "#/components/schemas/AgentChatResponsePartType"
819+
782820
InterruptionData:
783821
type: object
784822
required: [event_id]

0 commit comments

Comments
 (0)