Вынести сценарий в JSON и добавить динамический loader.

Переключает запуск workflow на загрузку сценария из файлового хранилища по scenario_id и собирает шаги выполнения из definition.steps вместо хардкода в раннере.
This commit is contained in:
Barabashka
2026-04-21 17:07:24 +03:00
parent 2111964d8b
commit 2b0c748474
7 changed files with 214 additions and 48 deletions
+14 -1
View File
@@ -17,12 +17,19 @@ prisma_platform/
├── .env
├── .env.example
├── requirements.txt
├── scenarios/
│ ├── index.json
│ └── news_source_discovery/
│ └── v1.json
└── src/
├── __init__.py
├── agent_os.py
├── agent_runner.py
├── main.py
── observability.py
── observability.py
├── scenario_store.py
├── stub_tools.py
└── workflow_runner.py
```
## Установка
@@ -48,6 +55,12 @@ python -m src.main
python -m src.main --message "Привет, что ты умеешь?"
```
Режим запуска сценария (идет загрузка сценария из `scenarios/index.json`):
```bash
python -m src.main --scenario-id news_source_discovery_v1 --workflow-input-json '{"url":"https://example.com/news"}'
```
## Запуск AgentOS
Запуск сервера AgentOS: