diff --git a/docs/docs/API-Reference/api-files.mdx b/docs/docs/API-Reference/api-files.mdx index bfc268d08..c0d4aaf28 100644 --- a/docs/docs/API-Reference/api-files.mdx +++ b/docs/docs/API-Reference/api-files.mdx @@ -85,7 +85,7 @@ To change this limit, set the `LANGFLOW_MAX_FILE_SIZE_UPLOAD` [environment varia 2. Use the returned `file_path` to send the image file to other components that can accept file input. Where you specify the file path depends on the component type. - The following example runs a [Basic Prompting flow](/basic-prompting), passing the image file and the query `describe this image` as input for the **Chat Input** component. + The following example runs the **Basic Prompting** template flow, passing the image file and the query `describe this image` as input for the **Chat Input** component. In this case, the file path is specified in `tweaks`. ```bash diff --git a/docs/docs/API-Reference/api-flows-run.mdx b/docs/docs/API-Reference/api-flows-run.mdx index 9364c9d32..b768210d8 100644 --- a/docs/docs/API-Reference/api-flows-run.mdx +++ b/docs/docs/API-Reference/api-flows-run.mdx @@ -20,7 +20,7 @@ For more information, see [Generate API code snippets](/concepts-publish#generat Execute a specified flow by ID or name. Flow IDs can be found on the code snippets on the [**API access** pane](/concepts-publish#api-access) or in a flow's URL. -The following example runs a [Basic Prompting](/basic-prompting) flow with flow parameters passed in the request body. +The following example runs the **Basic Prompting** template flow with flow parameters passed in the request body. This flow requires a chat input string (`input_value`), and uses default values for all other parameters. ```bash diff --git a/docs/docs/Agents/agents-tools.mdx b/docs/docs/Agents/agents-tools.mdx index 9a7add11f..85b755255 100644 --- a/docs/docs/Agents/agents-tools.mdx +++ b/docs/docs/Agents/agents-tools.mdx @@ -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