Skip to content

Commit a63809d

Browse files
add AgentSessionStateDelta for state sync (#1393)
* add AgentSessionStateDelta for state sync * generated protobuf * update AgentSessionState * generated protobuf --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 44536b2 commit a63809d

File tree

2 files changed

+123
-50
lines changed

2 files changed

+123
-50
lines changed

livekit/livekit_agent.pb.go

Lines changed: 115 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protobufs/livekit_agent.proto

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

190+
message AgentSessionState {
191+
uint64 version = 1;
192+
bytes snapshot = 2;
193+
bytes delta = 3;
194+
}
195+
190196
message TextMessageRequest {
191197
string message_id = 1;
192198
string session_id = 2;
193199
string agent_name = 3;
194200
string metadata = 4;
195-
bytes session_data = 5;
201+
AgentSessionState session_state = 5;
196202
string text = 6;
197203
}
198204

@@ -207,6 +213,6 @@ message PushTextRequest {
207213
message TextMessageResponse {
208214
// Indicate the request is completed
209215
string message_id = 1;
210-
bytes session_data = 2;
216+
AgentSessionState session_state = 2;
211217
string error = 3;
212218
}

0 commit comments

Comments
 (0)