feat(gooddata-sdk): [AUTO] Add UserContext, DashboardContext, UIContext, RichTextWidgetDescriptor#1577
Open
yenkins-admin wants to merge 1 commit intomasterfrom
Open
feat(gooddata-sdk): [AUTO] Add UserContext, DashboardContext, UIContext, RichTextWidgetDescriptor#1577yenkins-admin wants to merge 1 commit intomasterfrom
yenkins-admin wants to merge 1 commit intomasterfrom
Conversation
…xt, RichTextWidgetDescriptor
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1577 +/- ##
===========================================
+ Coverage 0.00% 78.73% +78.73%
===========================================
Files 158 231 +73
Lines 11048 15517 +4469
===========================================
+ Hits 0 12218 +12218
+ Misses 11048 3299 -7749 ☔ 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.
Summary
Added SDK wrapper classes for UserContext, DashboardContext, UIContext, RichTextWidgetDescriptor and supporting types in a new compute/model/chat_context.py module. Updated ai_chat() and ai_chat_stream() in ComputeService to accept an optional user_context: CatalogUserContext keyword-only parameter. Exported all new public classes from gooddata_sdk/init.py. Added unit tests covering model construction and as_api_model() serialization.
Impact: new_feature | Services:
gooddata-afm-client,gooddata-automation-clientTickets: LX-2168, LX-2199
Files changed
packages/gooddata-sdk/src/gooddata_sdk/compute/model/chat_context.pypackages/gooddata-sdk/src/gooddata_sdk/compute/service.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/tests/compute/test_chat_context.pyAgent decisions
Decisions (4)
placement of context wrapper classes — New file compute/model/chat_context.py
filter field type in WidgetDescriptor / RichTextWidgetDescriptor — list[dict[str, Any]] for filters
keyword-only user_context parameter — Keyword-only via * separator, default None
explicit as_api_model() vs Base.to_api() — Explicit as_api_model() for models with nested SDK objects; Base.to_api() for leaf models
Assumptions to verify (3)
Risks (2)
Layers touched (3)
packages/gooddata-sdk/src/gooddata_sdk/compute/model/chat_context.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/src/gooddata_sdk/compute/service.pypackages/gooddata-sdk/tests/compute/test_chat_context.pySource commits (gdc-nas)
adffd00feat(gen-ai): introduceUserContextto enhance chatbot capabilities09168a4Merge pull request #21557 from Mara3l/smac-LX-2168247d62eMerge pull request #21436 from Mara3l/smac-LX-219963dd6bffeat(gen-ai): refactor widgets polymorphism and enhance OpenAPI specOpenAPI diff
Workflow run
Generated by SDK OpenAPI Sync workflow