Skip to content

Commit fca3a0e

Browse files
committed
simulate: give the agent under test the defaults it has deployed
A locally spawned agent is neither hosted nor dev, so the SDK falls back to the local v1-mini turn detector and VAD interruption. Deployed, the same agent gets cloud EOT and adaptive interruption - so a simulation measured turn-taking the user will never ship: mid-readout commits on a spoken date, and every 'mm-hmm' taken as a turn. The SDK gates both defaults on this one variable.
1 parent 41c44cb commit fca3a0e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cmd/lk/simulate.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,13 @@ func startSimulationAgent(c *simulateConfig, forwardOutput io.Writer) (*AgentPro
514514
"LIVEKIT_URL=" + c.pc.URL,
515515
"LIVEKIT_API_KEY=" + c.pc.APIKey,
516516
"LIVEKIT_API_SECRET=" + c.pc.APISecret,
517+
// the agent under test is spawned locally, so the SDK reads it as
518+
// neither hosted nor dev and falls back to the local v1-mini turn
519+
// detector and VAD interruption. Deployed, the same agent gets cloud
520+
// EOT and adaptive interruption; simulating the weaker pair measures
521+
// turn-taking the user will never ship. This env var is what the SDK
522+
// gates both defaults on.
523+
"LIVEKIT_DEV_MODE=1",
517524
},
518525
ReadySignal: "registered worker",
519526
ForwardOutput: forwardOutput,

0 commit comments

Comments
 (0)