mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
fix(agent-framework): restore importability on current agent-framework-core releases (#1281)
This commit is contained in:
parent
82c03a87ce
commit
d8796277b0
1 changed files with 7 additions and 1 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue