Files
langflow/.vscode/launch.json
Eric Hare 499815a630 feat: add policies component for tool protection via ToolGuard (#12592)
* feat: add policies component for tool protection via ToolGuard

Reintroduce the policies component from #12564 (originally by @boazdavid).
Adds policy-based tool protection system with business policy enforcement
using ToolGuard, including guard code generation from policy definitions,
support for multiple language models, and enhanced tool metadata.

Adds toolguard>=0.2.4 dependency and click>=8.3.2 override.

* [autofix.ci] apply automated fixes

* Update dependencies for new toolguard

* Update component_index.json

* Update uv.lock

---------

Co-authored-by: DAVID BOAZ <DAVIDBO@il.ibm.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-09 15:13:20 +00:00

95 lines
2.1 KiB
JSON

{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Backend",
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"preLaunchTask": "Install Backend",
"args": [
"--factory",
"langflow.main:create_app",
"--port",
"7860",
"--reload",
"--log-level",
"debug",
"--loop",
"asyncio",
"--reload-include",
"./src/backend/*",
"--reload-include",
"./src/lfx/*",
"--reload-exclude",
"*.db*",
"--reload-exclude",
"./tmp_toolguard/*"
],
"jinja": true,
"justMyCode": false,
"env": {
"LANGFLOW_LOG_LEVEL": "debug",
"LANGFLOW_PROMETHEUS_PORT": "9090"
},
"envFile": "${workspaceFolder}/.env"
},
{
"name": "Debug CLI",
"type": "debugpy",
"request": "launch",
"module": "langflow",
"args": [
"run",
"--frontend-path",
"${workspaceFolder}/src/backend/base/langflow/frontend",
"--env-file",
"${workspaceFolder}/.env"
],
// "python": "/path/to/your/python_env/python", // Replace with the path to your Python executable
"jinja": true,
"justMyCode": false
},
{
"name": "Python: Remote Attach",
"type": "debugpy",
"request": "attach",
"justMyCode": true,
"connect": {
"port": 5678
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
]
},
{
"name": "Debug Frontend",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000/",
"webRoot": "${workspaceRoot}/src/frontend"
},
{
"name": "Python: Debug Tests",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"purpose": ["debug-test"],
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Python Debugger: Python File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}