Skip to content

feat(gooddata-sdk): [AUTO] Add VisualizationConfig wrapper classes for AI skill configs#1445

Closed
yenkins-admin wants to merge 2 commits intomasterfrom
feature/auto-P012-visualization-config-wrappers
Closed

feat(gooddata-sdk): [AUTO] Add VisualizationConfig wrapper classes for AI skill configs#1445
yenkins-admin wants to merge 2 commits intomasterfrom
feature/auto-P012-visualization-config-wrappers

Conversation

@yenkins-admin
Copy link
Copy Markdown
Contributor

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 — Added ForecastConfig schema and VisualizationConfig to OpenAPI spec; CreatedVisualization gained optional config field (GDAI-1385)
  • babb435 — Added ClusteringConfig schema and SCATTER to VisualizationType enum (GDAI-1386)
  • 2707f4d — Added AnomalyDetectionConfig schema (GDAI-1387)

What was implemented in SDK

  • Added ForecastConfig, ClusteringConfig, AnomalyDetectionConfig, and VisualizationConfig wrapper dataclasses, each with a from_dict() classmethod for deserializing the config dict returned by the AI chat API
  • Added extract_visualization_config() method to ComputeService so users can extract a typed VisualizationConfig from a ChatResult returned by ai_chat()
  • All four new classes exported from gooddata_sdk/__init__.py
  • Unit tests added in test_visualization_config.py covering 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.py
  • packages/gooddata-sdk/src/gooddata_sdk/__init__.py
  • packages/gooddata-sdk/tests/compute/test_visualization_config.py (new)

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

Auto Implementer and others added 2 commits March 17, 2026 13:09
…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
Copy link
Copy Markdown

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.33%. Comparing base (4dc3f87) to head (f413de2).

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.
📢 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