Skip to content

chore(python-sdk)!: rename prompt_provider to llm_provider#64

Merged
czi-fsisenda merged 2 commits into
mainfrom
fsisenda/rename_prompt_provider
May 15, 2026
Merged

chore(python-sdk)!: rename prompt_provider to llm_provider#64
czi-fsisenda merged 2 commits into
mainfrom
fsisenda/rename_prompt_provider

Conversation

@czi-fsisenda
Copy link
Copy Markdown
Contributor

Summary:

Just a rename. prompt_provider -> llm_provider

Test Plan:

  • Wrote automated tests
    • Covered by existing tests
  • Manually tested my changes, and here are the details:

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 LlmProviderLLMProvider and updated all references (including metadata token usage typing).
  • Renamed provider config types and EvaluatorConfig fields (e.g., GooglePromptProviderConfig/google_prompt_provider_configGoogleLLMProviderConfig/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.

@czi-fsisenda czi-fsisenda merged commit bf21d1e into main May 15, 2026
9 checks passed
@czi-fsisenda czi-fsisenda deleted the fsisenda/rename_prompt_provider branch May 15, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants