Skip to content

Agents protocol feedback#750

Merged
biglittlebigben merged 13 commits intomainfrom
benjamin/agents2
Jul 6, 2024
Merged

Agents protocol feedback#750
biglittlebigben merged 13 commits intomainfrom
benjamin/agents2

Conversation

@biglittlebigben
Copy link
Copy Markdown
Contributor

@biglittlebigben biglittlebigben commented Jul 2, 2024

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.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jul 2, 2024

🦋 Changeset detected

Latest commit: 21e4566

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "github.com/livekit/protocol" specified in the `fixed` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

Copy link
Copy Markdown
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg! just one nit

Comment thread protobufs/livekit_agent.proto Outdated
rpc CreateAgentJobDefinition(CreateAgentJobDefinitionRequest) returns (JobDefinition);
rpc DeleteAgentJobDefinition(DeleteAgentJobDefinitionRequest) returns (JobDefinition);
rpc ListAgentJobDefinitions(ListAgentJobDefinitionsRequesst) returns (ListAgentJobDefinitionsResponse);
rpc CreateAgentDispatch(CreateAgentDispatchRequest) returns (AgentDispatch);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm liking Dispatch! i think it's more straight forward to understand.

nit: should we drop the Agent from the method name? i.e.

Suggested change
rpc CreateAgentDispatch(CreateAgentDispatchRequest) returns (AgentDispatch);
rpc CreateDispatch(AgentCreateDispatchRequest) returns (AgentDispatch);

Copy link
Copy Markdown
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@biglittlebigben biglittlebigben merged commit 8c1eef4 into main Jul 6, 2024
@biglittlebigben biglittlebigben deleted the benjamin/agents2 branch July 6, 2024 01:53
@github-actions github-actions bot mentioned this pull request Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants