chore(python-sdk)!: rename prompt_provider to llm_provider#64
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR performs a breaking rename across the Python SDK from “prompt provider” terminology to “LLM provider”, updating the public config/schema APIs and all internal call sites accordingly.
Changes:
- Renamed
LlmProvider→LLMProviderand updated all references (including metadata token usage typing). - Renamed provider config types and
EvaluatorConfigfields (e.g.,GooglePromptProviderConfig/google_prompt_provider_config→GoogleLLMProviderConfig/google_llm_provider_config) and updated the LangChain provider factory to use the new fields. - Updated generated evaluator settings, tests, and README examples to match the new API names.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| sdks/python/src/learning_commons_evaluators/schemas/config.py | Renames provider enum/config classes and EvaluatorConfig/factory parameter names to the new LLM-provider terminology. |
| sdks/python/src/learning_commons_evaluators/schemas/metadata.py | Updates TokenUsage / EvaluationMetadata.total_token_usage to use LLMProvider. |
| sdks/python/src/learning_commons_evaluators/providers/langchain.py | Switches provider selection and config field access to LLMProvider and *_llm_provider_config. |
| sdks/python/src/learning_commons_evaluators/schemas/init.py | Re-exports LLMProvider instead of LlmProvider. |
| sdks/python/src/learning_commons_evaluators/config.py | Updates re-exports to new *LLMProviderConfig and LLMProviderConfig. |
| sdks/python/src/learning_commons_evaluators/init.py | Updates top-level exports to new provider config names and LLMProvider. |
| sdks/python/src/learning_commons_evaluators/providers/init.py | Updates module docstring terminology to LLM provider naming. |
| sdks/python/src/learning_commons_evaluators/evaluators/init.py | Updates docstring references to new config type names. |
| sdks/python/src/learning_commons_evaluators/settings/_generated_conventionality_settings.py | Updates generated settings to reference LLMProvider. |
| sdks/python/src/learning_commons_evaluators/settings/_generated_vocabulary_settings.py | Updates generated settings to reference LLMProvider. |
| sdks/python/tests/settings/test_load_settings.py | Updates tests to assert LLMProvider values. |
| sdks/python/tests/schemas/test_metadata.py | Updates tests to use LLMProvider in metadata-related schemas. |
| sdks/python/tests/schemas/test_config.py | Updates tests for renamed provider enum/config classes and factory parameter names. |
| sdks/python/tests/providers/test_langchain.py | Updates LangChain provider factory tests to use new config fields and LLMProvider. |
| sdks/python/tests/evaluators/test_conventionality.py | Updates evaluator test to use LLMProvider. |
| sdks/python/tests/evaluators/test_base.py | Updates evaluator base tests to use LLMProvider and updated dict keys. |
| sdks/python/README.md | Updates documentation/examples to the new *LLMProviderConfig and *_llm_provider_config APIs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jecortez
approved these changes
May 15, 2026
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.
Summary:
Just a rename. prompt_provider -> llm_provider
Test Plan: