Skip to content

Commit 958a252

Browse files
abrookinsclaude
andcommitted
Fix workspace configuration and ULID usage
- Configure agent-memory-client as workspace member - Fix ULID field generation in LenientMemoryRecord model - Note: Some tests need updating for new MemoryRecord API structure 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6f4b109 commit 958a252

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

agent_memory_server/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,4 +383,4 @@ class MemoryPromptResponse(BaseModel):
383383
class LenientMemoryRecord(MemoryRecord):
384384
"""A memory record that can be created without an ID"""
385385

386-
id: str | None = Field(default=str(ulid.ULID()))
386+
id: str | None = Field(default_factory=lambda: str(ulid.new()))

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

5+
[tool.uv.workspace]
6+
members = ["agent-memory-client"]
7+
8+
[tool.uv.sources]
9+
agent-memory-client = { workspace = true }
10+
511
[project]
612
name = "agent-memory-server"
713
dynamic = ["version"]
@@ -12,7 +18,7 @@ license = { text = "MIT" }
1218
authors = [{ name = "Andrew Brookins", email = "[email protected]" }]
1319
dependencies = [
1420
"accelerate>=1.6.0",
15-
"agent-memory-client @ git+https://github.com/username/agent-memory-client@main",
21+
"agent-memory-client",
1622
"anthropic>=0.15.0",
1723
"bertopic<0.17.0,>=0.16.4",
1824
"fastapi>=0.115.11",

0 commit comments

Comments
 (0)