praisonAI 2.3.67__tar.gz → 2.3.69__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {praisonai-2.3.67 → praisonai-2.3.69}/PKG-INFO +11 -54
- {praisonai-2.3.67 → praisonai-2.3.69}/PraisonAI.egg-info/PKG-INFO +11 -54
- {praisonai-2.3.67 → praisonai-2.3.69}/README.md +10 -53
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/agent_scheduler.py +129 -1
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/main.py +1 -1
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/deploy.py +1 -1
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/scheduler/agent_scheduler.py +37 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/scheduler/daemon_manager.py +4 -3
- praisonai-2.3.69/praisonai/version.py +1 -0
- praisonai-2.3.67/praisonai/version.py +0 -1
- {praisonai-2.3.67 → praisonai-2.3.69}/PraisonAI.egg-info/SOURCES.txt +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/PraisonAI.egg-info/dependency_links.txt +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/PraisonAI.egg-info/entry_points.txt +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/PraisonAI.egg-info/requires.txt +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/PraisonAI.egg-info/top_level.txt +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/__main__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/agent_scheduler.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/agents_generator.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/api/call.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/auto.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/chainlit_ui.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/at_mentions.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/auto_memory.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/autonomy_mode.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/base.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/cost_tracker.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/external_agents.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/fast_context.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/flow_display.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/git_integration.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/guardrail.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/handoff.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/image.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/interactive_tui.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/knowledge.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/mcp.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/message_queue.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/metrics.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/n8n.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/repo_map.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/router.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/sandbox_executor.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/session.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/slash_commands.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/telemetry.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/todo.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/tools.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/features/workflow.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/cli/schedule_cli.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/agent_tools.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/diff/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/diff/diff_strategy.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/tools/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/tools/apply_diff.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/tools/execute_command.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/tools/list_files.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/tools/read_file.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/tools/search_replace.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/tools/write_file.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/utils/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/utils/file_utils.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/utils/ignore_utils.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/code/utils/text_utils.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/inbuilt_tools/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/inbuilt_tools/autogen_tools.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/inc/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/inc/config.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/inc/models.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/integrations/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/integrations/base.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/integrations/claude_code.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/integrations/codex_cli.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/integrations/cursor_cli.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/integrations/gemini_cli.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/profiler.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/scheduler/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/scheduler/base.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/scheduler/state_manager.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/scheduler/yaml_loader.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/scheduler.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/setup/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/setup/build.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/setup/post_install.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/setup/setup_conda_env.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/setup.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/test.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/train.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/train_vision.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/agents.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/callbacks.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/chat.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/code.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/colab.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/colab_chainlit.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/components/aicoder.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/context.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/database_config.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/db.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/realtime.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/realtimeclient/__init__.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/realtimeclient/tools.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/ui/sql_alchemy.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/praisonai/upload_vision.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/pyproject.toml +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/setup.cfg +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/tests/test.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/tests/test_agents_playbook.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/tests/test_approval_system.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/tests/test_basic.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/tests/test_cli_features.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/tests/test_custom_tools_fix.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/tests/test_double_api_fix.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/tests/test_n8n_integration.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/tests/test_phase2_refactor.py +0 -0
- {praisonai-2.3.67 → praisonai-2.3.69}/tests/test_runner.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PraisonAI
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.69
|
|
4
4
|
Summary: PraisonAI is an AI Agents Framework with Self Reflection. PraisonAI application combines PraisonAI Agents, AutoGen, and CrewAI into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration.
|
|
5
5
|
Author: Mervin Praison
|
|
6
6
|
License: MIT
|
|
@@ -1343,62 +1343,19 @@ praisonai "Complex task" --metrics --planning
|
|
|
1343
1343
|
|
|
1344
1344
|
### Scheduler CLI:
|
|
1345
1345
|
|
|
1346
|
-
Run agents 24/7 with built-in safety features. Two modes available:
|
|
1347
|
-
|
|
1348
|
-
**Direct Prompt Mode (Simple):**
|
|
1349
|
-
```bash
|
|
1350
|
-
# No YAML needed - just provide your task
|
|
1351
|
-
praisonai schedule "Check AI news and summarize" --interval hourly
|
|
1352
|
-
|
|
1353
|
-
# With options
|
|
1354
|
-
praisonai schedule "Monitor server logs" \
|
|
1355
|
-
--interval "*/30m" \
|
|
1356
|
-
--timeout 120 \
|
|
1357
|
-
--max-cost 2.00 \
|
|
1358
|
-
--verbose
|
|
1359
|
-
```
|
|
1360
|
-
|
|
1361
|
-
**YAML Mode (Advanced):**
|
|
1362
1346
|
```bash
|
|
1363
|
-
|
|
1364
|
-
praisonai schedule
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
praisonai schedule
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
#
|
|
1373
|
-
```
|
|
1374
|
-
|
|
1375
|
-
**agents.yaml with schedule:**
|
|
1376
|
-
```yaml
|
|
1377
|
-
framework: praisonai
|
|
1378
|
-
|
|
1379
|
-
agents:
|
|
1380
|
-
- name: "AI News Monitor"
|
|
1381
|
-
instructions: "Search and summarize AI news"
|
|
1382
|
-
tools:
|
|
1383
|
-
- search_tool
|
|
1384
|
-
|
|
1385
|
-
task: "Search for latest AI news"
|
|
1386
|
-
|
|
1387
|
-
schedule:
|
|
1388
|
-
interval: "hourly" # hourly, daily, */30m, */6h
|
|
1389
|
-
max_retries: 3 # Retry on failure
|
|
1390
|
-
run_immediately: true # Run once on start
|
|
1391
|
-
timeout: 60 # Max 60s per execution
|
|
1392
|
-
max_cost: 1.00 # Stop after $1.00 spent
|
|
1347
|
+
praisonai schedule start <name> "task" --interval hourly
|
|
1348
|
+
praisonai schedule list
|
|
1349
|
+
praisonai schedule logs <name> [--follow]
|
|
1350
|
+
praisonai schedule stop <name>
|
|
1351
|
+
praisonai schedule restart <name>
|
|
1352
|
+
praisonai schedule delete <name>
|
|
1353
|
+
praisonai schedule describe <name>
|
|
1354
|
+
praisonai schedule save <name> [file.yaml]
|
|
1355
|
+
praisonai schedule "task" --interval hourly # foreground mode
|
|
1356
|
+
praisonai schedule agents.yaml # foreground mode
|
|
1393
1357
|
```
|
|
1394
1358
|
|
|
1395
|
-
**Features:**
|
|
1396
|
-
- ⏱️ Timeout protection (prevent runaway executions)
|
|
1397
|
-
- 💰 Cost monitoring with budget limits
|
|
1398
|
-
- 📊 Real-time statistics (success rate, cost, runtime)
|
|
1399
|
-
- 🔄 Automatic retry with exponential backoff
|
|
1400
|
-
- 🛡️ Auto-stops when budget reached
|
|
1401
|
-
|
|
1402
1359
|
### Image Processing CLI:
|
|
1403
1360
|
```bash
|
|
1404
1361
|
# Process images with vision-based tasks
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PraisonAI
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.69
|
|
4
4
|
Summary: PraisonAI is an AI Agents Framework with Self Reflection. PraisonAI application combines PraisonAI Agents, AutoGen, and CrewAI into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration.
|
|
5
5
|
Author: Mervin Praison
|
|
6
6
|
License: MIT
|
|
@@ -1343,62 +1343,19 @@ praisonai "Complex task" --metrics --planning
|
|
|
1343
1343
|
|
|
1344
1344
|
### Scheduler CLI:
|
|
1345
1345
|
|
|
1346
|
-
Run agents 24/7 with built-in safety features. Two modes available:
|
|
1347
|
-
|
|
1348
|
-
**Direct Prompt Mode (Simple):**
|
|
1349
|
-
```bash
|
|
1350
|
-
# No YAML needed - just provide your task
|
|
1351
|
-
praisonai schedule "Check AI news and summarize" --interval hourly
|
|
1352
|
-
|
|
1353
|
-
# With options
|
|
1354
|
-
praisonai schedule "Monitor server logs" \
|
|
1355
|
-
--interval "*/30m" \
|
|
1356
|
-
--timeout 120 \
|
|
1357
|
-
--max-cost 2.00 \
|
|
1358
|
-
--verbose
|
|
1359
|
-
```
|
|
1360
|
-
|
|
1361
|
-
**YAML Mode (Advanced):**
|
|
1362
1346
|
```bash
|
|
1363
|
-
|
|
1364
|
-
praisonai schedule
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
praisonai schedule
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
#
|
|
1373
|
-
```
|
|
1374
|
-
|
|
1375
|
-
**agents.yaml with schedule:**
|
|
1376
|
-
```yaml
|
|
1377
|
-
framework: praisonai
|
|
1378
|
-
|
|
1379
|
-
agents:
|
|
1380
|
-
- name: "AI News Monitor"
|
|
1381
|
-
instructions: "Search and summarize AI news"
|
|
1382
|
-
tools:
|
|
1383
|
-
- search_tool
|
|
1384
|
-
|
|
1385
|
-
task: "Search for latest AI news"
|
|
1386
|
-
|
|
1387
|
-
schedule:
|
|
1388
|
-
interval: "hourly" # hourly, daily, */30m, */6h
|
|
1389
|
-
max_retries: 3 # Retry on failure
|
|
1390
|
-
run_immediately: true # Run once on start
|
|
1391
|
-
timeout: 60 # Max 60s per execution
|
|
1392
|
-
max_cost: 1.00 # Stop after $1.00 spent
|
|
1347
|
+
praisonai schedule start <name> "task" --interval hourly
|
|
1348
|
+
praisonai schedule list
|
|
1349
|
+
praisonai schedule logs <name> [--follow]
|
|
1350
|
+
praisonai schedule stop <name>
|
|
1351
|
+
praisonai schedule restart <name>
|
|
1352
|
+
praisonai schedule delete <name>
|
|
1353
|
+
praisonai schedule describe <name>
|
|
1354
|
+
praisonai schedule save <name> [file.yaml]
|
|
1355
|
+
praisonai schedule "task" --interval hourly # foreground mode
|
|
1356
|
+
praisonai schedule agents.yaml # foreground mode
|
|
1393
1357
|
```
|
|
1394
1358
|
|
|
1395
|
-
**Features:**
|
|
1396
|
-
- ⏱️ Timeout protection (prevent runaway executions)
|
|
1397
|
-
- 💰 Cost monitoring with budget limits
|
|
1398
|
-
- 📊 Real-time statistics (success rate, cost, runtime)
|
|
1399
|
-
- 🔄 Automatic retry with exponential backoff
|
|
1400
|
-
- 🛡️ Auto-stops when budget reached
|
|
1401
|
-
|
|
1402
1359
|
### Image Processing CLI:
|
|
1403
1360
|
```bash
|
|
1404
1361
|
# Process images with vision-based tasks
|
|
@@ -1246,62 +1246,19 @@ praisonai "Complex task" --metrics --planning
|
|
|
1246
1246
|
|
|
1247
1247
|
### Scheduler CLI:
|
|
1248
1248
|
|
|
1249
|
-
Run agents 24/7 with built-in safety features. Two modes available:
|
|
1250
|
-
|
|
1251
|
-
**Direct Prompt Mode (Simple):**
|
|
1252
|
-
```bash
|
|
1253
|
-
# No YAML needed - just provide your task
|
|
1254
|
-
praisonai schedule "Check AI news and summarize" --interval hourly
|
|
1255
|
-
|
|
1256
|
-
# With options
|
|
1257
|
-
praisonai schedule "Monitor server logs" \
|
|
1258
|
-
--interval "*/30m" \
|
|
1259
|
-
--timeout 120 \
|
|
1260
|
-
--max-cost 2.00 \
|
|
1261
|
-
--verbose
|
|
1262
|
-
```
|
|
1263
|
-
|
|
1264
|
-
**YAML Mode (Advanced):**
|
|
1265
1249
|
```bash
|
|
1266
|
-
|
|
1267
|
-
praisonai schedule
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
praisonai schedule
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
#
|
|
1276
|
-
```
|
|
1277
|
-
|
|
1278
|
-
**agents.yaml with schedule:**
|
|
1279
|
-
```yaml
|
|
1280
|
-
framework: praisonai
|
|
1281
|
-
|
|
1282
|
-
agents:
|
|
1283
|
-
- name: "AI News Monitor"
|
|
1284
|
-
instructions: "Search and summarize AI news"
|
|
1285
|
-
tools:
|
|
1286
|
-
- search_tool
|
|
1287
|
-
|
|
1288
|
-
task: "Search for latest AI news"
|
|
1289
|
-
|
|
1290
|
-
schedule:
|
|
1291
|
-
interval: "hourly" # hourly, daily, */30m, */6h
|
|
1292
|
-
max_retries: 3 # Retry on failure
|
|
1293
|
-
run_immediately: true # Run once on start
|
|
1294
|
-
timeout: 60 # Max 60s per execution
|
|
1295
|
-
max_cost: 1.00 # Stop after $1.00 spent
|
|
1250
|
+
praisonai schedule start <name> "task" --interval hourly
|
|
1251
|
+
praisonai schedule list
|
|
1252
|
+
praisonai schedule logs <name> [--follow]
|
|
1253
|
+
praisonai schedule stop <name>
|
|
1254
|
+
praisonai schedule restart <name>
|
|
1255
|
+
praisonai schedule delete <name>
|
|
1256
|
+
praisonai schedule describe <name>
|
|
1257
|
+
praisonai schedule save <name> [file.yaml]
|
|
1258
|
+
praisonai schedule "task" --interval hourly # foreground mode
|
|
1259
|
+
praisonai schedule agents.yaml # foreground mode
|
|
1296
1260
|
```
|
|
1297
1261
|
|
|
1298
|
-
**Features:**
|
|
1299
|
-
- ⏱️ Timeout protection (prevent runaway executions)
|
|
1300
|
-
- 💰 Cost monitoring with budget limits
|
|
1301
|
-
- 📊 Real-time statistics (success rate, cost, runtime)
|
|
1302
|
-
- 🔄 Automatic retry with exponential backoff
|
|
1303
|
-
- 🛡️ Auto-stops when budget reached
|
|
1304
|
-
|
|
1305
1262
|
### Image Processing CLI:
|
|
1306
1263
|
```bash
|
|
1307
1264
|
# Process images with vision-based tasks
|
|
@@ -43,8 +43,14 @@ class AgentSchedulerHandler:
|
|
|
43
43
|
return AgentSchedulerHandler._handle_restart(unknown_args, state_manager, daemon_manager)
|
|
44
44
|
elif subcommand == "delete":
|
|
45
45
|
return AgentSchedulerHandler._handle_delete(unknown_args, state_manager)
|
|
46
|
+
elif subcommand == "describe":
|
|
47
|
+
return AgentSchedulerHandler._handle_describe(unknown_args, state_manager, daemon_manager)
|
|
48
|
+
elif subcommand == "save":
|
|
49
|
+
return AgentSchedulerHandler._handle_save(unknown_args, state_manager)
|
|
46
50
|
else:
|
|
47
|
-
print(f"Unknown subcommand: {subcommand}")
|
|
51
|
+
print(f"❌ Unknown subcommand: {subcommand}")
|
|
52
|
+
print("\nAvailable commands:")
|
|
53
|
+
print(" start, list, stop, logs, restart, delete, describe, save")
|
|
48
54
|
return 1
|
|
49
55
|
|
|
50
56
|
@staticmethod
|
|
@@ -286,6 +292,128 @@ class AgentSchedulerHandler:
|
|
|
286
292
|
print(f"❌ Error: Scheduler '{name}' not found")
|
|
287
293
|
return 1
|
|
288
294
|
|
|
295
|
+
@staticmethod
|
|
296
|
+
def _handle_describe(unknown_args, state_manager, daemon_manager) -> int:
|
|
297
|
+
"""Handle 'schedule describe' command."""
|
|
298
|
+
from datetime import datetime
|
|
299
|
+
|
|
300
|
+
if not unknown_args:
|
|
301
|
+
print("❌ Error: Please provide scheduler name")
|
|
302
|
+
print("\nUsage: praisonai schedule describe <name>")
|
|
303
|
+
return 1
|
|
304
|
+
|
|
305
|
+
name = unknown_args[0]
|
|
306
|
+
state = state_manager.load_state(name)
|
|
307
|
+
|
|
308
|
+
if not state:
|
|
309
|
+
print(f"❌ Error: Scheduler '{name}' not found")
|
|
310
|
+
print("\nList schedulers with: praisonai schedule list")
|
|
311
|
+
return 1
|
|
312
|
+
|
|
313
|
+
# Get process status
|
|
314
|
+
pid = state.get('pid', 0)
|
|
315
|
+
is_alive = state_manager.is_process_alive(pid)
|
|
316
|
+
status = "🟢 running" if is_alive else "🔴 stopped"
|
|
317
|
+
|
|
318
|
+
# Calculate uptime
|
|
319
|
+
started_at = state.get('started_at')
|
|
320
|
+
uptime = "N/A"
|
|
321
|
+
if started_at:
|
|
322
|
+
try:
|
|
323
|
+
start_time = datetime.fromisoformat(started_at)
|
|
324
|
+
uptime_delta = datetime.now() - start_time
|
|
325
|
+
hours = int(uptime_delta.total_seconds() // 3600)
|
|
326
|
+
minutes = int((uptime_delta.total_seconds() % 3600) // 60)
|
|
327
|
+
uptime = f"{hours}h {minutes}m"
|
|
328
|
+
except:
|
|
329
|
+
pass
|
|
330
|
+
|
|
331
|
+
# Display detailed info
|
|
332
|
+
print(f"\n{'='*60}")
|
|
333
|
+
print(f"📋 Scheduler Details: {name}")
|
|
334
|
+
print(f"{'='*60}")
|
|
335
|
+
print(f"Status: {status}")
|
|
336
|
+
print(f"PID: {pid}")
|
|
337
|
+
print(f"Uptime: {uptime}")
|
|
338
|
+
print(f"Task: {state.get('task', 'N/A')}")
|
|
339
|
+
print(f"Interval: {state.get('interval', 'N/A')}")
|
|
340
|
+
print(f"Max Retries: {state.get('max_retries', 'N/A')}")
|
|
341
|
+
|
|
342
|
+
if state.get('timeout'):
|
|
343
|
+
print(f"Timeout: {state['timeout']}s")
|
|
344
|
+
|
|
345
|
+
if state.get('max_cost'):
|
|
346
|
+
print(f"Budget: ${state['max_cost']}")
|
|
347
|
+
|
|
348
|
+
print(f"Executions: {state.get('executions', 0)}")
|
|
349
|
+
print(f"Total Cost: ${state.get('cost', 0.0):.4f}")
|
|
350
|
+
print(f"Started: {started_at or 'N/A'}")
|
|
351
|
+
|
|
352
|
+
# Log file location
|
|
353
|
+
log_file = daemon_manager.log_dir / f"{name}.log"
|
|
354
|
+
print(f"Logs: {log_file}")
|
|
355
|
+
|
|
356
|
+
print(f"{'='*60}\n")
|
|
357
|
+
|
|
358
|
+
return 0
|
|
359
|
+
|
|
360
|
+
@staticmethod
|
|
361
|
+
def _handle_save(unknown_args, state_manager) -> int:
|
|
362
|
+
"""Handle 'schedule save' command."""
|
|
363
|
+
import yaml
|
|
364
|
+
|
|
365
|
+
if not unknown_args:
|
|
366
|
+
print("❌ Error: Please provide scheduler name")
|
|
367
|
+
print("\nUsage: praisonai schedule save <name> [output.yaml]")
|
|
368
|
+
return 1
|
|
369
|
+
|
|
370
|
+
name = unknown_args[0]
|
|
371
|
+
output_file = unknown_args[1] if len(unknown_args) > 1 else f"{name}.yaml"
|
|
372
|
+
|
|
373
|
+
state = state_manager.load_state(name)
|
|
374
|
+
|
|
375
|
+
if not state:
|
|
376
|
+
print(f"❌ Error: Scheduler '{name}' not found")
|
|
377
|
+
return 1
|
|
378
|
+
|
|
379
|
+
# Create YAML config from state
|
|
380
|
+
yaml_config = {
|
|
381
|
+
'framework': 'praisonai',
|
|
382
|
+
'agents': [{
|
|
383
|
+
'name': name,
|
|
384
|
+
'role': 'Task Executor',
|
|
385
|
+
'goal': state.get('task', ''),
|
|
386
|
+
'instructions': state.get('task', ''),
|
|
387
|
+
'verbose': True
|
|
388
|
+
}],
|
|
389
|
+
'task': state.get('task', ''),
|
|
390
|
+
'schedule': {
|
|
391
|
+
'interval': state.get('interval', 'hourly'),
|
|
392
|
+
'max_retries': state.get('max_retries', 3),
|
|
393
|
+
'run_immediately': True
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
# Add optional fields
|
|
398
|
+
if state.get('timeout'):
|
|
399
|
+
yaml_config['schedule']['timeout'] = state['timeout']
|
|
400
|
+
|
|
401
|
+
if state.get('max_cost'):
|
|
402
|
+
yaml_config['schedule']['max_cost'] = state['max_cost']
|
|
403
|
+
|
|
404
|
+
# Write to file
|
|
405
|
+
try:
|
|
406
|
+
with open(output_file, 'w') as f:
|
|
407
|
+
yaml.dump(yaml_config, f, default_flow_style=False, sort_keys=False)
|
|
408
|
+
|
|
409
|
+
print(f"✅ Configuration saved to: {output_file}")
|
|
410
|
+
print(f"\nRun with:")
|
|
411
|
+
print(f" praisonai schedule {output_file}")
|
|
412
|
+
return 0
|
|
413
|
+
except Exception as e:
|
|
414
|
+
print(f"❌ Error saving configuration: {e}")
|
|
415
|
+
return 1
|
|
416
|
+
|
|
289
417
|
@staticmethod
|
|
290
418
|
def handle_schedule_command(args, unknown_args=None) -> int:
|
|
291
419
|
"""
|
|
@@ -236,7 +236,7 @@ class PraisonAI:
|
|
|
236
236
|
# Check for subcommands (start, list, stop, logs, restart)
|
|
237
237
|
subcommand = unknown_args[0] if unknown_args and not unknown_args[0].startswith('-') else None
|
|
238
238
|
|
|
239
|
-
if subcommand in ['start', 'list', 'stop', 'logs', 'restart', 'delete']:
|
|
239
|
+
if subcommand in ['start', 'list', 'stop', 'logs', 'restart', 'delete', 'describe', 'save']:
|
|
240
240
|
exit_code = AgentSchedulerHandler.handle_daemon_command(subcommand, args, unknown_args[1:] if len(unknown_args) > 1 else [])
|
|
241
241
|
else:
|
|
242
242
|
# Legacy mode: direct scheduling (foreground)
|
|
@@ -57,7 +57,7 @@ class CloudDeployer:
|
|
|
57
57
|
file.write("FROM python:3.11-slim\n")
|
|
58
58
|
file.write("WORKDIR /app\n")
|
|
59
59
|
file.write("COPY . .\n")
|
|
60
|
-
file.write("RUN pip install flask praisonai==2.3.
|
|
60
|
+
file.write("RUN pip install flask praisonai==2.3.69 gunicorn markdown\n")
|
|
61
61
|
file.write("EXPOSE 8080\n")
|
|
62
62
|
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
|
|
63
63
|
|
|
@@ -172,6 +172,43 @@ class AgentScheduler:
|
|
|
172
172
|
"cost_per_execution": round(self._total_cost / self._execution_count, 4) if self._execution_count > 0 else 0
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
def _update_state_if_daemon(self):
|
|
176
|
+
"""Update state file with execution stats if running as daemon."""
|
|
177
|
+
try:
|
|
178
|
+
import os
|
|
179
|
+
# Check if we're running as a daemon by looking for state file
|
|
180
|
+
state_dir = os.path.expanduser("~/.praisonai/schedulers")
|
|
181
|
+
if not os.path.exists(state_dir):
|
|
182
|
+
return
|
|
183
|
+
|
|
184
|
+
# Try to find our state file by checking all state files for matching PID
|
|
185
|
+
current_pid = os.getpid()
|
|
186
|
+
for state_file in os.listdir(state_dir):
|
|
187
|
+
if not state_file.endswith('.json'):
|
|
188
|
+
continue
|
|
189
|
+
|
|
190
|
+
state_path = os.path.join(state_dir, state_file)
|
|
191
|
+
try:
|
|
192
|
+
import json
|
|
193
|
+
with open(state_path, 'r') as f:
|
|
194
|
+
state = json.load(f)
|
|
195
|
+
|
|
196
|
+
# Check if this is our state file
|
|
197
|
+
if state.get('pid') == current_pid:
|
|
198
|
+
# Update execution stats
|
|
199
|
+
state['executions'] = self._execution_count
|
|
200
|
+
state['cost'] = round(self._total_cost, 4)
|
|
201
|
+
|
|
202
|
+
# Write back
|
|
203
|
+
with open(state_path, 'w') as f:
|
|
204
|
+
json.dump(state, f, indent=2)
|
|
205
|
+
break
|
|
206
|
+
except Exception:
|
|
207
|
+
continue
|
|
208
|
+
except Exception as e:
|
|
209
|
+
# Silently fail - don't break scheduler if state update fails
|
|
210
|
+
logger.debug(f"Failed to update state: {e}")
|
|
211
|
+
|
|
175
212
|
def _run_schedule(self, interval: int, max_retries: int):
|
|
176
213
|
"""Internal method to run scheduled agent executions."""
|
|
177
214
|
while not self._stop_event.is_set():
|
|
@@ -95,15 +95,16 @@ class DaemonManager:
|
|
|
95
95
|
Returns:
|
|
96
96
|
Process ID
|
|
97
97
|
"""
|
|
98
|
-
# Build command
|
|
98
|
+
# Build command - use praisonai CLI to run scheduler in foreground
|
|
99
99
|
command = [
|
|
100
100
|
sys.executable,
|
|
101
101
|
"-m",
|
|
102
102
|
"praisonai.cli.main",
|
|
103
103
|
"schedule",
|
|
104
|
-
task,
|
|
104
|
+
f'"{task}"', # Quote the task
|
|
105
105
|
"--interval", interval,
|
|
106
|
-
"--max-retries", str(max_retries)
|
|
106
|
+
"--max-retries", str(max_retries),
|
|
107
|
+
"--verbose" # Enable verbose to see output
|
|
107
108
|
]
|
|
108
109
|
|
|
109
110
|
if timeout:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.3.69"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.3.67"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|