0f38d8d588
Includes deep-agents-ui integration, rework detection via Gitea, tool-call sanitization fixes, and startup scripts.
28 lines
815 B
PowerShell
28 lines
815 B
PowerShell
# Запуск LangGraph API для brojs-agent
|
|
$ErrorActionPreference = "Stop"
|
|
$Root = Split-Path -Parent $PSScriptRoot
|
|
Set-Location $Root
|
|
|
|
$env:PYTHONUTF8 = "1"
|
|
$env:PYTHONIOENCODING = "utf-8"
|
|
|
|
$venvPython = Join-Path $Root "venvv\Scripts\python.exe"
|
|
$venvLanggraph = Join-Path $Root "venvv\Scripts\langgraph.exe"
|
|
if (Test-Path $venvPython) {
|
|
$python = $venvPython
|
|
$langgraph = $venvLanggraph
|
|
} else {
|
|
$python = "python"
|
|
$langgraph = "langgraph"
|
|
}
|
|
|
|
& $python -m pip show langgraph-cli 2>$null | Out-Null
|
|
if ($LASTEXITCODE -ne 0) {
|
|
Write-Host "Installing langgraph-cli..."
|
|
& $python -m pip install "langgraph-cli[inmem]"
|
|
}
|
|
|
|
Write-Host "Starting LangGraph dev server on http://127.0.0.1:2024"
|
|
Write-Host "Graphs: agent (chat), pipeline (batch)"
|
|
& $langgraph dev --allow-blocking --port 2024
|