Skip to content

Commit ef4e5bb

Browse files
authored
simulate: give the agent under test the defaults it has deployed (#937)
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 df2ef6d commit ef4e5bb

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
@@ -548,6 +548,13 @@ func startSimulationAgent(c *simulateConfig, forwardOutput io.Writer) (*AgentPro
548548
"LIVEKIT_URL=" + c.pc.URL,
549549
"LIVEKIT_API_KEY=" + c.pc.APIKey,
550550
"LIVEKIT_API_SECRET=" + c.pc.APISecret,
551+
// the agent under test is spawned locally, so the SDK reads it as
552+
// neither hosted nor dev and falls back to the local v1-mini turn
553+
// detector and VAD interruption. Deployed, the same agent gets cloud
554+
// EOT and adaptive interruption; simulating the weaker pair measures
555+
// turn-taking the user will never ship. This env var is what the SDK
556+
// gates both defaults on.
557+
"LIVEKIT_DEV_MODE=1",
551558
},
552559
ReadySignal: "registered worker",
553560
ForwardOutput: forwardOutput,

0 commit comments

Comments
 (0)