Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
bcherry committed Sep 22, 2024
1 parent 938af7d commit 1497ddc
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions protobufs/livekit_models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -305,28 +305,24 @@ 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 {
string message_id = 1;
}

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;
}
}

Expand Down

0 comments on commit 1497ddc

Please sign in to comment.