Add Deep Agents UI, pipeline fixes, and agent improvements.

Includes deep-agents-ui integration, rework detection via Gitea,
tool-call sanitization fixes, and startup scripts.
This commit is contained in:
dapa46
2026-06-18 19:33:26 +03:00
parent ba83d0cfe4
commit 0f38d8d588
83 changed files with 22561 additions and 179 deletions
+38 -1
View File
@@ -95,7 +95,39 @@ asyncio.run(main())
"
```
### LangGraph dev server (UI в браузере)
### Deep Agents UI (рекомендуется)
Веб-интерфейс на базе [deep-agents-ui](https://github.com/langchain-ai/deep-agents-ui): чат, треды, просмотр файлов агента, вызовы инструментов.
**Требования:** Node.js 20+, `.env` с ключами API.
```powershell
# Запустить LangGraph API + UI одной командой (два окна PowerShell)
.\scripts\start_agent_ui.ps1
```
Или по отдельности:
```powershell
# Терминал 1 — LangGraph API (порт 2024)
.\scripts\start_langgraph.ps1
# Терминал 2 — Deep Agents UI (порт 3000)
.\scripts\start_deep_ui.ps1
```
Откройте **http://localhost:3000**. Настройки подставляются из `deep-agents-ui/.env.local`:
| Параметр | Значение |
|----------|----------|
| Deployment URL | `http://127.0.0.1:2024` |
| Assistant ID | `agent` |
Для пакетного пайплайна по всем заданиям смените Assistant ID на `pipeline` в Settings.
Первый запуск UI: `cd deep-agents-ui && npm install` (если скрипт не сделал это сам).
### LangGraph dev server (Studio)
```bash
# Установить langgraph-cli
@@ -138,6 +170,11 @@ brojs-agent/
├── pyproject.toml
├── langgraph.json
├── agent.py # точка входа для langgraph dev
├── deep-agents-ui/ # UI на базе langchain-ai/deep-agents-ui
├── scripts/
│ ├── start_agent_ui.ps1 # запуск API + UI
│ ├── start_langgraph.ps1 # только LangGraph API
│ └── start_deep_ui.ps1 # только Next.js UI
└── src/
└── agent/
├── agent.py # создание агентов (main, homework, rework)