fix: cap diary_read query and update stale comment
This commit is contained in:
@@ -407,6 +407,7 @@ def tool_diary_read(agent_name: str, last_n: int = 10):
|
|||||||
results = col.get(
|
results = col.get(
|
||||||
where={"$and": [{"wing": wing}, {"room": "diary"}]},
|
where={"$and": [{"wing": wing}, {"room": "diary"}]},
|
||||||
include=["documents", "metadatas"],
|
include=["documents", "metadatas"],
|
||||||
|
limit=10000,
|
||||||
)
|
)
|
||||||
|
|
||||||
if not results["ids"]:
|
if not results["ids"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user