Skip to content

feat(livekit): add agents integration#407

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-feat-livekit-agents-integration
May 14, 2026
Merged

feat(livekit): add agents integration#407
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-feat-livekit-agents-integration

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) commented May 8, 2026

resolves https://linear.app/braintrustdata/issue/BT-5048

Add LiveKit Agents instrumentation, e2e VCR coverage, and nox/CI wiring for the livekit-agents matrix.

Also preserve OpenAI async streaming speech responses when tracing raw response calls.

import braintrust

braintrust.init_logger(project="your-project")
braintrust.auto_instrument()

from livekit.agents import Agent, AgentSession
from livekit.plugins import openai, silero

# create llm / stt / tts / vad / AgentSession after auto_instrument()
image

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) force-pushed the abhi-feat-livekit-agents-integration branch 3 times, most recently from 07f7495 to 949324f Compare May 12, 2026 15:26
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) marked this pull request as ready for review May 12, 2026 16:28
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) force-pushed the abhi-feat-livekit-agents-integration branch 2 times, most recently from 450f948 to ba3504b Compare May 12, 2026 16:39
@AbhiPrasad
Copy link
Copy Markdown
Member Author

included w/ pre-release pip install -i https://test.pypi.org/simple/ braintrust==0.19.0rc77

@lforst
Copy link
Copy Markdown
Member

wrt the screenshot in the pr descr: I think it is no bueno if we do two nested llm spans. That will double count tokens I believe. I would maybe make llm_requetst_run have type task.

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) force-pushed the abhi-feat-livekit-agents-integration branch 5 times, most recently from 6ae5a65 to 072ed9f Compare May 13, 2026 19:28
@AbhiPrasad
Copy link
Copy Markdown
Member Author

released another pre-release with latest changes pip install -i https://test.pypi.org/simple/ braintrust==0.20.0rc80

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) force-pushed the abhi-feat-livekit-agents-integration branch from 072ed9f to 5d375ff Compare May 14, 2026 15:31
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) force-pushed the abhi-feat-livekit-agents-integration branch from 5d375ff to 664095b Compare May 14, 2026 15:59
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) enabled auto-merge (squash) May 14, 2026 16:00
Add LiveKit Agents instrumentation, e2e VCR coverage, and nox/CI wiring for the livekit-agents matrix.

Also preserve OpenAI async streaming speech responses when tracing raw response calls.
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) force-pushed the abhi-feat-livekit-agents-integration branch from 664095b to 733df2b Compare May 14, 2026 16:49
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) merged commit bae90de into main May 14, 2026
82 checks passed
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the abhi-feat-livekit-agents-integration branch May 14, 2026 17:01
Abhijeet Prasad (AbhiPrasad) added a commit that referenced this pull request May 14, 2026
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.

2 participants