examples/contract-review.ts
import { Acosmi } from "@acosmi/sdk";
const acosmi = new Acosmi({ apiKey: process.env.ACOSMI_KEY });
const agent = await acosmi.agents.run("contract-review", {
file: pdfBuffer,
jurisdiction: "CN",
riskLevel: "high",
});
console.log(agent.findings);
// → [ { clause: "第 8.3 条", risk: "high", suggestion: ... } ]SDK 语言
- TypeScript npm i @acosmi/sdk
- Python pip install acosmi
- Java com.acosmi:sdk
- Go github.com/acosmi/sdk-go
正在跑
首字 89ms · p95
成功率 99.97% · 7d
12.6 亿+ 时间章签发