From e7256b71273d871350815b1a98aa01138a0b76da Mon Sep 17 00:00:00 2001 From: Benjamin Pracht Date: Thu, 16 May 2024 15:25:29 -0700 Subject: [PATCH] Start/StopAgentJob, Job status --- protobufs/livekit_agent.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/protobufs/livekit_agent.proto b/protobufs/livekit_agent.proto index 9715e7bc..87433b77 100644 --- a/protobufs/livekit_agent.proto +++ b/protobufs/livekit_agent.proto @@ -21,6 +21,23 @@ option ruby_package = "LiveKit::Proto"; import "livekit_models.proto"; +service AgentService { + rpc StartAgentJob(StartAgentJobRequest) returns (Job); + rpc StopAgentJob(StopAgentJobRequest) returns (Job); +} + +message StartAgentJobRequest { + JobType type = 1; + Room room = 2; + optional ParticipantInfo participant = 3; + string namespace = 4; + map metadata = 5; +} + +message StopAgentJobRequest { + string id = 1; +} + message WorkerInfo { string id = 1; string namespace = 2; @@ -43,6 +60,8 @@ message Job { optional ParticipantInfo participant = 4; string namespace = 5; map metadata = 6; + JobStatus status = 7; + string error = 8; } // from Worker to Server