Skip to content

feat(gooddata-sdk): [AUTO] Add CatalogResolvedLlmProvider models and resolve_llm_providers service method#1465

Closed
yenkins-admin wants to merge 2 commits intomasterfrom
feature/auto-P002-resolve-llm-providers
Closed

feat(gooddata-sdk): [AUTO] Add CatalogResolvedLlmProvider models and resolve_llm_providers service method#1465
yenkins-admin wants to merge 2 commits intomasterfrom
feature/auto-P002-resolve-llm-providers

Conversation

@yenkins-admin
Copy link
Copy Markdown
Contributor

Add SDK wrapper classes for the new ResolvedLlmProvider API types and expose the resolve_llm_providers action endpoint.
Problem: P002 | Workflow: https://github.com/gooddata/gdc-nas/actions/runs/23238229346

What changed in gdc-nas

  • 699c75c — New GET /api/v1/actions/workspaces/{workspaceId}/ai/resolveLlmProviders endpoint returning ResolvedLlms; new OAS models ResolvedLlm, ResolvedLlmProvider, ResolvedLlms, ResolvedLlmsData; gate controlled by ENABLE_LLM_ENDPOINT_REPLACEMENT feature flag (PR #21420)
  • a19eb19LlmEndpoint and LlmEndpointProvider marked @Deprecated; all /api/v1/entities/llmEndpoints CRUD operations and validateLLMEndpoint, resolveLlmEndpoints actions deprecated in afm-exec-api and metadata-api specs (PR #21393)
  • 075d22dUserContext.referencedObjects made nullable to fix UI SDK client generation (PR #21389)

What was implemented in SDK

  • New CatalogResolvedLlm, CatalogResolvedLlmModel, CatalogResolvedLlmProvider, and CatalogResolvedLlms model classes wrapping the new API types
  • New resolve_llm_providers(workspace_id) service method on CatalogOrganizationService
  • All new classes exported from gooddata_sdk.__init__
  • Mock-based unit tests covering service method behavior

Files modified

  • packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/entity_model/resolved_llm_provider.py (new file)
  • packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/service.py
  • packages/gooddata-sdk/src/gooddata_sdk/__init__.py
  • packages/gooddata-sdk/tests/catalog/test_catalog_organization.py

JIRA: PENDING (Jira ticket will be created after review)
Risk: Low

Auto Impl and others added 2 commits March 18, 2026 09:54
…resolve_llm_providers service method

Wraps the new resolveLlmProviders action endpoint in the Python SDK:
- New entity model classes: CatalogResolvedLlm, CatalogResolvedLlmModel,
  CatalogResolvedLlmProvider, CatalogResolvedLlms
- New service method CatalogOrganizationService.resolve_llm_providers(workspace_id)
- All new classes exported via gooddata_sdk.__init__
- Unit tests for the service method using mocks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 97.29730% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 77.32%. Comparing base (b65ee3f) to head (21ca47a).

Files with missing lines Patch % Lines
...organization/entity_model/resolved_llm_provider.py 96.87% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1465      +/-   ##
==========================================
+ Coverage   77.27%   77.32%   +0.05%     
==========================================
  Files         227      228       +1     
  Lines       14687    14724      +37     
==========================================
+ Hits        11350    11386      +36     
- Misses       3337     3338       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hkad98 hkad98 closed this Mar 18, 2026
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.

2 participants