docs: Remove template pages because templates already include explanatory notes within Langflow (#9235)
* finish template description * remove travel planning and simple agent pages * remove sequential agent and memory chatbot * remove 2 template, finish redirects, sidebar * remove vector store rag page * remove basic prompting page * add bold to template name * fix link
This commit is contained in:
parent
7123c507a7
commit
aa70a15654
39 changed files with 134 additions and 667 deletions
|
|
@ -25,24 +25,26 @@ Tool names and descriptions can be edited, but the default tool identifiers cann
|
|||
|
||||
## Use an agent as a tool
|
||||
|
||||
The agent component itself also supports **Tool Mode** for creating multi-agent flows.
|
||||
To create multi-agent flows, you can set another **Agent** component to **Tool Mode**, and then attach that agent as a tool for your primary **Agent** component.
|
||||
|
||||
Add an agent to your flow that uses a different OpenAI model for a larger context window.
|
||||
To try this for yourself, add an additional agent to the **Simple Agent** template:
|
||||
|
||||
1. Create the [Simple agent starter flow](/simple-agent).
|
||||
2. Add a second agent component to the flow.
|
||||
3. Add your **OpenAI API Key** to the **Agent** component.
|
||||
4. In the **Model Name** field, select `gpt-4.1`.
|
||||
5. Click **Tool Mode** to use this new agent as a tool.
|
||||
6. Connect the new agent's **Toolset** port to the previously created agent's **Tools** port.
|
||||
The new agent will use `gpt-4.1` for the larger tasks of scraping and searching information that require large context windows.
|
||||
The previously created agent will now use this agent as a tool, with its unique LLM and toolset.
|
||||
1. Create a flow based on the **Simple Agent** template.
|
||||
2. Add a second **Agent** component to the flow.
|
||||
3. Add your **OpenAI API Key** to both **Agent** components.
|
||||
4. In the second **Agent** component, change the model to `gpt-4.1`, and then enable **Tool Mode**.
|
||||
5. Click <Icon name="SlidersHorizontal" aria-hidden="true"/> **Edit Tools** to set tool names and descriptions that help the primary agent understand how to use those tools.
|
||||
|
||||

|
||||
For this example, change the tool name to `Agent-gpt-41` and set the description to `Use the gpt-4.1 model for complex problem solving`.
|
||||
This lets the primary agent know that this tool uses the `gpt-4.1` model, which could be helpful for tasks requiring a larger context window, such as large scrape and search tasks.
|
||||
|
||||
7. The new agent's actions can be edited to help the agent understand how to use it.
|
||||
Click <Icon name="SlidersHorizontal" aria-hidden="true"/> **Edit Tools** to modify its `name`, `description`, or `enabled` metadata.
|
||||
For example, the default tool name is `Agent`. Edit the name to `Agent-gpt-41`, and edit the description to `Use the gpt-4.1 model for complex problem solving`. The connected agent will understand that this is the `gpt-4.1` agent, and will use it for tasks requiring a larger context window.
|
||||
As another example, you could attach several specialized models to a primary agent, such as agents that are trained on certain tasks or domains, and then the primary agent would call each specialized agent as needed to respond to queries.
|
||||
|
||||
You can also enable and disable tools if you want to limit the available toolset.
|
||||
|
||||
6. Connect the new agent's **Toolset** port to the existing agent's **Tools** port.
|
||||
|
||||

|
||||
|
||||
## Add custom components as tools {#components-as-tools}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ This component provides everything you need to create an agent, including multip
|
|||
It simplifies agent configuration so you can focus on application development.
|
||||
|
||||
<details>
|
||||
<summary>How agents work</summary>
|
||||
<summary>How do agents work?</summary>
|
||||
|
||||
Agents extend LLMs by integrating _tools_, which are functions that provide additional context and enable autonomous task execution.
|
||||
These integrations make agents more specialized and powerful than standalone LLMs.
|
||||
|
|
@ -31,7 +31,7 @@ The `Tool` object's description tells the agent what the tool can do so that it
|
|||
## Use the Agent component in a flow
|
||||
|
||||
The following steps explain how to create an agentic flow in Langflow from a blank flow.
|
||||
For a prebuilt example, use the [**Simple Agent** template](/simple-agent) or try the [Langflow quickstart](/get-started-quickstart).
|
||||
For a prebuilt example, use the **Simple Agent** template or try the [Langflow quickstart](/get-started-quickstart).
|
||||
|
||||
1. Click **New Flow**, and then click **Blank Flow**.
|
||||
2. Add an **Agent** component to the **Workspace**.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue