Skip to content

Commit d066733

Browse files
mjnoviceclaude
andcommitted
refactor: clean up MemoryService to match actual API usage
Remove methods not used by any frontend or backend flow: - get(), delete_index() (neither frontend uses; backend uses v1.1) - ingest() (IM-internal, requires feedback_id from trace pipeline) - patch_memory(), delete_memory() (wrong endpoints, IM admin ops) Remove unused models: FeedbackMemoryStatus, EpisodicMemoryPatchRequest, MemoryIngestRequest/Response, MemoryItemUpdateRequest/Response. Add escalation memory methods used by the backend agentic loop: - escalation_search() -> POST /api/Agent/memory/{id}/escalation/search - escalation_ingest() -> POST /api/Agent/memory/{id}/escalation/ingest Add models: EscalationMemoryIngestRequest, EscalationMemorySearchResponse, EscalationMemoryMatch, CachedRecall (matching backend C# contracts). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4443fe0 commit d066733

4 files changed

Lines changed: 105 additions & 418 deletions

File tree

packages/uipath-platform/src/uipath/platform/memory/__init__.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,16 @@
22

33
from ._memory_service import MemoryService
44
from .memory import (
5+
CachedRecall,
56
EpisodicMemoryCreateRequest,
67
EpisodicMemoryField,
78
EpisodicMemoryIndex,
89
EpisodicMemoryListResponse,
9-
EpisodicMemoryPatchRequest,
1010
EpisodicMemoryStatus,
11-
FeedbackMemoryStatus,
11+
EscalationMemoryIngestRequest,
12+
EscalationMemoryMatch,
13+
EscalationMemorySearchResponse,
1214
FieldSettings,
13-
MemoryIngestRequest,
14-
MemoryIngestResponse,
15-
MemoryItemResponse,
16-
MemoryItemUpdateRequest,
1715
MemoryMatch,
1816
MemoryMatchField,
1917
MemorySearchRequest,
@@ -24,18 +22,16 @@
2422
)
2523

2624
__all__ = [
25+
"CachedRecall",
2726
"EpisodicMemoryCreateRequest",
2827
"EpisodicMemoryField",
2928
"EpisodicMemoryIndex",
3029
"EpisodicMemoryListResponse",
31-
"EpisodicMemoryPatchRequest",
3230
"EpisodicMemoryStatus",
33-
"FeedbackMemoryStatus",
31+
"EscalationMemoryIngestRequest",
32+
"EscalationMemoryMatch",
33+
"EscalationMemorySearchResponse",
3434
"FieldSettings",
35-
"MemoryIngestRequest",
36-
"MemoryIngestResponse",
37-
"MemoryItemResponse",
38-
"MemoryItemUpdateRequest",
3935
"MemoryMatch",
4036
"MemoryMatchField",
4137
"MemorySearchRequest",

0 commit comments

Comments
 (0)