From 1497ddc8b0f42615b8aad86b98106f70fe1c75a3 Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Sat, 21 Sep 2024 20:34:09 -0700 Subject: [PATCH] updated --- protobufs/livekit_models.proto | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/protobufs/livekit_models.proto b/protobufs/livekit_models.proto index 26cabe32..dd7b92a5 100644 --- a/protobufs/livekit_models.proto +++ b/protobufs/livekit_models.proto @@ -233,7 +233,7 @@ message DataPacket { Transcription transcription = 7; MetricsBatch metrics = 8; ChatMessage chat_message = 9; - RpcMessage rpc_message = 10; + RpcRequest rpc_request = 10; RpcAck rpc_ack = 11; RpcResponse rpc_response = 12; } @@ -305,10 +305,13 @@ message ChatMessage { bool generated = 6; // true if the chat message has been generated by an agent from a participant's audio transcription } -message RpcMessage { +message RpcRequest { string id = 1; - string name = 2; - string data = 3; + string method = 2; + string payload = 3; + uint32 response_timeout_ms = 4; + uint32 version = 5; + } message RpcAck { @@ -316,17 +319,10 @@ message RpcAck { } message RpcResponse { - string message_id = 1; // ID of the request message - string data = 2; - int32 error_code = 3; // Can be a value from ErrorCode enum or a custom value - string error_data = 4; - - enum ErrorCode { - NO_ERROR = 0; - - // codes 1-999 are available for user-defined errors - - // codes 1001+ are reserved for future use as LiveKit-defined errors + string message_id = 1; + oneof value { + string payload = 2; + string error = 3; } }