We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09a748c commit d2483ddCopy full SHA for d2483dd
text_2_sql/autogen/src/autogen_text_2_sql/state_store.py
@@ -15,8 +15,8 @@ class InMemoryStateStore(StateStore):
15
def __init__(self):
16
self.cache = TTLCache(maxsize=1000, ttl=4*60*60) # 4 hours
17
18
- def get_state(self, thread_id):
+ def get_state(self, thread_id: str) -> dict:
19
return self.cache.get(thread_id)
20
21
- def save_state(self, thread_id, state):
+ def save_state(self, thread_id: str, state: dict) -> None:
22
self.cache[thread_id] = state
0 commit comments