feat(gen-ai): add optional memory attributes (store.name, scope, similarity.threshold, expiration_date)#3569
Draft
nagkumar91 wants to merge 2 commits intoopen-telemetry:mainfrom
Draft
Conversation
Add semantic conventions for GenAI memory operations — spans and attributes for memory store lifecycle and memory CRUD. New spans: create_memory_store, search_memory, update_memory, delete_memory, delete_memory_store. New attributes: gen_ai.memory.store.id, gen_ai.memory.store.name, gen_ai.memory.record.id, gen_ai.memory.scope (enum: user, conversation, agent, team), gen_ai.memory.record.content, gen_ai.memory.query.text, gen_ai.memory.search.result.count, gen_ai.memory.search.similarity.threshold, gen_ai.memory.expiration_date, gen_ai.memory.importance. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…larity.threshold, expiration_date) Add extended memory attributes split from PR open-telemetry#3250 per reviewer feedback: - gen_ai.memory.store.name (opt_in on all spans) - gen_ai.memory.scope (enum: user, conversation, agent, team) - gen_ai.memory.search.similarity.threshold (conditionally_required) - gen_ai.memory.expiration_date (conditionally_required) - gen_ai.agent.id on memory spans (conditionally_required) - gen_ai.conversation.id on memory spans (conditionally_required) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
d473fe2 to
d0a5d42
Compare
|
This PR has been labeled as stale due to lack of activity. It will be automatically closed if there is no further activity over the next 7 days. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add extended memory attributes split from PR #3250 per reviewer feedback. These are attributes that have 2-3 framework support and benefit from separate review.
Depends on: #3250 (memory operations base)
New Attributes
gen_ai.memory.store.namegen_ai.memory.scopeuser,conversation,agent,teamgen_ai.memory.search.similarity.thresholdgen_ai.memory.expiration_dateExisting Attributes Added to Memory Spans
gen_ai.agent.idgen_ai.conversation.idSpan Placement
store.namescopesimilarity.thresholdexpiration_dateagent.idconversation.id