diff --git a/__pycache__/agent.cpython-312.pyc b/__pycache__/agent.cpython-312.pyc index 9eda62a..788a2da 100644 Binary files a/__pycache__/agent.cpython-312.pyc and b/__pycache__/agent.cpython-312.pyc differ diff --git a/agent.py b/agent.py index e7b1480..3deb622 100644 --- a/agent.py +++ b/agent.py @@ -46,11 +46,11 @@ async def parse_page(content: str, entry_type: str = "opportunity"): agent = opportunity_agent if entry_type == "opportunity" else event_agent # 1. Run the agent (which returns a string) - print(f"Parsing {entry_type}...") + print(f"[DEBUG] Generating {entry_type}...") # print(content) result = await agent.run(content) raw_text = result.output - + print(f"[DEBUG] Generated {entry_type}.") # 2. Clean the string # We remove the markdown decorators so json.loads doesn't crash clean_json = raw_text.replace("```json", "").replace("```", "").strip() diff --git a/bot.py b/bot.py index 1ece4eb..f8ed51c 100644 --- a/bot.py +++ b/bot.py @@ -2,8 +2,8 @@ import os import asyncio import sys import concurrent.futures - import logging + from contextlib import suppress from dotenv import load_dotenv from functools import wraps