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 9069630ee..5359426e2 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 @@ 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 (