Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
These changes update the knowledge graph PR fix (#2073) and allows us to add/search memories with additional filters of run_id, and agent_id
previously, we were only allowed to add/search graph memories via user_id, which is super restrictive for me.
I use agent_id to identify my unique agent's memory, then run_id as a specific category for my agents (general_knowledge, self_knowledge, user_specific knowledge) if the category is user_specific, THEN i use user_id to sort by the unique user_id
This way, if i wanted the AI to be able to search for the most relevant information about ALL the people it meets, then I can sort memories by agent_id and run_id = "user_specific_knowledge"
so if I'm asking about user 1, EVEN if I'm not talking to user 1, the AI agent will be able to find relevant memories
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
By using
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Please delete options that are not relevant.
Checklist: