🤖 What is Agent Execution?
Your Helium AI agents run in isolated Daytona sandboxes. This phase verifies the integration works correctly and sets up monitoring.
Your Helium AI agents run in isolated Daytona sandboxes. This phase verifies the integration works correctly and sets up monitoring.
Prerequisites
- Phases 1-4 completed
- Backend deployed and running
- Daytona account created
- Daytona API key obtained
Step 1: Verify Daytona Configuration
1.1
Access Daytona Dashboard
-
1Go to Daytona Dashboard
-
2Log in with your credentials
-
3Click "Settings" or "API Keys"
-
4Verify your API key is active
-
5Copy the API key (if you need to update it)
1.2
Verify API Key in AWS Secrets Manager
AWS Console Navigation
AWS Console
→
Search "Secrets Manager"
→
Secrets Manager
-
1Find secret: helium/backend/production
-
2Click on the secret name
-
3Click "Retrieve secret value"
-
4Verify these keys exist:• DAYTONA_API_KEY
• DAYTONA_SERVER_URL
• DAYTONA_TARGET -
5If missing, click "Edit" and add them
Step 2: Test Agent Execution
2.1
Test from Your Application
Since agent execution happens through your application, test it directly:
-
1Go to your frontend: https://he2.ai
-
2Log in to your account
-
3Create a new agent or use existing agent
-
4Send a test message: "Create a simple Python script"
-
5Verify the agent responds and executes the task
✅ Success Indicators:
• Agent responds within 5-10 seconds
• Sandbox environment is created
• Code execution completes
• Results are returned to frontend
• Agent responds within 5-10 seconds
• Sandbox environment is created
• Code execution completes
• Results are returned to frontend
Step 3: Set Up CloudWatch Monitoring
3.1
Create CloudWatch Dashboard
AWS Console Navigation
AWS Console
→
Search "CloudWatch"
→
CloudWatch
→
Dashboards
-
1Click "Create dashboard"
-
2Dashboard name: helium-agent-monitoring
-
3Click "Create dashboard"
-
4Click "Add widget"
-
5Select Line widget type
-
6Data source: Metrics
-
7Add metrics for ECS service (CPU, Memory, Task count)
-
8Click "Create widget"
3.2
Set Up CloudWatch Alarms
AWS Console Navigation
CloudWatch
→
Alarms
→
All alarms
-
1Click "Create alarm"
-
2Click "Select metric"
-
3Browse: ECS → ClusterName, ServiceName
-
4Select CPUUtilization metric
-
5Click "Select metric"
-
6Conditions:• Threshold type: Static
• Whenever CPUUtilization is: Greater than
• Than: 80 -
7Click "Next"
-
8Configure SNS notification (optional)
-
9Alarm name: helium-backend-high-cpu
-
10Click "Create alarm"
Recommended Alarms
Create alarms for:
• High CPU (>80%)
• High Memory (>80%)
• Task count (< desired count)
• API errors (>5% error rate)
• High CPU (>80%)
• High Memory (>80%)
• Task count (< desired count)
• API errors (>5% error rate)
Step 3: Monitor Agent Logs
3.1
Access CloudWatch Logs
AWS Console Navigation
CloudWatch
→
Logs
→
Log groups
-
1Find log group: /ecs/helium-backend
-
2Click on the log group
-
3Click on any log stream to view logs
-
4Look for agent execution logsSearch for keywords like "agent", "daytona", "sandbox"
Using CloudWatch Logs Insights
Click "Logs Insights" in the left sidebar to run queries:
fields @timestamp, @message
| filter @message like /agent/
| sort @timestamp desc
| limit 20
3.2
Monitor in Daytona Dashboard
-
1Go back to Daytona Dashboard
-
2Click "Workspaces" or "Sandboxes"
-
3View active sandboxes created by your agents
-
4Check sandbox status and resource usage
-
5Review execution logs in Daytona
Phase 5 Verification Checklist
- Daytona API key verified in Secrets Manager
- Test agent execution successful
- Sandbox created and running
- Agent responds to commands
- CloudWatch dashboard created
- CloudWatch alarms configured
- Logs visible in CloudWatch
- Daytona dashboard shows active sandboxes
- No errors in application logs
✅ Phase 5 Complete! Agent execution is verified and monitored. Ready for Phase 6!