import asyncio
from sxth_mind import Mind
from examples.sales import SalesAdapter
async def main():
mind = Mind(adapter=SalesAdapter())
# Working a deal
await mind.chat("rep_1", "Just had a great call with Acme Corp", project_id="deal_acme")
await mind.chat("rep_1", "Sent them a proposal yesterday", project_id="deal_acme")
await mind.chat("rep_1", "No response yet, should I follow up?", project_id="deal_acme")
# Check state
state = await mind.get_state("rep_1", project_id="deal_acme")
print(f"Stage: {state['project_mind']['journey_stage']}")
print(f"Patterns: {state['user_mind']['patterns']}")
asyncio.run(main())