Skip to content

agent simulation: add dispatch_agent_name to SimulationRun.Create.Request - #1793

Open
u9g wants to merge 1 commit into
mainfrom
jason/sim-dispatch-agent-name
Open

agent simulation: add dispatch_agent_name to SimulationRun.Create.Request#1793
u9g wants to merge 1 commit into
mainfrom
jason/sim-dispatch-agent-name

Conversation

@u9g

@u9g u9g commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Why

Simulation runs are stored and filtered by agent_name (list and counts requests, the dashboard's agent column). Today the CLI sends a throwaway simulation-<random> dispatch name in that field when it spawns the agent locally, so every run has a unique name and filtering by agent groups nothing. The random name is required: a locally spawned worker must not collide with the deployed agent's dispatch name.

What

  • agent_name on SimulationRun.Create.Request is now the agent under test, as named in the project's livekit.toml. It is stable across runs, so the existing filters and dashboard grouping become meaningful with no changes to the list or counts requests.
  • New optional string dispatch_agent_name = 14: the explicit-dispatch name the simulator sends jobs to. Unset dispatches to agent_name, so existing callers are unchanged.

Downstream: livekit/agents-private#446 (dispatch on the new field), livekit/livekit-cli#972 (write [agent] name to livekit.toml and send both names), livekit/web#6131 (agent filter on the runs list).

…uest

agent_name becomes the agent under test as named in livekit.toml, stable
across runs so list/counts filters and the dashboard group by it.
dispatch_agent_name, when set, is the explicit-dispatch name the simulator
sends jobs to; unset dispatches to agent_name, so existing callers are
unchanged.
@changeset-bot

changeset-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4c114a8

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

This PR includes changesets to release 2 packages
Name Type
github.com/livekit/protocol Minor
@livekit/protocol Minor

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

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.

1 participant