feat(gooddata-sdk): [AUTO] add LLM provider action wrappers and workspace AI endpoints#1449
Closed
yenkins-admin wants to merge 2 commits intomasterfrom
Closed
feat(gooddata-sdk): [AUTO] add LLM provider action wrappers and workspace AI endpoints#1449yenkins-admin wants to merge 2 commits intomasterfrom
yenkins-admin wants to merge 2 commits intomasterfrom
Conversation
…pace AI endpoints Adds SDK wrapper methods for 6 new action-layer endpoints introduced by the LlmProvider refactoring: testLlmProvider, testLlmProviderById, listLlmProviderModels, listLlmProviderModelsById (on CatalogOrganizationService), resolveLlmProviders and generateTitle (on CatalogWorkspaceService). Adds corresponding request/response Catalog model classes and exports them from gooddata_sdk.__init__.py. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Add SDK wrapper methods for 6 new LLM provider action-layer endpoints introduced by the LlmEndpoint-to-LlmProvider refactoring in gdc-nas.
Problem: P023 | Workflow: https://github.com/gooddata/gdc-nas/actions/runs/23194184862
What changed in gdc-nas
A multi-phase refactoring replaced the legacy
LlmEndpointentity with a new provider-based routing model (LlmProvider,LlmProviderConfig,LlmProviderAuth) across metadata-api, afm-exec-api, and gen-ai. New provider-type-specific config schemas (OpenAI, AWS Bedrock, Azure Foundry) were introduced along with new action endpoints.Key commits:
testLlmProvider,testLlmProviderById)TestLlmProviderByIdRequest)generateTitle)listModelsendpoints (listLlmProviderModels,listLlmProviderModelsById)referencedObjectsnullable in ChatresolveLlmProvidersendpoint with model support and FF gatingWhat was implemented in SDK
Added wrapper methods for 6 new action-layer endpoints split across two services:
CatalogOrganizationService(org-scoped endpoints):test_llm_provider(request)→POST /api/v1/actions/ai/llmProvider/testtest_llm_provider_by_id(llm_provider_id, request)→POST /api/v1/actions/ai/llmProvider/{id}/testlist_llm_provider_models(request)→POST /api/v1/actions/ai/llmProvider/listModelslist_llm_provider_models_by_id(llm_provider_id, request)→POST /api/v1/actions/ai/llmProvider/{id}/listModelsCatalogWorkspaceService(workspace-scoped endpoints):resolve_llm_providers(workspace_id)→GET /api/v1/actions/workspaces/{workspaceId}/ai/resolveLlmProvidersgenerate_title(workspace_id, request)→POST /api/v1/actions/workspaces/{workspaceId}/ai/analyticsCatalog/generateTitleNew Catalog model classes added:
CatalogTestLlmProviderDefinitionRequest,CatalogTestLlmProviderByIdRequest,CatalogTestLlmProviderResponseCatalogListLlmProviderModelsRequest,CatalogListLlmProviderModelsResponseCatalogResolvedLlm,CatalogResolvedLlmProvider,CatalogResolvedLlmEndpoint,CatalogResolvedLlmsCatalogGenerateTitleRequest,CatalogGenerateTitleResponseAll new classes exported from
gooddata_sdk.__init__.py.Files modified
packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/entity_model/llm_provider.pypackages/gooddata-sdk/src/gooddata_sdk/catalog/organization/service.pypackages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/service.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/entity_model/llm_resolved.py(new)packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/entity_model/analytics_catalog.py(new)packages/gooddata-sdk/tests/catalog/test_catalog_organization.pypackages/gooddata-sdk/tests/catalog/test_catalog_workspace.pyJIRA: PENDING (Jira ticket will be created after review)
Risk: Low