# 答案中的最大连续工具使用次数

**URL:** <https://meta.discourse.org/t/max-consecutive-tool-usage-in-the-answer/349181>\
**Category:** Support\
**Tags:** ai\
**Created:** [2025年一月27日 11:10 UTC](https://meta.discourse.org/t/max-consecutive-tool-usage-in-the-answer/349181 "2025-01-27T11:10:58Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2025年一月27日 23:28 UTC](https://meta.discourse.org/t/max-consecutive-tool-usage-in-the-answer/349181/7 "2025-01-27T23:28:19Z")

</div>

> [@Don](#):
>
> 是的，当我设置 **强制工具** 并向 Persona 添加系统消息以检查内容时，就会发生这种情况。例如：“访问在谷歌搜索中找到的所有网站”。我的用例需要这个。

我认为我在这里看到了一个 bug……通常 `max_tools` 是为了避免与工具调用产生巨大的链条，但可能存在 2 种不同的最大值：

- 在回复之前，我们与 LLM 进行往返的最大次数
- 最大工具调用量（这可能高得多）
- 工具可以注入的最大上下文量。（例如：如果你在 3 次工具调用中耗尽了上下文，然后又添加了 2 次，这会导致模型忘记 2 次工具回复）

我将对此进行思考，这是可以解决的。

---

_[View the full topic](https://meta.discourse.org/t/max-consecutive-tool-usage-in-the-answer/349181)._
