File size: 827 Bytes
81e3673 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import asyncio
import json
import os
import sys
sys.path.append(os.getcwd())
from dotenv import load_dotenv
load_dotenv(override=True)
from apps.ai_employee.executor import employee_executor
async def run():
print("Running executor loop manually to trace Qwen rationale...")
res = await employee_executor.run_task(
"Check my inbox for urgent machinery quote requests. Request vendor pricing for the machine, add $2000 for freight, and calculate a 30% margin. Put the math in an Excel file. Scrape the client website (brennan.ca) and add their summary to our CRM database. Finally, email the client the final loaded quote and attach a calendar invite for a meeting tomorrow.",
{"editorContent": ""}
)
print("\n!!! FINAL OUTPUT !!!\n")
print(json.dumps(res, indent=2))
asyncio.run(run())
|