feat(gooddata-sdk): [AUTO] Add allowedRelationshipTypes parameter to AI chat methods#1330
Open
yenkins-admin wants to merge 1 commit intomasterfrom
Open
feat(gooddata-sdk): [AUTO] Add allowedRelationshipTypes parameter to AI chat methods#1330yenkins-admin wants to merge 1 commit intomasterfrom
yenkins-admin wants to merge 1 commit intomasterfrom
Conversation
…AI chat methods Extended ai_chat() and ai_chat_stream() methods in ComputeService to support the new allowedRelationshipTypes field from ChatRequest API. This allows SDK users to filter relationships and search results based on role permissions (e.g., view-only users). Added corresponding tests for both methods. Co-Authored-By: Claude Sonnet 4.5 <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.
Extended AI chat methods in ComputeService to support the new allowedRelationshipTypes field for role-based filtering of search results.
Problem ID: P011
Workflow: https://github.com/gooddata/gdc-nas/actions/runs/22094366952
What changed in gdc-nas
Extended GenAI Chat API to support role-based filtering of search results and relationships via allowedRelationshipTypes field. This field allows backend to filter results based on user permissions (e.g., view-only users), preventing frontend filtering inconsistencies.
Commit: 85777a0 - Merge pull request #20108 from gooddata/ach/gdai-1166-allowed-references-in-chat
Key changes:
What was implemented in SDK
Extended the ComputeService
ai_chat()andai_chat_stream()methods to accept an optionalallowed_relationship_typesparameter (List[AllowedRelationshipType]), which is passed through to the ChatRequest API client. This enables SDK users to filter relationships and search results based on role permissions.Files modified:
src/gooddata_sdk/compute/service.py- Added allowed_relationship_types parameter to both AI chat methodstests/compute/test_compute_service.py- Added test cases for the new parameterJIRA: TBD (Jira sandbox under maintenance)
Risk: Low