feat(memory): OCG-backed agent memory with auto-summarized save + hum…#298
Open
NicholasDCole wants to merge 1 commit into
Open
feat(memory): OCG-backed agent memory with auto-summarized save + hum…#298NicholasDCole wants to merge 1 commit into
NicholasDCole wants to merge 1 commit into
Conversation
…an feedback links Add OCGMemoryStore (a synchronous MemoryStore HTTP adapter over the OCG BFF) and wire long-term memory into the agent runtime: - Pre-run: relevant agent/user-scoped memories are retrieved and injected into a copy of the agent's instructions (never mutating the shared agent). - Post-run: the conversation is distilled by an internal summarizer sub-agent (structured MemorySummary output; reuses the agent's model unless memory_summary_model is set) and saved as a 'conversation:<session>' memory. Best-effort and recursion-guarded - never fails the primary run. - Feedback is human-only: the runtime hands a FeedbackEvent (distilled summary + signed good/bad capability URLs) to the agent's feedback_sink for out-of-band delivery (e.g. a Zendesk ticket). The URLs are never shown to the agent's LLM, so agents can only create and read memories. Adds Agent params semantic_memory/memory_summary_model/feedback_sink, the OCGMemoryStore.feedback_links() mint call, example 118, and unit tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
…an feedback links
Add OCGMemoryStore (a synchronous MemoryStore HTTP adapter over the OCG BFF) and wire long-term memory into the agent runtime:
Adds Agent params semantic_memory/memory_summary_model/feedback_sink, the OCGMemoryStore.feedback_links() mint call, example 118, and unit tests.