Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async def main():
extractor = await service.create_extractor_async(
store_id=os.environ["STORE_ID"],
name="Travel guide facts", memory_type="document_fact",
source="documents", strategy="custom",
source="DOCUMENTS", strategy="CUSTOM",
prompt="Extract useful travel facts. Keep each fact in one memory.",
)
print(extractor.model_dump_json(by_alias=True))
Expand All @@ -282,7 +282,7 @@ async function main() {
});
console.dir(await service.createExtractor(STORE_ID, {
name: "Travel guide facts", memoryType: "document_fact",
source: "documents", strategy: "custom",
source: "DOCUMENTS", strategy: "CUSTOM",
prompt: "Extract useful travel facts. Keep each fact in one memory.",
}), { depth: null });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ async def main():
api_key=os.environ["API_KEY"],
async_client=transport,
) as memory:
page = await memory.list_session_summaries_async(
filter_owner_id=os.environ["OWNER_ID"], limit=20,
page = await memory.list_sessions_async(
owner_id=os.environ["OWNER_ID"], limit=20,
)
print(page.model_dump_json(by_alias=True))

Expand All @@ -270,7 +270,7 @@ async function main() {
const memory = new AgentMemory({
serverURL: AGENT_MEMORY_URL, storeId: STORE_ID, apiKey: API_KEY, httpClient,
});
console.dir(await memory.listSessionSummaries(20, undefined, OWNER_ID), { depth: null });
console.dir(await memory.listSessions(20, undefined, OWNER_ID), { depth: null });
}

main().catch((error) => { console.error(error instanceof Error ? error.message : "Request failed"); process.exitCode = 1; });
Expand Down
Loading