Buckets:
| """ | |
| Database | |
| ======== | |
| Local SQLite for agent sessions. | |
| Stored at ``data/demo.db`` next to this cookbook (gitignored). | |
| """ | |
| from pathlib import Path | |
| from agno.db.sqlite import SqliteDb | |
| DB_ID = "demo-db" | |
| DB_FILE = str(Path(__file__).parent / "data" / "demo.db") | |
| # Ensure the data directory exists before SqliteDb opens the file. | |
| Path(DB_FILE).parent.mkdir(parents=True, exist_ok=True) | |
| def get_db() -> SqliteDb: | |
| """Local SQLite database for agent sessions.""" | |
| return SqliteDb(id=DB_ID, db_file=DB_FILE) | |
Xet Storage Details
- Size:
- 514 Bytes
- Xet hash:
- fc5bd80e51d741b5f6ddd8dd83d2b41a5df065c761f1a9ac7518cc0727caa285
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.