Agent can create todo by op_list

This commit is contained in:
Liu Zhicong
2023-11-03 01:16:32 -07:00
parent 5eced91432
commit 1fbe5ae1ea
6 changed files with 237 additions and 53 deletions
+4 -2
View File
@@ -1,6 +1,7 @@
from typing import List
import toml
import time
from datetime import datetime
class Contact:
def __init__(self, name, phone=None, email=None, telegram=None,added_by=None, tags=[], notes=""):
self.name = name
@@ -21,7 +22,8 @@ class Contact:
"added_by": self.added_by,
"tags": self.tags,
"notes": self.notes
"notes": self.notes,
"now" : datetime.now().strftime('%Y-%m-%d %H:%M:%S')
}
@classmethod