ciyidogan commited on
Commit
6ce4a25
·
verified ·
1 Parent(s): f923942

Update session.py

Browse files
Files changed (1) hide show
  1. session.py +5 -7
session.py CHANGED
@@ -18,12 +18,11 @@ class Session:
18
 
19
  MAX_CHAT_HISTORY: int = field(default=20, init=False, repr=False)
20
 
21
- def __init__(self, session_id: str, project_name: str, version_no: int, is_realtime: bool = False, locale: str = "tr"):
22
- self.session_id = session_id
23
- self.project_name = project_name
24
- self.version_no = version_no
25
- self.is_realtime = is_realtime
26
- self.locale = locale
27
 
28
  # State management - string for better debugging
29
  state: str = "idle" # idle | collect_params | call_api | humanize
@@ -181,7 +180,6 @@ def generate_secure_session_id() -> str:
181
 
182
  return f"session_{session_id[:32]}"
183
 
184
-
185
  class SessionStore:
186
  """In-memory session store (to be replaced with Redis)"""
187
 
 
18
 
19
  MAX_CHAT_HISTORY: int = field(default=20, init=False, repr=False)
20
 
21
+ session_id: str
22
+ project_name: str
23
+ version_no: int
24
+ is_realtime: Optional[bool] = False
25
+ locale: Optional[str] = "tr"
 
26
 
27
  # State management - string for better debugging
28
  state: str = "idle" # idle | collect_params | call_api | humanize
 
180
 
181
  return f"session_{session_id[:32]}"
182
 
 
183
  class SessionStore:
184
  """In-memory session store (to be replaced with Redis)"""
185