Skip to content

Commit d14dba6

Browse files
committed
update AgentSessionState
1 parent a6345ca commit d14dba6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

protobufs/livekit_agent.proto

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,19 +187,18 @@ message JobTermination {
187187
string job_id = 1;
188188
}
189189

190-
message AgentSessionStateDelta {
191-
// if base_version is empty, this is the delta from the initial state
192-
optional string base_version = 1;
193-
string new_version = 2;
194-
bytes changeset = 3;
190+
message AgentSessionState {
191+
uint64 version = 1;
192+
bytes snapshot = 2;
193+
bytes delta = 3;
195194
}
196195

197196
message TextMessageRequest {
198197
string message_id = 1;
199198
string session_id = 2;
200199
string agent_name = 3;
201200
string metadata = 4;
202-
repeated AgentSessionStateDelta session_state = 5;
201+
AgentSessionState session_state = 5;
203202
string text = 6;
204203
}
205204

@@ -214,6 +213,6 @@ message PushTextRequest {
214213
message TextMessageResponse {
215214
// Indicate the request is completed
216215
string message_id = 1;
217-
AgentSessionStateDelta session_state = 2;
216+
AgentSessionState session_state = 2;
218217
string error = 3;
219218
}

0 commit comments

Comments
 (0)