from upsonic.storage import Memory, SqliteStorage
# Summary memory with model
memory = Memory(
storage=SqliteStorage(sessions_table_name="sessions", profiles_table_name="profiles"),
session_id="session_002",
summary_memory=True,
model="openai/gpt-4o-mini" # Model for generating summaries
)
# Combined with conversation memory
memory = Memory(
storage=SqliteStorage(sessions_table_name="sessions", profiles_table_name="profiles"),
session_id="session_002",
full_session_memory=True,
summary_memory=True,
model="openai/gpt-4o-mini"
)