-
Notifications
You must be signed in to change notification settings - Fork 8
feat: expose graph edge metadata (caused_by, leads_to, timestamp) in memory_search #301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -195,7 +195,14 @@ export function createLibraVdbMemoryTools( | |||||||||
| name: "memory_search", | ||||||||||
| label: "Memory Search", | ||||||||||
| description: | ||||||||||
| "Search LibraVDB durable memory and session recall for prior work, decisions, dates, people, preferences, todos, or history. Call once per user question — after receiving results, use them directly. Do not re-call in the same turn. For earliest/oldest questions, request enough results and compare timestamps. If disabled=true, memory is unavailable.", | ||||||||||
| "Search LibraVDB durable memory and session recall for prior work, decisions, dates, people, preferences, todos, or history. Call once per user question — after receiving results, use them directly. Do not re-call in the same turn.\n\n" + | ||||||||||
| "Result fields: Each hit returns a score, snippet, path, source, and citation. When present in metadata, additional fields are surfaced:\n" + | ||||||||||
| "- kind: cognitive kind of the memory (identity, fact, preference, constraint, decision, episode). Filter input with the kind parameter.\n" + | ||||||||||
| "- signals: cognitive signal bitmask (deontic, identity, preference, factual, temporal). Filter input with the signals parameter.\n" + | ||||||||||
| "- caused_by: array of upstream causal event IDs (why this happened). Use memory_get with these IDs to walk backward through the causal chain.\n" + | ||||||||||
| "- leads_to: array of downstream procedural event IDs (what this caused). Use memory_get with these IDs to walk forward through the event DAG.\n" + | ||||||||||
|
Comment on lines
+202
to
+203
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't tell callers to pass graph IDs into Lines 202-203 describe Suggested wording- "- caused_by: array of upstream causal event IDs (why this happened). Use memory_get with these IDs to walk backward through the causal chain.\n" +
- "- leads_to: array of downstream procedural event IDs (what this caused). Use memory_get with these IDs to walk forward through the event DAG.\n" +
+ "- caused_by: array of upstream causal event IDs (why this happened). Use these IDs to correlate related memories or issue a targeted memory_search to walk backward through the causal chain.\n" +
+ "- leads_to: array of downstream procedural event IDs (what this caused). Use these IDs to correlate related memories or issue a targeted memory_search to walk forward through the event DAG.\n" +📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| "- timestamp: ISO 8601 UTC timestamp of when the memory was stored. Use to compare recency, establish temporal order, or answer 'when' questions.\n\n" + | ||||||||||
| "For earliest/oldest questions, request enough results and compare timestamps. If disabled=true, memory is unavailable.", | ||||||||||
| parameters: MEMORY_SEARCH_SCHEMA, | ||||||||||
| execute: async (_toolCallId, rawParams) => { | ||||||||||
| const params = asToolParamsRecord(rawParams); | ||||||||||
|
|
||||||||||
Uh oh!
There was an error while loading. Please reload this page.