Skip to content

feat: scaffold MemoryService for Agent Episodic Memory (URT migration)#1467

Draft
mjnovice wants to merge 1 commit intomainfrom
feat/memory-service-scaffold
Draft

feat: scaffold MemoryService for Agent Episodic Memory (URT migration)#1467
mjnovice wants to merge 1 commit intomainfrom
feat/memory-service-scaffold

Conversation

@mjnovice
Copy link
Contributor

Summary

  • Adds MemoryService client in uipath-platform backed by ECS /ecs_/memory/... endpoints for Agent Episodic Memory
  • Pydantic models for memory API: MemoryField, MemoryItem, MemoryQueryRequest/Response, MemoryIngestRequest, MemoryResource, MemoryListResponse
  • Service supports: create, ingest, query, retrieve, delete, list (sync + async)
  • Registered as sdk.memory on the UiPath class
  • Follows existing patterns from ContextGroundingService (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-python will wire memory retrieval into the agent loop.

Spec: Memory 1 Pager | Full Spec

Test plan

  • Verify models serialize/deserialize correctly with camelCase aliases
  • Verify service endpoints match ECS API contract
  • Integration test with ECS memory endpoints once available
  • Validate folder-scoped header propagation

🤖 Generated with Claude Code

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>
@github-actions github-actions bot added the test:uipath-langchain Triggers tests in the uipath-langchain-python repository label Mar 20, 2026
@mjnovice mjnovice marked this pull request as draft March 20, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant