精选75Claude Agent SDK TypeScript(GitHub Releases)AI 编程与模型
Claude Agent SDK TypeScript v0.3.239:修正成本计算
v0.3.239
What's changed
变更内容
- total_cost_usd / modelUsage.costUSD now include the 1.1× US-only-inference (data residency) multiplier when the response reports inference_geo: "us"
- A result held back for background subagents in one-shot mode now reports total_cost_usd, duration_api_ms and modelUsage as of its release, not the turn-end snapshot
- Fixed SYSTEM_PROMPT_DYNAMIC_BOUNDARY in an array systemPrompt being sent to the model as literal text on Bedrock, Vertex, Foundry, and gateway providers
- A repeated initialize on a running process is now followed by a background_tasks_changed snapshot of the live background tasks, so reconnecting hosts see work that is still running
- 当响应报告 inference_geo: "us" 时,total_cost_usd / modelUsage.costUSD 现在包含 1.1× 仅限美国的推理(数据驻留)乘数
- 在单步模式下被延迟发布的后台子代理结果,其 total_cost_usd、duration_api_ms 和 modelUsage 现报告发布时的值,而非回合结束时的快照值
- 修复了 Bedrock、Vertex、Foundry 和网关提供商中,作为字面文本发送给模型的数组 systemPrompt 中的 SYSTEM_PROMPT_DYNAMIC_BOUNDARY 问题
- 对正在运行的进程重复执行 initialize 后,现会附带一个反映实时后台任务的 background_tasks_changed 快照,以便重新连接的客户端看到仍在运行的工作
Update
更新
代码 · 7 行
npm install @anthropic-ai/[email protected]
# or
yarn add @anthropic-ai/[email protected]
# or
pnpm add @anthropic-ai/[email protected]
# or
bun add @anthropic-ai/[email protected]代码 · 7 行
npm install @anthropic-ai/[email protected]
# or
yarn add @anthropic-ai/[email protected]
# or
pnpm add @anthropic-ai/[email protected]
# or
bun add @anthropic-ai/[email protected]更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力