feat(llm): vendor-neutral LLM provider surface + plugin hook - #425
Draft
haileyok wants to merge 1 commit into
Draft
feat(llm): vendor-neutral LLM provider surface + plugin hook#425haileyok wants to merge 1 commit into
haileyok wants to merge 1 commit into
Conversation
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…pic example Port Leon's lib/llm provider surface (message/tool/response types, BaseLLMProvider, ToolRegistry, run_tool_loop) into osprey_worker. Add register_llm_provider hookspec (firstresult) and bootstrap_llm_provider (returns None on provider absence). Add an Anthropic example provider in example_plugins, registered via hookimpl; the anthropic SDK dependency is confined to example_plugins (not core). Tests (37 passing under run-tests.sh): provider surface, tool registry/loop, plugin discovery/absence, and Anthropic request/response mapping. Implements osprey-ask-ai AC1.1-AC1.6.
haileyok
force-pushed
the
hailey/ask-ai-1-provider
branch
from
July 14, 2026 22:13
3917584 to
f2f422c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Part 1/5 of the reusable Ask AI stack (base:
main). Ports a vendor-neutral LLM provider surface intoosprey_worker/lib/llm(message/tool/response types,BaseLLMProvider,ToolRegistry, boundedrun_tool_loop) and makes providers discoverable via the existing Pluggy path: a newregister_llm_providerhookspec (firstresult=True) +bootstrap_llm_provider(returnsNoneon absence). Adds a runnable Anthropic example provider inexample_plugins, registered via hookimpl, with theanthropicSDK confined toexample_plugins(never core). Implements AC1.1–AC1.6.Checklist
./run-tests.sh)uv run ruff check .passesuv tool run fawltydeps --check-unused --pyenv .venvpassesCHANGELOG.md(deferred — happy to add)