feat(gooddata-sdk): [AUTO] add GenAiService for gen-ai HTTP API conversations#1406
Open
yenkins-admin wants to merge 2 commits intomasterfrom
Open
feat(gooddata-sdk): [AUTO] add GenAiService for gen-ai HTTP API conversations#1406yenkins-admin wants to merge 2 commits intomasterfrom
yenkins-admin wants to merge 2 commits intomasterfrom
Conversation
…rsations Introduces a new gen_ai package with GenAiService wrapping the gen-ai microservice endpoints (list/create/get/delete conversations, list items, send message with SSE streaming). Adds gen_ai_host parameter to GoodDataApiClient and GoodDataSdk.create(), and exposes sdk.gen_ai property. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1406 +/- ##
==========================================
+ Coverage 77.53% 77.62% +0.08%
==========================================
Files 225 227 +2
Lines 14614 14690 +76
==========================================
+ Hits 11331 11403 +72
- Misses 3283 3287 +4 ☔ 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.
Adds a new
GenAiServiceSDK wrapper exposing the gen-ai microservice HTTP API (conversations CRUD and SSE message streaming) introduced by gdc-nas commit c75abfe.Problem: P005 | Workflow: https://github.com/gooddata/gdc-nas/actions/runs/22995241596
What changed in gdc-nas
open-api-spec.json, 1,483 lines, OpenAPI 3.1.0) defining 5 endpoints under/api/v1/ai/workspaces/{workspace_id}/chat/with 25+ schemas. Integrated gen-ai service intodocker-compose.yaml(GEN_AI_HTTP_HOST=gen-ai,GEN_AI_HTTP_PORT=8989) and configured api-gw Helm chart routing. AddedtaskIdfield toConversationItemResponseDto.Endpoints defined:
GET /conversations— list conversationsPOST /conversations— create conversationGET /conversations/{conversation_id}— get conversationDELETE /conversations/{conversation_id}— delete conversationGET /conversations/{conversation_id}/items— list conversation itemsPOST /conversations/{conversation_id}/messages— send message (SSE stream)What was implemented in SDK
Created
gooddata_sdk.gen_aipackage withGenAiServicebacked by direct HTTP calls to the gen-ai microservice on its dedicated host/port (8989). Added optionalgen_ai_hostparameter toGoodDataApiClientandGoodDataSdk.create(), exposedsdk.gen_aiproperty, and exportedGenAiServicefrom the top-level package. Mock-based unit tests cover all six service methods.Files modified
packages/gooddata-sdk/src/gooddata_sdk/gen_ai/__init__.py— new package initpackages/gooddata-sdk/src/gooddata_sdk/gen_ai/service.py—GenAiServicewithlist_conversations,create_conversation,get_conversation,delete_conversation,list_conversation_items,send_messagepackages/gooddata-sdk/src/gooddata_sdk/client.py— registered gen-ai client (port 8989)packages/gooddata-sdk/src/gooddata_sdk/sdk.py— addedgen_aiproperty onGoodDataSdkpackages/gooddata-sdk/src/gooddata_sdk/__init__.py— exportedGenAiServicepackages/gooddata-sdk/tests/gen_ai/__init__.py— test package initpackages/gooddata-sdk/tests/gen_ai/test_gen_ai_service.py— mock-based unit testsJIRA: PENDING (Jira ticket will be created after review)
Risk: Low