Issue #601: consolidate LLM client registry resolution - #614
Merged
Conversation
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.
Closes #601
Summary
tools.llm_registryas the single source of truthtools.langchain_clientfocused on LangChain object construction with compatibility wrappersValidation
UV_CACHE_DIR=/tmp/pd-workloop-uv-cache uv run ruff check tools/langchain_client.py tools/llm_registry.py scripts/langchain/_llm_client.py tests/tools/test_langchain_client_config.py tests/tools/test_llm_client_single_source.pyUV_CACHE_DIR=/tmp/pd-workloop-uv-cache uv run pytest tests/tools/test_langchain_client_config.py tests/tools/test_llm_client_single_source.py -q --no-covSlotDefinitionintools/langchain_client.py;test_langchain_client_uses_llm_registry_as_single_resolution_sourcefailed, then the break was reverted and tests passed again.Summary by CodeRabbit
Refactor
Tests
Automated Status Summary
Scope
Scope section missing from source issue.
Context for Agent
Related Issues/PRs
Tasks
tools/llm_provider.py), migrate all callers to it, and remove the redundant module(s).config/model_registry.json+config/llm_slots.json(see [P1] config/model_registry.json + config/llm_slots.json are never loaded by any src/ module (inert LLM-routing config) #596) — through the one module.Acceptance criteria
grep -rl <removed module>returns no callers after migration.