Skip to content

feat(gooddata-sdk): [AUTO] Add CatalogMemoryItem entity model and CRUD service methods#1345

Open
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P005-declarative-memory-item
Open

feat(gooddata-sdk): [AUTO] Add CatalogMemoryItem entity model and CRUD service methods#1345
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P005-declarative-memory-item

Conversation

@yenkins-admin
Copy link
Contributor

Adds CatalogMemoryItem entity model and five CRUD service methods (list_memory_items, get_memory_item, create_memory_item, patch_memory_item, delete_memory_item) to gooddata-sdk, exposing entity-level AI memory item operations backed by the new entities_api endpoints.

P005 | https://github.com/gooddata/gdc-nas/actions/runs/22179401494

What changed in gdc-nas

Commit ed043a4chore(ai): Declarative metadata sync for AI memories (#19923) merged via PR #19923:

  • New DeclarativeMemoryItem Kotlin model added to metadata-model library with fields: id, title, description, tags, strategy (enum: AUTO|ALWAYS), instruction, keywords, isDisabled, createdBy/At, modifiedBy/At
  • DeclarativeAnalyticsLayer updated with optional memoryItems list field
  • LayoutService, AnalyticsService, WorkspaceService, and WorkspaceLayout wired for declarative memory item CRUD and serialization/deserialization
  • OpenAPI spec extended with 87 additions covering DeclarativeMemoryItem schema and CRUD endpoints (create/get/list/delete/patch)
  • gen-ai service updated to handle MemoryItem sync to Qdrant

What was implemented in SDK

  • analytics_model.py: Added MemoryItemStrategy = Literal['AUTO', 'ALWAYS'] TypeAlias; applied to CatalogDeclarativeMemoryItem.strategy field annotation
  • entity_model/memory_item.py (new): CatalogMemoryItem wrapping JsonApiMemoryItemIn/JsonApiMemoryItemPatch API client classes, with CatalogMemoryItemAttributes, CatalogMemoryItemPatch, and CatalogMemoryItemPatchDocument classes
  • service.py: Added five CRUD service methods calling entities_api endpoints: list_memory_items, get_memory_item, create_memory_item, patch_memory_item, delete_memory_item
  • __init__.py: Exported CatalogMemoryItem, CatalogMemoryItemAttributes, CatalogMemoryItemPatch, CatalogMemoryItemPatchAttributes, and MemoryItemStrategy

Files modified

packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/declarative_model/workspace/analytics_model/analytics_model.py
packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/entity_model/memory_item.py
packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/service.py
packages/gooddata-sdk/src/gooddata_sdk/__init__.py

JIRA: N/A (Jira sandbox unavailable at time of delivery — ticket to be linked manually)
Risk: Low

…D service methods

Added MemoryItemStrategy TypeAlias (Literal['AUTO', 'ALWAYS']) to analytics_model.py
and updated CatalogDeclarativeMemoryItem.strategy field type annotation. Created
CatalogMemoryItem entity model wrapping JsonApiMemoryItemIn/Patch API client models.
Added list_memory_items, get_memory_item, create_memory_item, patch_memory_item, and
delete_memory_item service methods to CatalogWorkspaceService. Exported new public
types CatalogMemoryItem, CatalogMemoryItemAttributes, CatalogMemoryItemPatch,
CatalogMemoryItemPatchAttributes, and MemoryItemStrategy from gooddata_sdk package.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant

Comments