Repository navigation
agent simulate: read simulator flow nodes from scenarios.yaml - #1031
Draft
chenghao-mou wants to merge 2 commits into
Draft
chenghao-mou wants to merge 2 commits into
chenghao-mou wants to merge 2 commits into
Conversation
Read the top-level `steps` map and the per-scenario `start` and `max_duration` keys, and send them in the ScenarioGroup. Each step is decoded with protojson, so field names, enum names, durations, and unknown-key errors match the server's parser. Check only clear user errors locally: a scenario must set exactly one of `start` and `instructions`, and `start` must name a step or a built-in. The server validates the rest at CreateSimulationRun. Bump github.com/livekit/protocol to b440b893 for the new fields. Addresses AGT-3725
This was referenced Oct 12, 2026
Follows the protocol rename: scenarios.yaml takes a top-level `nodes` map, and errors say node. A node can no longer be a voicemail box; scenarios reach one through the built-in livekit/voicemail.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lk agent simulatereads simulator flows fromscenarios.yaml: a top-levelnodesmap, andstartandmax_durationon a scenario. They go to the server in theScenarioGroupadded by livekit/protocol#1856.node "menu": ....startandinstructions, andstartnames a node or a built-in (livekit/hangup,livekit/voicemail,livekit/unavailable). The server compiles and validates the rest atCreateSimulationRun.nodes,start, andmax_durationback, and adding scenario ids leavesnodesuntouched. Files without flows are unchanged.Warning
Depends on livekit/protocol#1856;
go.modpoints at its branch until it ships.Not in this PR: the public OpenAPI client in
pkg/public/oapi, which regenerates after the protocol change ships. Copying a flow scenario from a run in the TUI still yields a stub without its nodes.Addresses AGT-3725