mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 20:20:42 +00:00
short memory ids
This commit is contained in:
parent
d2ec07c6ed
commit
05a0803cb7
2 changed files with 13 additions and 2 deletions
4
python/helpers/guids.py
Normal file
4
python/helpers/guids.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import random, string
|
||||
|
||||
def generate_id(length: int = 8) -> str:
|
||||
return "".join(random.choices(string.ascii_letters + string.digits, k=length))
|
||||
Loading…
Add table
Add a link
Reference in a new issue