Skip to content

Add llm.rb integration (issue #140)#142

Open
Matt Perpick (clutchski) wants to merge 2 commits intomainfrom
issue-140
Open

Add llm.rb integration (issue #140)#142
Matt Perpick (clutchski) wants to merge 2 commits intomainfrom
issue-140

Conversation

@clutchski
Copy link
Copy Markdown
Contributor

Instruments LLM::Context#talk via module prepending to create Braintrust spans with input/output messages, token metrics, and provider metadata. Registered as :llm_rb, detects 'require "llm"' for auto-instrumentation.

Also adds VCR cassette guidelines (AGENTS.md + SKILL.md update) to prevent hand-crafted cassettes in future integrations.

Matt Perpick (clutchski) and others added 2 commits April 6, 2026 14:52
Instruments LLM::Context#talk via module prepending to create Braintrust
spans with input/output messages, token metrics, and provider metadata.
Registered as :llm_rb, detects 'require "llm"' for auto-instrumentation.

Also adds VCR cassette guidelines (AGENTS.md + SKILL.md update) to
prevent hand-crafted cassettes in future integrations.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- examples/contrib/llm_rb.rb: basic two-turn chat demonstrating
  Braintrust tracing with llm.rb
- SKILL.md: fix path conventions and add note to run examples
  to verify the permalink works

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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