feat(llm): refactor LLMProvider abstraction to support pluggable backends #8618

Open
opened 2026-04-13 21:16:06 +00:00 by HAL9000 · 0 comments
Owner

Metadata

  • Commit message type: feat
  • Scope: llm
  • Branch name prefix: feat/v3.6.0-llm-provider-abstraction

Background and Context

As part of Epic #8505 (Advanced Context Strategies & LLM Provider Extensions), the LLM provider abstraction layer must be refactored to support multiple backends with a unified interface. This enables actors to be provider-agnostic.

This issue blocks Epic #8505.

Expected Behavior

  • LLMProvider protocol is defined with a unified interface
  • Provider selection is configurable at actor, plan, and global levels
  • Provider registry allows registration and lookup by name
  • Existing provider implementations are refactored to implement the protocol

Acceptance Criteria

  • LLMProvider protocol is defined with unified interface
  • Provider registry allows registration and lookup by name
  • Provider selection is configurable at actor/plan/global levels
  • Existing providers are refactored to implement the protocol
  • Unit tests achieve >= 97% coverage

Subtasks

  • Define LLMProvider protocol
  • Implement ProviderRegistry class
  • Implement provider configuration schema (actor/plan/global levels)
  • Refactor existing providers to implement the protocol
  • Write unit tests for registry and protocol

Definition of Done

  1. LLMProvider abstraction is refactored for multi-backend support
  2. Unit tests pass with >= 97% coverage
  3. Code reviewed and merged to main branch

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor

## Metadata - **Commit message type**: `feat` - **Scope**: `llm` - **Branch name prefix**: `feat/v3.6.0-llm-provider-abstraction` ## Background and Context As part of Epic #8505 (Advanced Context Strategies & LLM Provider Extensions), the LLM provider abstraction layer must be refactored to support multiple backends with a unified interface. This enables actors to be provider-agnostic. This issue blocks Epic #8505. ## Expected Behavior - `LLMProvider` protocol is defined with a unified interface - Provider selection is configurable at actor, plan, and global levels - Provider registry allows registration and lookup by name - Existing provider implementations are refactored to implement the protocol ## Acceptance Criteria - [ ] `LLMProvider` protocol is defined with unified interface - [ ] Provider registry allows registration and lookup by name - [ ] Provider selection is configurable at actor/plan/global levels - [ ] Existing providers are refactored to implement the protocol - [ ] Unit tests achieve >= 97% coverage ## Subtasks - [ ] Define `LLMProvider` protocol - [ ] Implement `ProviderRegistry` class - [ ] Implement provider configuration schema (actor/plan/global levels) - [ ] Refactor existing providers to implement the protocol - [ ] Write unit tests for registry and protocol ## Definition of Done 1. `LLMProvider` abstraction is refactored for multi-backend support 2. Unit tests pass with >= 97% coverage 3. Code reviewed and merged to main branch --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor
HAL9000 added this to the v3.6.0 milestone 2026-04-13 21:16:31 +00:00
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.

Dependencies

No dependencies set.

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