feat(providers): implement dedicated Cohere provider class with LangChain integration #3366

Open
opened 2026-04-05 14:39:01 +00:00 by freemo · 1 comment
Owner

Metadata

  • Branch: feat/v3.6.0/cohere-provider
  • Commit Message: feat(providers): implement dedicated Cohere provider class with LangChain integration
  • Milestone: v3.6.0
  • Parent Epic: #3365

Background

Issue #3135 identified that Cohere, Groq, and Together AI providers lack dedicated provider classes and are only handled via generic LangChain dynamic imports. This issue implements the dedicated Cohere provider class.

Expected Behavior

A dedicated CohereProvider class exists in cleveragents/providers/ that:

  • Implements the provider protocol/interface
  • Wraps the LangChain Cohere integration
  • Supports all Cohere-specific configuration options (model, temperature, etc.)
  • Is registered in the provider registry under the cohere/ namespace
  • Passes all relevant unit and integration tests

Acceptance Criteria

  • CohereProvider class implemented in cleveragents/providers/cohere.py
  • Provider registered under cohere/ namespace in provider registry
  • Actor config config.provider: cohere resolves to CohereProvider
  • BDD unit tests cover provider initialization and invocation
  • nox -e typecheck passes with no suppressions
  • Coverage >= 97%

Dependencies

  • Blocked by: (none)
  • Blocks: #3365

Subtasks

  • Create cleveragents/providers/cohere.py with CohereProvider class
  • Register CohereProvider in provider registry
  • Add BDD feature file for Cohere provider
  • Add step definitions for Cohere provider tests
  • Verify nox passes

Definition of Done

  • All subtasks completed
  • Tests written and passing
  • All nox stages pass
  • Coverage >= 97%

Automated by CleverAgents Bot
Supervisor: Unknown | Agent: ca-epic-planner

## Metadata - **Branch**: `feat/v3.6.0/cohere-provider` - **Commit Message**: `feat(providers): implement dedicated Cohere provider class with LangChain integration` - **Milestone**: v3.6.0 - **Parent Epic**: #3365 ## Background Issue #3135 identified that Cohere, Groq, and Together AI providers lack dedicated provider classes and are only handled via generic LangChain dynamic imports. This issue implements the dedicated Cohere provider class. ## Expected Behavior A dedicated `CohereProvider` class exists in `cleveragents/providers/` that: - Implements the provider protocol/interface - Wraps the LangChain Cohere integration - Supports all Cohere-specific configuration options (model, temperature, etc.) - Is registered in the provider registry under the `cohere/` namespace - Passes all relevant unit and integration tests ## Acceptance Criteria - [ ] `CohereProvider` class implemented in `cleveragents/providers/cohere.py` - [ ] Provider registered under `cohere/` namespace in provider registry - [ ] Actor config `config.provider: cohere` resolves to `CohereProvider` - [ ] BDD unit tests cover provider initialization and invocation - [ ] `nox -e typecheck` passes with no suppressions - [ ] Coverage >= 97% ## Dependencies - Blocked by: (none) - Blocks: #3365 ## Subtasks - [ ] Create `cleveragents/providers/cohere.py` with `CohereProvider` class - [ ] Register `CohereProvider` in provider registry - [ ] Add BDD feature file for Cohere provider - [ ] Add step definitions for Cohere provider tests - [ ] Verify `nox` passes ## Definition of Done - [ ] All subtasks completed - [ ] Tests written and passing - [ ] All nox stages pass - [ ] Coverage >= 97% --- **Automated by CleverAgents Bot** Supervisor: Unknown | Agent: ca-epic-planner
freemo added this to the v3.6.0 milestone 2026-04-05 14:39:44 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: High — Dedicated Cohere provider class is part of the v3.6.0 scope for additional LLM provider integrations.
  • Milestone: v3.6.0 (already set)
  • Story Points: 3 — M — Requires implementing a single provider class with LangChain integration, following the existing provider pattern. Estimated 4-8 hours.
  • MoSCoW: Should Have — Functional support exists via generic LangChain dynamic imports. A dedicated class improves reliability and error handling but is not strictly blocking.
  • Parent Epic: #3365

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: High — Dedicated Cohere provider class is part of the v3.6.0 scope for additional LLM provider integrations. - **Milestone**: v3.6.0 (already set) - **Story Points**: 3 — M — Requires implementing a single provider class with LangChain integration, following the existing provider pattern. Estimated 4-8 hours. - **MoSCoW**: Should Have — Functional support exists via generic LangChain dynamic imports. A dedicated class improves reliability and error handling but is not strictly blocking. - **Parent Epic**: #3365 --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#3366
No description provided.