Skip to content

[bot] cohere-ruby gem not instrumented #162

@braintrust-bot

Description

@braintrust-bot

Summary

The cohere-ruby gem (~93K downloads, v1.0.2, April 2026) is the primary Ruby client for Cohere's API and is not instrumented by this SDK. Braintrust already documents Cohere as a supported AI provider with TypeScript and Python instrumentation, but there is no Ruby equivalent.

What is missing

No instrumentation exists for any cohere-ruby execution surface. Key APIs that should be instrumented:

Chat Completions

  • client.chat(model:, messages:, ...) — Conversational AI using Cohere's Command family of models. Supports streaming, tool use, and conversation history (via chat_history).

Text Generation

  • client.generate(prompt:, ...) — Text generation from a prompt. Supports model selection, max tokens, temperature, and stop sequences.

Embeddings

  • client.embed(model:, texts:, input_type:, ...) — Vector embeddings for text classification, semantic search, and clustering. Supports multiple embedding types (float, int8, uint8, binary).

Reranking

  • client.rerank(model:, query:, documents:, ...) — Document ranking by relevance to a query. Used in RAG pipelines to improve retrieval quality.

Braintrust docs status

supported — Braintrust documents Cohere as a supported AI provider at https://www.braintrust.dev/docs/integrations/ai-providers/cohere with TypeScript (cohere-ai v7.0.0+) and Python (cohere v5.0.0+) instrumentation. No Ruby SDK instrumentation is documented.

Upstream sources

Local repo files inspected

  • lib/braintrust/contrib/ — contains only openai/, ruby_openai/, ruby_llm/, anthropic/, and rails/ directories. No cohere directory.
  • lib/braintrust/contrib.rb — registers only 4 integrations: OpenAI, RubyOpenAI, RubyLLM, Anthropic. No Cohere integration.
  • Appraisals — no appraisal scenarios for cohere-ruby
  • braintrust.gemspec — no mention of cohere
  • Grep for cohere across lib/braintrust/ returns zero matches

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions