Files
agentmsgs/examples/demo.py
T
lda Verified 726f0c8b2a log + cli idk
i need some kind of notif system
2026-09-06 11:38:29 +07:00

18 lines
414 B
Python

from pathlib import Path
from agentmsgs.core.app import App
from agentmsgs.stores.sqlite import SQLiteStore
def main():
app = App(store=SQLiteStore(Path.home() / ".agentmsgs.db"))
alice = app.get_or_create_agent("Alice")
bob = app.get_or_create_agent("Bob")
t = app.create_thread(alice, bob)
app.append(t.id, alice, "Hello")
print(app.poll(t.id))
if __name__ == "__main__":
main()