🔧
自定义工具
将你的 API 注册为 AI 工具,让 AI 直接调用你的业务系统。支持 HTTP、桌面代理、自定义 Handler 三种执行方式。
from invoratec import ClawPlatform
claw = ClawPlatform(api_key="claw_xxxx")
# AI 对话
response = claw.ai.chat("查询本月能耗数据")
print(response.text)
# 注册工具
@claw.tool("my_tool", description="我的自定义工具")
def my_tool(param1: str):
return {"result": "..."}
# 上传知识
claw.knowledge.upload("运维手册.pdf")const { ClawPlatform } = require('@invoratec/claw-sdk')
const claw = new ClawPlatform({ apiKey: 'claw_xxxx' })
// AI 对话
const res = await claw.ai.chat('查询本月能耗数据')
console.log(res.text)
// 注册工具
claw.registerTool({
name: 'my_tool',
description: '我的自定义工具',
handler: async (input) => ({ result: '...' })
})# AI 对话
curl -X POST https://api.invoratec.cn/v1/ai/chat \
-H "X-API-Key: claw_xxxx" \
-H "Content-Type: application/json" \
-d '{"message": "查询本月能耗数据"}'
# 注册工具
curl -X POST https://api.invoratec.cn/v1/tools \
-H "X-API-Key: claw_xxxx" \
-H "Content-Type: application/json" \
-d '{"name": "my_tool", "description": "我的工具"}'| 案例 | 行业 | 接入能力 |
|---|---|---|
| 太古里运维平台 | 商业地产 | 设备监控 + 能耗分析 + 报警工单 |
| 智慧园区标准版 | 产业园区 | 数字孪生 + 设备图谱 + 巡检自动化 |
| DHR 人力资源平台 | 企业 HR | 组织图谱 + 技能分析 + 培训推荐 |
| BIM 协同平台 | 建筑工程 | 模型管理 + 碰撞检测 + 问题追踪 |