Skip to content

agent_simulation: add JobMetrics.Turn.text - #1874

Merged
u9g merged 1 commit into
jason/simulation-job-failure-reasonfrom
jason/simulation-turn-text
Oct 19, 2026
Merged

u9g merged 1 commit into
jason/simulation-job-failure-reasonfrom
jason/simulation-turn-text

Conversation

@u9g

@u9g u9g commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Adds text to SimulationRun.JobMetrics.Turn: the words of each turn, as the simulation's judges read them. That's the speaker's own words, or, when those are unknown, the words as the other side heard them. The agent's own words are unknown when it has no RemoteSession, e.g. over SIP.

Today a job reports one row per turn, with timings and scores, but not what was said. The transcript the judges scored only reaches the simulator's logs. So anyone reading a job through the API, such as lk agent simulate export or a CI check, can see that a turn was slow or interrupted but not what it said. They also can't check that the judged transcript has the right shape, for example one caller line per turn and each reply after the line it answers.

Stacked on #1868, which is stacked on #1867.

A job's transcript reached only the simulator's logs, so a client reading the job (lk agent simulate export, a CI check) could see each turn's timings and scores but not the words that were scored.
@changeset-bot

changeset-bot Bot commented Oct 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f97eec3

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 Patch
@livekit/protocol Patch

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

Base automatically changed from jason/simulation-job-call-facts to jason/simulation-job-failure-reason October 19, 2026 22:25
@u9g
u9g merged commit f97eec3 into jason/simulation-job-failure-reason Oct 19, 2026
3 checks passed
@u9g
u9g deleted the jason/simulation-turn-text branch October 19, 2026 22:25
@u9g

u9g commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

Combined into #1867, which carries this PR's commit. It shows as merged only because the commit landed on its base branch; nothing has reached main.

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