Skip to content

Commit af535bc

Browse files
committed
fixes
1 parent 1ebd314 commit af535bc

8 files changed

Lines changed: 556 additions & 77 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
Agent Memory Toolkit is a Python library and Azure-backed reference implementation for storing, retrieving, and transforming agent memories over time. It combines a simple SDK for local and Cosmos DB operations with Durable Functions pipelines that generate thread summaries, extract facts, and build cross-thread user profiles. The toolkit also supports automatic processing via a Cosmos DB change feed trigger that fires these pipelines in the background when configurable message count thresholds are crossed. The toolkit is designed for agent applications that need both raw conversation history and higher-value derived memory that can be searched semantically later. It provides matching sync (`CosmosMemoryClient`) and async (`AsyncCosmosMemoryClient`) APIs so the same memory model can be used in scripts, services, notebooks, and larger agent systems.
1212

13-
![Agent Memory Toolkit overview](overview.png)
13+
![Agent Memory Toolkit overview](Overview.png)
1414

1515
---
1616

Samples/Notebooks/Demo_async.ipynb

Lines changed: 531 additions & 46 deletions
Large diffs are not rendered by default.

agent_memory_toolkit/prompts/dedup.prompty

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
name: dedup
33
description: Reconcile a pool of active facts — collapse duplicates and resolve semantic contradictions in one pass.
44
model:
5-
apiType: chat
6-
options:
5+
api: chat
6+
parameters:
77
temperature: 0.0
8-
additionalProperties:
9-
response_format:
10-
type: json_object
8+
response_format:
9+
type: json_object
1110
inputs:
1211
facts_text:
1312
type: string

agent_memory_toolkit/prompts/extract_memories.prompty

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
name: extract_memories
33
description: Extract facts, procedural rules, and episodic memories from a conversation, reconciled against existing memories.
44
model:
5-
apiType: chat
6-
options:
5+
api: chat
6+
parameters:
77
temperature: 0.0
8-
additionalProperties:
9-
response_format:
10-
type: json_object
8+
response_format:
9+
type: json_object
1110
inputs:
1211
existing_facts:
1312
type: string

agent_memory_toolkit/prompts/summarize.prompty

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
name: summarize
33
description: Produce a structured JSON summary of a single conversation thread.
44
model:
5-
apiType: chat
6-
options:
5+
api: chat
6+
parameters:
77
temperature: 0.2
8-
additionalProperties:
9-
response_format:
10-
type: json_object
8+
response_format:
9+
type: json_object
1110
inputs:
1211
transcript:
1312
type: string

agent_memory_toolkit/prompts/summarize_update.prompty

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
name: summarize_update
33
description: Update an existing JSON thread summary with new messages.
44
model:
5-
apiType: chat
6-
options:
5+
api: chat
6+
parameters:
77
temperature: 0.2
8-
additionalProperties:
9-
response_format:
10-
type: json_object
8+
response_format:
9+
type: json_object
1110
inputs:
1211
prior_summary:
1312
type: string

agent_memory_toolkit/prompts/user_summary.prompty

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
name: user_summary
33
description: Build a structured JSON user profile from one or more conversation threads.
44
model:
5-
apiType: chat
6-
options:
5+
api: chat
6+
parameters:
77
temperature: 0.2
8-
additionalProperties:
9-
response_format:
10-
type: json_object
8+
response_format:
9+
type: json_object
1110
inputs:
1211
transcript:
1312
type: string

agent_memory_toolkit/prompts/user_summary_update.prompty

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
name: user_summary_update
33
description: Update an existing JSON user profile with new conversation data.
44
model:
5-
apiType: chat
6-
options:
5+
api: chat
6+
parameters:
77
temperature: 0.2
8-
additionalProperties:
9-
response_format:
10-
type: json_object
8+
response_format:
9+
type: json_object
1110
inputs:
1211
prior_summary:
1312
type: string

0 commit comments

Comments
 (0)