feat: scaffold MemoryService for Agent Episodic Memory (URT migration)#1467
Draft
feat: scaffold MemoryService for Agent Episodic Memory (URT migration)#1467
Conversation
Add MemoryService client backed by ECS (/ecs_/memory/...) endpoints for Agent Episodic Memory. This enables dynamic few-shot retrieval where agents query past episodes at execution start and inject them as examples into the system prompt. New files: - memory.py: Pydantic models (MemoryField, MemoryItem, MemoryQueryRequest, etc.) - _memory_service.py: MemoryService with create, ingest, query, retrieve, delete, list - __init__.py: Module exports Also registers sdk.memory on the UiPath class. Co-Authored-By: Claude Opus 4.6 (1M context) <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.
Summary
MemoryServiceclient inuipath-platformbacked by ECS/ecs_/memory/...endpoints for Agent Episodic MemoryMemoryField,MemoryItem,MemoryQueryRequest/Response,MemoryIngestRequest,MemoryResource,MemoryListResponsecreate,ingest,query,retrieve,delete,list(sync + async)sdk.memoryon theUiPathclassContextGroundingService(folder-scoped,@traced,header_folder)Context
Agent Memory allows agents to persist context across jobs using dynamic few-shot retrieval. At agent start, the system queries similar past "episodes" and injects them as examples into the system prompt. This is backed by the ECS service (same as Context Grounding) using SQL VECTOR type.
This is the SDK layer needed for URT migration of agent memory — currently an adoption blocker for URT-only customers. Companion changes in
uipath-agents-pythonwill wire memory retrieval into the agent loop.Spec: Memory 1 Pager | Full Spec
Test plan
🤖 Generated with Claude Code