Skip to content

Commit

Permalink
Merge branch 'feat/stateless-models' of https://github.com/agno-agi/agno
Browse files Browse the repository at this point in the history
 into feat/stateless-models
  • Loading branch information
dirkbrnd committed Feb 11, 2025
2 parents d9244f8 + 24dfce6 commit cb0fa1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/agno/agno/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,8 @@ def get_session_data(self) -> Dict[str, Any]:
return session_data

def get_agent_session(self) -> AgentSession:
from time import time

"""Get an AgentSession object, which can be saved to the database"""
self.memory = cast(AgentMemory, self.memory)
self.session_id = cast(str, self.session_id)
Expand All @@ -1515,6 +1517,7 @@ def get_agent_session(self) -> AgentSession:
agent_data=self.get_agent_data(),
session_data=self.get_session_data(),
extra_data=self.extra_data,
created_at=int(time())
)

def load_agent_session(self, session: AgentSession):
Expand Down

0 comments on commit cb0fa1f

Please sign in to comment.