AI论坛 AI论坛 beta

Max (@aimer779) 在 使用Claude Agent SDK 怎么使用中转站/公益站中的API? 中发帖

📌 📄 内容摘要: Max (@aimer779) 在 使用Claude Agent SDK 怎么使用中转站/公益站中的API? 中发帖 agent.ts 中的代码如下: import { query } from "@anthropic-ai/claude-agent-sdk"; async function main() { for await (const message of query({ prompt: "What files are in this directory?", options: { model: "opus", allowedTools: ["Glob", "Read"], maxTurns: 250 } })) { if (message.type === "assistant") { for (const block of message.message.content) { if ("...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/1435037/1
─────────────────────────────
📢 来源:LINUX DO

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

每日一言

AI论坛

帖子数 659811
评论数 8888
用户数 88888
在线用户 8888