add other logs for debugging
Browse files
agent_manager/__init__.py
CHANGED
|
@@ -165,6 +165,7 @@ def get_or_create_agent(session, chat_session):
|
|
| 165 |
set_session_agent(session_key)
|
| 166 |
|
| 167 |
cache_key = f"chat_session_{session_key}"
|
|
|
|
| 168 |
# Check if session key exists in cache
|
| 169 |
cached_chat_session = cache.get(cache_key)
|
| 170 |
|
|
@@ -180,6 +181,7 @@ def get_or_create_agent(session, chat_session):
|
|
| 180 |
# Session key doesn't exist, add it to cache
|
| 181 |
cache.set(cache_key, chat_session)
|
| 182 |
|
|
|
|
| 183 |
return SESSION_AGENTS.get(session_key)
|
| 184 |
|
| 185 |
|
|
|
|
| 165 |
set_session_agent(session_key)
|
| 166 |
|
| 167 |
cache_key = f"chat_session_{session_key}"
|
| 168 |
+
print(f"chat_session_{session_key}")
|
| 169 |
# Check if session key exists in cache
|
| 170 |
cached_chat_session = cache.get(cache_key)
|
| 171 |
|
|
|
|
| 181 |
# Session key doesn't exist, add it to cache
|
| 182 |
cache.set(cache_key, chat_session)
|
| 183 |
|
| 184 |
+
print(SESSION_AGENTS)
|
| 185 |
return SESSION_AGENTS.get(session_key)
|
| 186 |
|
| 187 |
|