mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-06 12:51:54 +00:00
Enable persistence for Torch agent memory system
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
a384548663
commit
6313c08125
13 files changed
+208
-1
No files matched your search
@@ -1,3 +1,2 @@
|
|||||||
node_modules
|
node_modules
|
||||||
dist/
|
dist/
|
||||||
.scheduler-memory/
|
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"cadence": "daily",
|
||||||
|
"operation": "retrieve",
|
||||||
|
"runId": "initial-seed",
|
||||||
|
"servicePath": "src/services/memory/index.js#getRelevantMemories",
|
||||||
|
"inputs": {
|
||||||
|
"agentId": "onboarding-audit-agent",
|
||||||
|
"promptPath": "src/prompts/daily/onboarding-audit-agent.md",
|
||||||
|
"promptIntent": "Required startup + artifacts + memory + issue capture",
|
||||||
|
"query": "scheduler | daily | agent | onboarding-audit-agent | intent | Required startup + artifacts + memory + issue capture",
|
||||||
|
"events": 1
|
||||||
|
},
|
||||||
|
"outputs": {
|
||||||
|
"ingestedCount": 1,
|
||||||
|
"retrievedCount": 2
|
||||||
|
},
|
||||||
|
"status": "ok"
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
MEMORY_RETRIEVED
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"cadence": "daily",
|
||||||
|
"operation": "store",
|
||||||
|
"runId": "initial-seed",
|
||||||
|
"servicePath": "src/services/memory/index.js#ingestEvents",
|
||||||
|
"inputs": {
|
||||||
|
"agentId": "onboarding-audit-agent",
|
||||||
|
"promptPath": "src/prompts/daily/onboarding-audit-agent.md",
|
||||||
|
"promptIntent": "Required startup + artifacts + memory + issue capture",
|
||||||
|
"events": 2
|
||||||
|
},
|
||||||
|
"outputs": {
|
||||||
|
"storedCount": 1,
|
||||||
|
"summaries": [
|
||||||
|
"Store memory event A for daily :: Required startup + artifacts + memory + issue capture Store memory event B for daily :: Required startup + artifacts + memory + issue capture"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": "ok"
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
MEMORY_STORED
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
- Store memory event A for daily :: Required startup + artifacts + memory + issue capture
|
||||||
|
Store memory event B for daily :: Required startup + artifacts + memory + issue capture
|
||||||
|
- Memory retrieval seed for daily :: Required startup + artifacts + memory + issue capture
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
MEMORY_RETRIEVED
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
MEMORY_STORED
|
||||||
@@ -0,0 +1,125 @@
|
|||||||
|
[
|
||||||
|
[
|
||||||
|
"638c2d47-3218-42f5-bc2d-e3adeb4626d0",
|
||||||
|
{
|
||||||
|
"schema_version": 1,
|
||||||
|
"id": "638c2d47-3218-42f5-bc2d-e3adeb4626d0",
|
||||||
|
"agent_id": "test-agent",
|
||||||
|
"session_id": "test-run",
|
||||||
|
"type": "batch_window",
|
||||||
|
"content": "Store memory event A for daily :: scheduler memory store\nStore memory event B for daily :: scheduler memory store",
|
||||||
|
"summary": "Store memory event A for daily :: scheduler memory store Store memory event B for daily :: scheduler memory store",
|
||||||
|
"tags": [
|
||||||
|
"scheduler",
|
||||||
|
"daily",
|
||||||
|
"store"
|
||||||
|
],
|
||||||
|
"importance": 0.55,
|
||||||
|
"embedding_id": null,
|
||||||
|
"created_at": 1771295950236,
|
||||||
|
"last_seen": 1771295958659,
|
||||||
|
"source": "scheduler-store",
|
||||||
|
"ttl_days": null,
|
||||||
|
"merged_into": null,
|
||||||
|
"pinned": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"5c458e0c-8239-46f9-99d1-b61cf05acc34",
|
||||||
|
{
|
||||||
|
"schema_version": 1,
|
||||||
|
"id": "5c458e0c-8239-46f9-99d1-b61cf05acc34",
|
||||||
|
"agent_id": "test-agent",
|
||||||
|
"session_id": "test-run-2",
|
||||||
|
"type": "batch_window",
|
||||||
|
"content": "Memory retrieval seed for daily :: scheduler memory retrieval",
|
||||||
|
"summary": "Memory retrieval seed for daily :: scheduler memory retrieval",
|
||||||
|
"tags": [
|
||||||
|
"scheduler",
|
||||||
|
"daily",
|
||||||
|
"retrieve"
|
||||||
|
],
|
||||||
|
"importance": 0.4,
|
||||||
|
"embedding_id": null,
|
||||||
|
"created_at": 1771295958645,
|
||||||
|
"last_seen": 1771295958659,
|
||||||
|
"source": "scheduler-retrieve",
|
||||||
|
"ttl_days": null,
|
||||||
|
"merged_into": null,
|
||||||
|
"pinned": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"2e9129bd-c366-4d82-ac2b-7e50574532a9",
|
||||||
|
{
|
||||||
|
"schema_version": 1,
|
||||||
|
"id": "2e9129bd-c366-4d82-ac2b-7e50574532a9",
|
||||||
|
"agent_id": "onboarding-audit-agent",
|
||||||
|
"session_id": "initial-seed",
|
||||||
|
"type": "batch_window",
|
||||||
|
"content": "Store memory event A for daily :: Required startup + artifacts + memory + issue capture\nStore memory event B for daily :: Required startup + artifacts + memory + issue capture",
|
||||||
|
"summary": "Store memory event A for daily :: Required startup + artifacts + memory + issue capture Store memory event B for daily :: Required startup + artifacts + memory + issue capture",
|
||||||
|
"tags": [
|
||||||
|
"scheduler",
|
||||||
|
"daily",
|
||||||
|
"store"
|
||||||
|
],
|
||||||
|
"importance": 0.55,
|
||||||
|
"embedding_id": null,
|
||||||
|
"created_at": 1771296574057,
|
||||||
|
"last_seen": 1771296574172,
|
||||||
|
"source": "scheduler-store",
|
||||||
|
"ttl_days": null,
|
||||||
|
"merged_into": null,
|
||||||
|
"pinned": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"2612b9ce-1aa7-4731-acb2-c3a852eeaac6",
|
||||||
|
{
|
||||||
|
"schema_version": 1,
|
||||||
|
"id": "2612b9ce-1aa7-4731-acb2-c3a852eeaac6",
|
||||||
|
"agent_id": "onboarding-audit-agent",
|
||||||
|
"session_id": "initial-seed",
|
||||||
|
"type": "batch_window",
|
||||||
|
"content": "Memory retrieval seed for daily :: Required startup + artifacts + memory + issue capture",
|
||||||
|
"summary": "Memory retrieval seed for daily :: Required startup + artifacts + memory + issue capture",
|
||||||
|
"tags": [
|
||||||
|
"scheduler",
|
||||||
|
"daily",
|
||||||
|
"retrieve"
|
||||||
|
],
|
||||||
|
"importance": 0.4,
|
||||||
|
"embedding_id": null,
|
||||||
|
"created_at": 1771296574158,
|
||||||
|
"last_seen": 1771296574172,
|
||||||
|
"source": "scheduler-retrieve",
|
||||||
|
"ttl_days": null,
|
||||||
|
"merged_into": null,
|
||||||
|
"pinned": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"facf005a-dad0-4066-921c-49a8e408665c",
|
||||||
|
{
|
||||||
|
"schema_version": 1,
|
||||||
|
"id": "facf005a-dad0-4066-921c-49a8e408665c",
|
||||||
|
"agent_id": "agent-telemetry",
|
||||||
|
"session_id": "s-telemetry",
|
||||||
|
"type": "batch_window",
|
||||||
|
"content": "customer token ABC123 secret",
|
||||||
|
"summary": "customer token ABC123 secret",
|
||||||
|
"tags": [
|
||||||
|
"incident"
|
||||||
|
],
|
||||||
|
"importance": 0.25,
|
||||||
|
"embedding_id": null,
|
||||||
|
"created_at": 1771296636016,
|
||||||
|
"last_seen": 1771296636024,
|
||||||
|
"source": "ingest",
|
||||||
|
"ttl_days": null,
|
||||||
|
"merged_into": null,
|
||||||
|
"pinned": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"cadence": "daily",
|
||||||
|
"operation": "retrieve",
|
||||||
|
"runId": "test-run-2",
|
||||||
|
"servicePath": "src/services/memory/index.js#getRelevantMemories",
|
||||||
|
"inputs": {
|
||||||
|
"agentId": "test-agent",
|
||||||
|
"promptPath": "",
|
||||||
|
"promptIntent": "scheduler memory retrieval",
|
||||||
|
"query": "scheduler | daily | agent | test-agent | intent | scheduler memory retrieval",
|
||||||
|
"events": 1
|
||||||
|
},
|
||||||
|
"outputs": {
|
||||||
|
"ingestedCount": 1,
|
||||||
|
"retrievedCount": 2
|
||||||
|
},
|
||||||
|
"status": "ok"
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
MEMORY_RETRIEVED
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"cadence": "daily",
|
||||||
|
"operation": "store",
|
||||||
|
"runId": "test-run",
|
||||||
|
"servicePath": "src/services/memory/index.js#ingestEvents",
|
||||||
|
"inputs": {
|
||||||
|
"agentId": "test-agent",
|
||||||
|
"promptPath": "",
|
||||||
|
"promptIntent": "scheduler memory store",
|
||||||
|
"events": 2
|
||||||
|
},
|
||||||
|
"outputs": {
|
||||||
|
"storedCount": 1,
|
||||||
|
"summaries": [
|
||||||
|
"Store memory event A for daily :: scheduler memory store Store memory event B for daily :: scheduler memory store"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": "ok"
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
MEMORY_STORED
|
||||||
Reference in new issue
Block a user