Skip to content

Commit 3d54e4d

Browse files
boks1971claude
andcommitted
agent: add what created a dispatch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 7576e40 commit 3d54e4d

3 files changed

Lines changed: 121 additions & 37 deletions

File tree

‎.changeset/agent-job-timing-state.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"@livekit/protocol": patch
44
---
55

6-
Add `Job.created_at`, `JobState.accepted_at` and `JobState.assigned_at`
6+
Add `Job.created_at`, `JobState.accepted_at`, `JobState.assigned_at` and `AgentDispatchState.trigger`

‎livekit/livekit_agent_dispatch.pb.go‎

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

‎protobufs/livekit_agent_dispatch.proto‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,17 @@ message AgentDispatchState {
9999
repeated Job jobs = 1;
100100
int64 created_at = 2;
101101
int64 deleted_at = 3;
102+
AgentDispatchTrigger trigger = 4;
103+
}
104+
105+
// what created the dispatch
106+
enum AgentDispatchTrigger {
107+
ADT_UNSPECIFIED = 0;
108+
// a participant joining created the room, and with it the dispatch
109+
ADT_JOIN = 1;
110+
// the CreateRoom API created the room, and with it the dispatch
111+
ADT_ROOM_API = 2;
112+
// the CreateDispatch API
113+
ADT_DISPATCH_API = 3;
102114
}
103115

0 commit comments

Comments
 (0)