Skip to content

Commit c62de31

Browse files
mjnoviceclaude
andcommitted
feat: scaffold MemoryService for Agent Episodic Memory (URT migration)
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>
1 parent e395d37 commit c62de31

4 files changed

Lines changed: 547 additions & 0 deletions

File tree

packages/uipath-platform/src/uipath/platform/_uipath.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from .common.auth import resolve_config_from_env
1919
from .connections import ConnectionsService
2020
from .context_grounding import ContextGroundingService
21+
from .memory import MemoryService
2122
from .documents import DocumentsService
2223
from .entities import EntitiesService
2324
from .errors import BaseUrlMissingError, SecretMissingError
@@ -113,6 +114,10 @@ def context_grounding(self) -> ContextGroundingService:
113114
self.buckets,
114115
)
115116

117+
@property
118+
def memory(self) -> MemoryService:
119+
return MemoryService(self._config, self._execution_context)
120+
116121
@property
117122
def documents(self) -> DocumentsService:
118123
return DocumentsService(self._config, self._execution_context)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""Init file for memory module."""
2+
3+
from ._memory_service import MemoryService
4+
from .memory import (
5+
MemoryField,
6+
MemoryIngestRequest,
7+
MemoryItem,
8+
MemoryListResponse,
9+
MemoryQueryRequest,
10+
MemoryQueryResponse,
11+
MemoryQueryResult,
12+
MemoryResource,
13+
)
14+
15+
__all__ = [
16+
"MemoryField",
17+
"MemoryIngestRequest",
18+
"MemoryItem",
19+
"MemoryListResponse",
20+
"MemoryQueryRequest",
21+
"MemoryQueryResponse",
22+
"MemoryQueryResult",
23+
"MemoryResource",
24+
"MemoryService",
25+
]

0 commit comments

Comments
 (0)