Testing the Agent
Step 1
Set the run schedule to 5 mins for running emails quickly
export DAILY_NOTIFICATION_CRON="*/5 * * * *"
Launch the service
source ~/venvs/tc-agent/bin/activate && export SUPABASE_ANON_KEY=<key> && export MISTRAL_API_KEY=<key> && export SUPABASE_URL=<url> && export SENDGRID_API_KEY=<key> && uvicorn app:app --host 0.0.0.0 --port 8000
2025-08-04 21:01:39 - utils.logger - INFO - Application logging configured
2025-08-04 21:01:39 - database.supabase_manager - INFO - SupabaseManager initialized successfully
2025-08-04 21:01:39 - database.supabase_manager - INFO - SupabaseManager initialized successfully
2025-08-04 21:01:39 - database.supabase_manager - INFO - SupabaseManager initialized successfully
2025-08-04 21:01:39 - database.supabase_manager - INFO - SupabaseManager initialized successfully
INFO: Started server process [31029]
INFO: Waiting for application startup.
2025-08-04 21:01:39 - utils.logger - INFO - Starting up Topcoder Challenge Steward Agent
2025-08-04 21:01:39 - utils.logger - INFO - Initializing daily challenge scheduler...
2025-08-04 21:01:39 - apscheduler.scheduler - INFO - Scheduler started
2025-08-04 21:01:39 - apscheduler.scheduler - INFO - Added job "Daily Challenge Notifications" to job store "default"
2025-08-04 21:01:39 - services.scheduler - INFO - Daily notification job added - cron schedule: */5 * * * * UTC
2025-08-04 21:01:39 - utils.logger - INFO - 🚀 Topcoder Challenge Steward Agent is running at http://localhost:8000/
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
Step 2
Login to UI and put preferences
Step 3
See dry-run result
Step 4
Register for email.
Step 5
The app runs the scheduler in around 5 mins
2025-08-04 21:10:00 - apscheduler.executors.default - INFO - Running job "Daily Challenge Notifications (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*/5'], next run at: 2025-08-04 19:15:00 UTC)" (scheduled at 2025-08-04 19:10:00+00:00)
2025-08-04 21:10:00 - services.scheduler - INFO - Starting daily challenge notifications...
2025-08-04 21:10:00 - httpx - INFO - HTTP Request: GET https://xmazwwojmtotvxnuquru.supabase.co/rest/v1/users?select=%2A&active=eq.True "HTTP/2 200 OK"
2025-08-04 21:10:00 - services.scheduler - INFO - Found 1 active users
2025-08-04 21:10:00 - services.scheduler - INFO - Processing user: kavukcu.tolga@gmail.com
2025-08-04 21:10:00 - services.challenge_agent - INFO - Running challenge agent for user kavukcu.tolga@gmail.com with preferences: I am interested in AI Challanges
2025-08-04 21:10:00 - services.challenge_service - INFO - Processing challenges for user kavukcu.tolga@gmail.com with preferences: I am interested in AI Challanges
2025-08-04 21:10:00 - services.mcp_service - INFO - Creating Topcoder MCP client for endpoint: https://api.topcoder-dev.com/v6/mcp/sse
2025-08-04 21:10:00 - httpx - INFO - HTTP Request: GET https://api.topcoder-dev.com/v6/mcp/sse "HTTP/1.1 200 OK"
2025-08-04 21:10:01 - httpx - INFO - HTTP Request: POST https://api.topcoder-dev.com/v6/mcp/messages?sessionId=632e0d0f-1b0e-4e1b-ab6a-8cf7a00715a6 "HTTP/1.1 202 Accepted"
2025-08-04 21:10:01 - httpx - INFO - HTTP Request: POST https://api.topcoder-dev.com/v6/mcp/messages?sessionId=632e0d0f-1b0e-4e1b-ab6a-8cf7a00715a6 "HTTP/1.1 202 Accepted"
2025-08-04 21:10:01 - httpx - INFO - HTTP Request: POST https://api.topcoder-dev.com/v6/mcp/messages?sessionId=632e0d0f-1b0e-4e1b-ab6a-8cf7a00715a6 "HTTP/1.1 202 Accepted"
2025-08-04 21:10:01 - services.mcp_service - INFO - Available Topcoder MCP tools: ['<strands.tools.mcp.mcp_agent_tool.MCPAgentTool object at 0x11d57fe50>', '<strands.tools.mcp.mcp_agent_tool.MCPAgentTool object at 0x11d57fee0>']
2025-08-04 21:10:02 - httpx - INFO - HTTP Request: POST https://api.mistral.ai/v1/chat/completions#stream "HTTP/1.1 200 OK"
Tool #1: query-tc-challenges
2025-08-04 21:10:02 - httpx - INFO - HTTP Request: POST https://api.topcoder-dev.com/v6/mcp/messages?sessionId=632e0d0f-1b0e-4e1b-ab6a-8cf7a00715a6 "HTTP/1.1 202 Accepted"
2025-08-04 21:10:11 - httpx - INFO - HTTP Request: POST https://api.mistral.ai/v1/chat/completions#stream "HTTP/1.1 200 OK"
Here are the relevant Topcoder challenges based on your preferences:
1. **Challenge**: New Platform Challenge - Development of an AI Chatbot for Healthcare Inquiries in Veteran App
- **Prize**: $15,197
- **Description**: Develop an AI-powered chatbot designed to assist veterans with healthcare-related inquiries within an existing app.
- **Registration Deadline**: 2024-07-11T10:05:06.853Z
- **Current Phase**: Review
- [View Challenge](https://qa.app-dev.topcoder.com/work/qC1mWqfg2aiiyj/talent-routes/details)
2. **Challenge**: New Platform Challenge - Development of an AI Chatbot for Student Inquiry Support
- **Prize**: $12,160
- **Description**: Build an AI-powered chatbot designed to assist students by addressing a wide range of student questions.
- **Registration Deadline**: 2024-07-10T07:53:32.669Z
- **Current Phase**: Review
- [View Challenge](https://develop.app-dev.topcoder.com/work/4bpdTvOkNfQdVf/talent-routes/details)
3. **Challenge**: New Platform Challenge - Development of AI Customer Support Chatbot for Mobile Gaming Portal
- **Prize**: $12,160
- **Description**: Create an AI-powered chatbot to provide customer support for a gaming portal accessible via mobile platforms.
- **Registration Deadline**: 2024-06-28T05:33:38.213Z
- **Current Phase**: Review
- [View Challenge](https://qa.app-dev.topcoder.com/work/1DPMjtC-tVaFgg/talent-routes/details)
4. **Challenge**: New Platform Challenge - Build an AI Chatchat_bot to Support a Gaming Portal
- **Prize**: $12,160
- **Description**: Develop an AI-powered chatbot to provide support for a gaming portal.
- **Registration Deadline**: 2024-07-10T05:26:41.897Z
- **Current Phase**: Review
- [View Challenge](https://qa.app-dev.topcoder.com/work/MTq1M77U0ZZA02/talent-routes/details)
5. **Challenge**: New Platform Challenge - Design and Prototype AI Chatbot for Gaming Portal Support
- **Prize**: $12,160
- **Description**: Design and prototype an AI-powered chatbot to support a gaming portal.
- **Registration Deadline**: 2024-06-28T04:39:16.621Z
- **Current Phase**: Review
2025-08-04 21:10:35 - services.challenge_service - INFO - Agent response for kavukcu.tolga@gmail.com: Here are the relevant Topcoder challenges based on your preferences:
1. **Challenge**: New Platform Challenge - Development of an AI Chatbot for Healthcare Inquiries in Veteran App
- **Prize**: $15,197
- **Description**: Develop an AI-powered chatbot designed to assist veterans with healthcare-related inquiries within an existing app.
- **Registration Deadline**: 2024-07-11T10:05:06.853Z
- **Current Phase**: Review
- [View Challenge](https://qa.app-dev.topcoder.com/work/qC1mWqfg2aiiyj/talent-routes/details)
2. **Challenge**: New Platform Challenge - Development of an AI Chatbot for Student Inquiry Support
- **Prize**: $12,160
- **Description**: Build an AI-powered chatbot designed to assist students by addressing a wide range of student questions.
- **Registration Deadline**: 2024-07-10T07:53:32.669Z
- **Current Phase**: Review
- [View Challenge](https://develop.app-dev.topcoder.com/work/4bpdTvOkNfQdVf/talent-routes/details)
3. **Challenge**: New Platform Challenge - Development of AI Customer Support Chatbot for Mobile Gaming Portal
- **Prize**: $12,160
- **Description**: Create an AI-powered chatbot to provide customer support for a gaming portal accessible via mobile platforms.
- **Registration Deadline**: 2024-06-28T05:33:38.213Z
- **Current Phase**: Review
- [View Challenge](https://qa.app-dev.topcoder.com/work/1DPMjtC-tVaFgg/talent-routes/details)
4. **Challenge**: New Platform Challenge - Build an AI Chatchat_bot to Support a Gaming Portal
- **Prize**: $12,160
- **Description**: Develop an AI-powered chatbot to provide support for a gaming portal.
- **Registration Deadline**: 2024-07-10T05:26:41.897Z
- **Current Phase**: Review
- [View Challenge](https://qa.app-dev.topcoder.com/work/MTq1M77U0ZZA02/talent-routes/details)
5. **Challenge**: New Platform Challenge - Design and Prototype AI Chatbot for Gaming Portal Support
- **Prize**: $12,160
- **Description**: Design and prototype an AI-powered chatbot to support a gaming portal.
- **Registration Deadline**: 2024-06-28T04:39:16.621Z
- **Current Phase**: Review
- [View Challenge](https://qa.app-dev.topcoder.com/work/O_TeG1L-iECwRo/talent-routes/details)
2025-08-04 21:10:36 - httpx - INFO - HTTP Request: POST https://xmazwwojmtotvxnuquru.supabase.co/rest/v1/agent_runs "HTTP/2 201 Created"
2025-08-04 21:10:36 - services.scheduler - INFO - User kavukcu.tolga@gmail.com: processing completed
2025-08-04 21:10:38 - services.scheduler - INFO - Daily notifications completed
2025-08-04 21:10:38 - apscheduler.executors.default - INFO - Job "Daily Challenge Notifications (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*/5'], next run at: 2025-08-04 19:15:00 UTC)" executed successfully
Step 6
Email recieved.




