From 0153e37ac9aa855c287247fbb6de5597b146268a Mon Sep 17 00:00:00 2001 From: crumbly-blue-cheese <133693746+crumbly-blue-cheese@users.noreply.github.com> Date: Fri, 14 Feb 2025 02:54:44 -0800 Subject: [PATCH] Removed reference to deprecated single_step in documentation (#608) --- docs/source/en/conceptual_guides/react.md | 5 +---- docs/source/hi/conceptual_guides/react.md | 3 --- docs/source/zh/conceptual_guides/react.md | 3 --- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/docs/source/en/conceptual_guides/react.md b/docs/source/en/conceptual_guides/react.md index b097d5e..c2941a1 100644 --- a/docs/source/en/conceptual_guides/react.md +++ b/docs/source/en/conceptual_guides/react.md @@ -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. > [!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)` - -> [!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. \ No newline at end of file +> 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. diff --git a/docs/source/hi/conceptual_guides/react.md b/docs/source/hi/conceptual_guides/react.md index c36f17c..0f17901 100644 --- a/docs/source/hi/conceptual_guides/react.md +++ b/docs/source/hi/conceptual_guides/react.md @@ -42,6 +42,3 @@ ReAct प्रक्रिया में पिछले चरणों क हम दो प्रकार के ToolCallingAgent को लागू करते हैं: - [`ToolCallingAgent`] अपने आउटपुट में टूल कॉल को JSON के रूप में जनरेट करता है। - [`CodeAgent`] ToolCallingAgent का एक नया प्रकार है जो अपने टूल कॉल को कोड के ब्लॉब्स के रूप में जनरेट करता है, जो उन LLM के लिए वास्तव में अच्छी तरह काम करता है जिनका कोडिंग प्रदर्शन मजबूत है। - -> [!TIP] -> हम एजेंट्स को वन-शॉट में चलाने का विकल्प भी प्रदान करते हैं: बस एजेंट को लॉन्च करते समय `single_step=True` पास करें, जैसे `agent.run(your_task, single_step=True)` \ No newline at end of file diff --git a/docs/source/zh/conceptual_guides/react.md b/docs/source/zh/conceptual_guides/react.md index 24428e0..cdb9707 100644 --- a/docs/source/zh/conceptual_guides/react.md +++ b/docs/source/zh/conceptual_guides/react.md @@ -42,6 +42,3 @@ ReAct 过程涉及保留过去步骤的记忆。 我们实现了两个版本的 ToolCallingAgent: - [`ToolCallingAgent`] 在其输出中生成 JSON 格式的工具调用。 - [`CodeAgent`] 是一种新型的 ToolCallingAgent,它生成代码块形式的工具调用,这对于具有强大编码性能的 LLM 非常有效。 - -> [!TIP] -> 我们还提供了一个选项来以单步模式运行 agent:只需在启动 agent 时传递 `single_step=True`,例如 `agent.run(your_task, single_step=True)` \ No newline at end of file