Skip to content

Commit 0157569

Browse files
authored
feat: modify the get_session callback to be asynchronous (#341)
1 parent 643cfdb commit 0157569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

veadk/memory/short_term_memory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def wrap_get_session_with_callbacks(obj, callback_fn: Callable):
4141
get_session_fn = getattr(obj, "get_session")
4242

4343
@wraps(get_session_fn)
44-
def wrapper(*args, **kwargs):
45-
result = get_session_fn(*args, **kwargs)
44+
async def wrapper(*args, **kwargs):
45+
result = await get_session_fn(*args, **kwargs)
4646
callback_fn(result, *args, **kwargs)
4747
return result
4848

0 commit comments

Comments
 (0)