Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BOT ISSUE] langchainrb gem not instrumented

未关闭
#148 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
ruby
领域
observability

调研方向

首先比较 lib/braintrust/contrib/*/integration.rb 下现有的集成,然后检查 Appraisals 和 braintrust.gemspec,了解依赖项和 appraisal 的约定。在缩小集成范围之前,查看 langchainrb 的 chat、completion、embedding、tool-calling、structured-output 和 assistant API。约定的 langchainrb 执行面已完成插桩,并且已通过仓库的集成和依赖项检查,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Summary

The langchainrb gem is the most widely adopted Ruby AI framework (~1.1M downloads, v0.19.5, May 2025) and is not instrumented by this SDK. It is the Ruby analog of Python's LangChain, providing chat completions, embeddings, tool calling, RAG, and assistant/agent patterns across multiple providers.

What is missing

No instrumentation exists for any langchainrb execution surface. Key APIs that should be instrumented:

Chat Completions
  • Langchain::LLM::*#chat(messages:, ...) — unified chat interface across all providers (OpenAI, Anthropic, Google Gemini, Ollama, AWS Bedrock, Azure OpenAI, Cohere, HuggingFace, Mistral, Replicate)
  • Langchain::LLM::*#complete(prompt:, ...) — text completion
Embeddings
  • Langchain::LLM::*#embed(text:, ...) — vector embeddings generation across providers
Tool / Function Calling
  • Tool definitions and automatic tool execution within chat flows
Structured Outputs
  • Langchain::OutputParsers::StructuredOutputParser — JSON schema-based structured extraction from LLM responses
Assistants / Agents
  • Langchain::Assistant — agent framework with tool execution, conversation management, and multi-turn interaction

Braintrust docs status

not_found — No mention of langchainrb as a Ruby integration anywhere in Braintrust documentation. The SDK integrations page at https://www.braintrust.dev/docs/integrations/sdk-integrations lists a general "LangChain" integration but it is not Ruby-specific and does not cover this gem.

Upstream sources

Local repo files inspected

  • lib/braintrust/contrib/*/integration.rb — only 4 integrations registered: OpenAI, RubyOpenAI, RubyLLM, Anthropic. No langchainrb integration.
  • lib/braintrust/contrib/ — no directory or files for langchainrb or langchain
  • Appraisals — no appraisal scenarios for langchainrb
  • braintrust.gemspec — no mention of langchainrb
  • Grep for langchain across lib/braintrust/ returns zero matches
主要语言
Ruby
星标
9
派生
10
平均合并
3 天 43 分钟
30 天内合并 PR
9

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

braintrustdata/braintrust-sdk-ruby 的其他 Issue

查看 braintrustdata/braintrust-sdk-ruby 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。