Skip to content

Commit a5e382f

Browse files
committed
feat(agents): support attributes in list/deploy/update cloud agent ops
1 parent c68246e commit a5e382f

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

.changeset/chilly-adults-tie.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"github.com/livekit/protocol": minor
3+
"@livekit/protocol": minor
4+
---
5+
6+
Support cloud agent attributes in CRUD operations

protobufs/livekit_cloud_agent.proto

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ message AgentInfo {
114114
repeated AgentDeployment agent_deployments = 4;
115115
repeated AgentSecret secrets = 5;
116116
google.protobuf.Timestamp deployed_at = 6;
117+
map<string, string> attributes = 7;
117118
}
118119

119120
message ListAgentsRequest {
@@ -147,13 +148,14 @@ message ListAgentVersionsResponse {
147148
}
148149

149150
message UpdateAgentRequest {
150-
string agent_id = 1 [(logger.name) = "agentID"];
151-
string agent_name = 2 [deprecated=true];
152-
int32 replicas = 3 [deprecated=true];
153-
int32 max_replicas = 4 [deprecated=true];
154-
string cpu_req = 5 [deprecated=true];
155-
repeated string regions = 6;
156-
repeated AgentSecret secrets = 7;
151+
string agent_id = 1 [(logger.name) = "agentID"];
152+
string agent_name = 2 [deprecated=true];
153+
int32 replicas = 3 [deprecated=true];
154+
int32 max_replicas = 4 [deprecated=true];
155+
string cpu_req = 5 [deprecated=true];
156+
repeated string regions = 6;
157+
repeated AgentSecret secrets = 7;
158+
map<string, string> attributes = 8;
157159
}
158160

159161
message UpdateAgentResponse {
@@ -171,13 +173,14 @@ message RestartAgentResponse {
171173
}
172174

173175
message DeployAgentRequest {
174-
string agent_id = 1 [(logger.name) = "agentID"];
175-
string agent_name = 2 [deprecated=true];
176-
repeated AgentSecret secrets = 3;
177-
int32 replicas = 4 [deprecated=true];
178-
int32 max_replicas = 5 [deprecated=true];
179-
string cpu_req = 6 [deprecated=true];
180-
string deployment = 7;
176+
string agent_id = 1 [(logger.name) = "agentID"];
177+
string agent_name = 2 [deprecated=true];
178+
repeated AgentSecret secrets = 3;
179+
int32 replicas = 4 [deprecated=true];
180+
int32 max_replicas = 5 [deprecated=true];
181+
string cpu_req = 6 [deprecated=true];
182+
string deployment = 7;
183+
map<string, string> attributes = 8;
181184
}
182185

183186
message DeployAgentResponse {

0 commit comments

Comments
 (0)