feat(gooddata-sdk): [AUTO] add allowed_relationship_types to ai_chat and ai_chat_stream#1340
Closed
yenkins-admin wants to merge 2 commits intomasterfrom
Closed
feat(gooddata-sdk): [AUTO] add allowed_relationship_types to ai_chat and ai_chat_stream#1340yenkins-admin wants to merge 2 commits intomasterfrom
yenkins-admin wants to merge 2 commits intomasterfrom
Conversation
added 2 commits
February 19, 2026 10:16
…and ai_chat_stream Expose the `allowed_relationship_types` parameter (added to the backend ChatRequest in GDAI-1166) through the SDK wrapper methods `ai_chat()` and `ai_chat_stream()`. Re-export `AllowedRelationshipType` from `gooddata_sdk` so callers can type-annotate without importing from the generated client.
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.
Exposes the
allowedRelationshipTypesbackend capability in the gooddata-sdk Python wrapper by adding an optionalallowed_relationship_typesparameter toComputeService.ai_chat()andai_chat_stream().P014 | https://github.com/gooddata/gdc-nas/actions/runs/22176850727
What changed in gdc-nas
GDAI-1166 added an
allowedRelationshipTypesfield to theChatRequestmodel inafm-exec-api, enabling callers to restrict which metadata object relationship types appear in GenAI chat search results. This moves role-based (VIEWER/MANAGE/ANALYZE) filtering from the frontend to the backend, fixing inconsistent UI results.Chat.kt,GenAIProcessor.kt,open-api-spec.json,gen_ai.proto, and Python gen-ai service modulesWhat was implemented in SDK
allowed_relationship_types: Optional[list[AllowedRelationshipType]] = Noneparameter toComputeService.ai_chat()andai_chat_stream(), forwarding the value toChatRequestwhen provided.AllowedRelationshipTypefromgooddata_sdk.__init__so users can import it directly without referencing the generated API client.ai_chat()andai_chat_stream()covering the new parameter.Files modified
packages/gooddata-sdk/src/gooddata_sdk/compute/service.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/tests/compute/test_compute_service.pyJIRA: DX-TBD (https://gooddata-sandbox.atlassian.net/browse/DX-TBD)
Risk: Low