> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# Claude代理如何在长对话中提速：消息线程指南
- URL: https://globalfeed.ai/zh/claudedai-li-ru-he-zai-chang-dui-hua-zhong-ti-su-xiao-xi-xian-cheng-zhi-nan/
- Published: 2026-11-03T15:53:00.000Z
- Updated: 2026-11-03T15:53:00.000Z
- Description: 消息线程让对话只需完整发送一次，之后每轮只发送新消息。原理、适用场景与使用方法。
- Author: GlobalFeed Editor
- Tags: Claude, Anthropic, API, 指南, AI代理, x-Anthropic, dil-zh, elle

Anthropic于11月2日[宣布](https://claude.com/resources/articles/message-threads?ref=globalfeed.ai)Messages API的“消息线程”（Message Threads）功能进入公开测试。过去API不保存对话，每轮请求都要重新发送全部历史，长时间运行的编程代理一次请求可能达到数十万个token。启用线程后，第一次请求发送完整对话并创建线程，此后每轮只需发送新消息和上一条回复的ID，API会在服务器端重建对话。官方称，大多数Claude Code用户已默认启用，在50万至100万token的请求中，首个token的中位等待时间缩短约35%。Claude每轮仍会读取完整对话，因此token用量、价格和速率限制不变。线程在最后一次请求5分钟后过期，过期后需重新发送完整对话；SDK中的线程助手会自动处理。线程仅加密保存在内存中，最迟在最后一次使用1小时后删除，不适用零数据保留（ZDR）和HIPAA。该功能支持所有Claude模型，可在Claude API、AWS、Microsoft Foundry和Google Cloud上使用，需要beta请求头message-threads-2026-08-12。

来源： [Anthropic公告](https://claude.com/resources/articles/message-threads?ref=globalfeed.ai), [官方文档](https://platform.claude.com/docs/en/build-with-claude/message-threads?ref=globalfeed.ai)