From d8796277b0d8f07597731f1f7f4b67224185b128 Mon Sep 17 00:00:00 2001 From: Abhay Singh Date: Fri, 17 Jul 2026 14:49:10 +0530 Subject: [PATCH] fix(agent-framework): restore importability on current agent-framework-core releases (#1281) --- .../src/supermemory_agent_framework/context_provider.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/agent-framework-python/src/supermemory_agent_framework/context_provider.py b/packages/agent-framework-python/src/supermemory_agent_framework/context_provider.py index 9069630e..5359426e 100644 --- a/packages/agent-framework-python/src/supermemory_agent_framework/context_provider.py +++ b/packages/agent-framework-python/src/supermemory_agent_framework/context_provider.py @@ -9,7 +9,13 @@ following the same pattern as the built-in Mem0 integration. from typing import Any, Literal, Optional -from agent_framework import BaseContextProvider +try: + from agent_framework import BaseContextProvider +except ImportError: + # Renamed in agent-framework-core 1.0.0 stable; the interface is + # unchanged (source_id __init__, before_run/after_run hooks with + # identical keyword-only signatures). + from agent_framework import ContextProvider as BaseContextProvider from .connection import AgentSupermemory from .utils import (