feat(gooddata-sdk): [AUTO] Add VisualizationConfig wrapper classes for AI skill configs#1445
Closed
yenkins-admin wants to merge 2 commits intomasterfrom
Closed
feat(gooddata-sdk): [AUTO] Add VisualizationConfig wrapper classes for AI skill configs#1445yenkins-admin wants to merge 2 commits intomasterfrom
yenkins-admin wants to merge 2 commits intomasterfrom
Conversation
…r AI skill configs Exposes ForecastConfig, ClusteringConfig, AnomalyDetectionConfig, and VisualizationConfig wrapper classes so SDK users can access the forecast/clustering/anomaly detection configuration returned by ai_chat() in CreatedVisualization. Adds extract_visualization_config() helper on ComputeService to extract the typed config from a ChatResult. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1445 +/- ##
==========================================
+ Coverage 77.24% 77.33% +0.08%
==========================================
Files 227 228 +1
Lines 14672 14730 +58
==========================================
+ Hits 11334 11392 +58
Misses 3338 3338 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Adds Python SDK wrapper classes for AI skill visualization configuration types (ForecastConfig, ClusteringConfig, AnomalyDetectionConfig, VisualizationConfig) that are now returned by the afm-exec-api AI chat endpoint.
P012 | Workflow: https://github.com/gooddata/gdc-nas/actions/runs/23194184862
What changed in gdc-nas
Three agentic skill capabilities were added to the afm-exec-api OpenAPI spec and gen-ai proto. The API client has already been regenerated.
d99f6d2— AddedForecastConfigschema andVisualizationConfigto OpenAPI spec;CreatedVisualizationgained optionalconfigfield (GDAI-1385)babb435— AddedClusteringConfigschema andSCATTERtoVisualizationTypeenum (GDAI-1386)2707f4d— AddedAnomalyDetectionConfigschema (GDAI-1387)What was implemented in SDK
ForecastConfig,ClusteringConfig,AnomalyDetectionConfig, andVisualizationConfigwrapper dataclasses, each with afrom_dict()classmethod for deserializing the config dict returned by the AI chat APIextract_visualization_config()method toComputeServiceso users can extract a typedVisualizationConfigfrom aChatResultreturned byai_chat()gooddata_sdk/__init__.pytest_visualization_config.pycovering all config types and edge cases (empty config, None values, partial fields)Files modified
packages/gooddata-sdk/src/gooddata_sdk/compute/model/visualization_config.py(new)packages/gooddata-sdk/src/gooddata_sdk/compute/service.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/tests/compute/test_visualization_config.py(new)JIRA: PENDING (Jira ticket will be created after review)
Risk: Low