any framework

REST API

Integrate Neptrix governance into any custom agent or framework with a single POST request before each action.

需要 API 密钥

您需要 Neptrix API 密钥才能完成此设置。 免费注册获取密钥。

安装

  1. 1Replace YOUR_API_KEY with your key
  2. 2Modify the plan fields to match your agent’s action
  3. 3Send the request before each agent action
  4. 4Check the response: ALLOW, BLOCK, ESCALATE, or MODIFY
将此配置添加到Terminal
Terminal
1curl -X POST https://qpthort-backend-production.up.railway.app/plans/submit \
2 -H "x-api-key: YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "plan_id": "plan-001",
6 "agent_id": "my-agent",
7 "task_id": "task-001",
8 "action_type": "WRITE",
9 "action_detail": {
10 "target": "/path/to/file",
11 "operation": "create",
12 "data_scope": ["SOURCE_CODE"],
13 "reversible": true,
14 "estimated_duration": "short"
15 },
16 "reasoning": "Creating a new configuration file",
17 "confidence": 0.9
18 }'

将 YOUR_API_KEY 替换为您的 API 密钥。 注册获取密钥。

工作原理

1

智能体提议操作

在每次工具调用之前,您的智能体将提议的操作发送给 Neptrix 进行评估。

2

Neptrix 进行评估

宪法治理规则评估操作。决策被记录到您的审计追踪中。

3

返回决策

ALLOW、BLOCK、ESCALATE 或 MODIFY。智能体自动发现——无需注册。

准备好治理您的智能体了吗?

创建免费账户,生成 API 密钥,不到 5 分钟即可运行治理。

免费开始使用