Skip to content

Commit

Permalink
Agents protocol feedback (#750)
Browse files Browse the repository at this point in the history
This includes some feedback on the agents protocol:

- Rename JobDescription to AgentDispatch
- Remove participant_identity entry in the dispatch
- Deprecate namespace
- Add an agent_name field to specify what agent workers a job should be dispatched to

This also allows setting a room configuration in the token.
  • Loading branch information
biglittlebigben authored Jul 6, 2024
1 parent b272353 commit 8c1eef4
Show file tree
Hide file tree
Showing 14 changed files with 1,091 additions and 1,033 deletions.
12 changes: 12 additions & 0 deletions .changeset/mighty-steaks-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"github.com/livekit/protocol": patch
---

Integrate feedback on the agents protocol:

- Rename JobDescription to AgentDispatch
- Remove participant_identity entry in the dispatch
- Deprecate namespace
- Add an agent_name field to specify what agent workers a job should be dispatched to

Also allow setting a room configuration in the token.
2 changes: 2 additions & 0 deletions auth/grants.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ type VideoGrant struct {
RoomAdmin bool `json:"roomAdmin,omitempty"`
RoomJoin bool `json:"roomJoin,omitempty"`
Room string `json:"room,omitempty"`
// Name of the room configuration to apply to the room if created
RoomConfiguration string `json:"room_configuration,omitempty"`

// permissions within a room, if none of the permissions are set explicitly
// it will be granted with all publish and subscribe permissions
Expand Down
Loading

0 comments on commit 8c1eef4

Please sign in to comment.