Removed reference to deprecated single_step in documentation (#608)

This commit is contained in:
crumbly-blue-cheese 2025-02-14 02:54:44 -08:00 committed by GitHub
parent 94371331bb
commit 0153e37ac9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 10 deletions

View File

@ -67,7 +67,4 @@ We implement two versions of agents:
- [`ToolCallingAgent`] generates tool calls as a JSON in its output, as is commonly done in agentic frameworks. We incorporate this option because it can be useful in some narrow cases where you can do fine with only one tool call per step: for instance, for web browsing, you need to wait after each action on the page to monitor how the page changes. - [`ToolCallingAgent`] generates tool calls as a JSON in its output, as is commonly done in agentic frameworks. We incorporate this option because it can be useful in some narrow cases where you can do fine with only one tool call per step: for instance, for web browsing, you need to wait after each action on the page to monitor how the page changes.
> [!TIP] > [!TIP]
> We also provide an option to run agents in one-shot: just pass `single_step=True` when launching the agent, like `agent.run(your_task, single_step=True)` > Read [Open-source LLMs as LangChain Agents](https://huggingface.co/blog/open-source-llms-as-agents) blog post to learn more about multi-step agents.
> [!TIP]
> Read [Open-source LLMs as LangChain Agents](https://huggingface.co/blog/open-source-llms-as-agents) blog post to learn more about multi-step agents.

View File

@ -42,6 +42,3 @@ ReAct प्रक्रिया में पिछले चरणों क
हम दो प्रकार के ToolCallingAgent को लागू करते हैं: हम दो प्रकार के ToolCallingAgent को लागू करते हैं:
- [`ToolCallingAgent`] अपने आउटपुट में टूल कॉल को JSON के रूप में जनरेट करता है। - [`ToolCallingAgent`] अपने आउटपुट में टूल कॉल को JSON के रूप में जनरेट करता है।
- [`CodeAgent`] ToolCallingAgent का एक नया प्रकार है जो अपने टूल कॉल को कोड के ब्लॉब्स के रूप में जनरेट करता है, जो उन LLM के लिए वास्तव में अच्छी तरह काम करता है जिनका कोडिंग प्रदर्शन मजबूत है। - [`CodeAgent`] ToolCallingAgent का एक नया प्रकार है जो अपने टूल कॉल को कोड के ब्लॉब्स के रूप में जनरेट करता है, जो उन LLM के लिए वास्तव में अच्छी तरह काम करता है जिनका कोडिंग प्रदर्शन मजबूत है।
> [!TIP]
> हम एजेंट्स को वन-शॉट में चलाने का विकल्प भी प्रदान करते हैं: बस एजेंट को लॉन्च करते समय `single_step=True` पास करें, जैसे `agent.run(your_task, single_step=True)`

View File

@ -42,6 +42,3 @@ ReAct 过程涉及保留过去步骤的记忆。
我们实现了两个版本的 ToolCallingAgent 我们实现了两个版本的 ToolCallingAgent
- [`ToolCallingAgent`] 在其输出中生成 JSON 格式的工具调用。 - [`ToolCallingAgent`] 在其输出中生成 JSON 格式的工具调用。
- [`CodeAgent`] 是一种新型的 ToolCallingAgent它生成代码块形式的工具调用这对于具有强大编码性能的 LLM 非常有效。 - [`CodeAgent`] 是一种新型的 ToolCallingAgent它生成代码块形式的工具调用这对于具有强大编码性能的 LLM 非常有效。
> [!TIP]
> 我们还提供了一个选项来以单步模式运行 agent只需在启动 agent 时传递 `single_step=True`,例如 `agent.run(your_task, single_step=True)`