如何配置美国住宅 IP 代理、注册 Claude。
ACP (Agent Communication Protocol) 概念梳理
Claude Agent SDK 试用
基本用法
1 | import { query } from "@anthropic-ai/claude-agent-sdk"; |
- 用户每发起一次对话,会执行上面的代码。prompt 放在第4行的字段里。
- query 是生成器函数,第3行调用后,返回一个迭代器对象。
- 第12行 for of 持续获取 Claude 的返回。
1 | import { query } from "@anthropic-ai/claude-agent-sdk"; |