Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion veadk/memory/short_term_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ async def create_session(
app_name: str,
user_id: str,
session_id: str,
state: dict | None = None,
) -> Session | None:
Comment thread
mrcaidev marked this conversation as resolved.
"""Create or retrieve a user session.

Expand All @@ -151,6 +152,7 @@ async def create_session(
app_name (str): The name of the application associated with the session.
user_id (str): The unique identifier of the user.
session_id (str): The unique identifier of the session to be created or retrieved.
state (dict | None): The initial state of the session.

Comment thread
mrcaidev marked this conversation as resolved.
Returns:
Session | None: The retrieved or newly created `Session` object, or `None` if the session creation failed.
Expand All @@ -175,7 +177,7 @@ async def create_session(
return session
else:
return await self._session_service.create_session(
app_name=app_name, user_id=user_id, session_id=session_id
app_name=app_name, user_id=user_id, session_id=session_id, state=state
)
Comment thread
mrcaidev marked this conversation as resolved.
Comment thread
mrcaidev marked this conversation as resolved.

async def generate_profile(
Expand Down
Loading