Skip to content

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
feature/auto-P014-allowed-relationship-types-chat
Closed

feat(gooddata-sdk): [AUTO] add allowed_relationship_types to ai_chat and ai_chat_stream#1340
yenkins-admin wants to merge 2 commits intomasterfrom
feature/auto-P014-allowed-relationship-types-chat

Conversation

@yenkins-admin
Copy link
Contributor

@yenkins-admin yenkins-admin commented Feb 19, 2026

Exposes the allowedRelationshipTypes backend capability in the gooddata-sdk Python wrapper by adding an optional allowed_relationship_types parameter to ComputeService.ai_chat() and ai_chat_stream().
P014 | https://github.com/gooddata/gdc-nas/actions/runs/22176850727

What changed in gdc-nas

GDAI-1166 added an allowedRelationshipTypes field to the ChatRequest model in afm-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.

  • Commit: 85777a0 — Merge PR #20108 (ach/gdai-1166-allowed-references-in-chat)
  • Files changed in gdc-nas: Chat.kt, GenAIProcessor.kt, open-api-spec.json, gen_ai.proto, and Python gen-ai service modules

What was implemented in SDK

  • Added allowed_relationship_types: Optional[list[AllowedRelationshipType]] = None parameter to ComputeService.ai_chat() and ai_chat_stream(), forwarding the value to ChatRequest when provided.
  • Re-exported AllowedRelationshipType from gooddata_sdk.__init__ so users can import it directly without referencing the generated API client.
  • Added test cases for both ai_chat() and ai_chat_stream() covering the new parameter.

Files modified

  • packages/gooddata-sdk/src/gooddata_sdk/compute/service.py
  • packages/gooddata-sdk/src/gooddata_sdk/__init__.py
  • packages/gooddata-sdk/tests/compute/test_compute_service.py

JIRA: DX-TBD (https://gooddata-sandbox.atlassian.net/browse/DX-TBD)
Risk: Low

Auto Implementer 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.
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

Comments