docs: Update agent tool documentation and enhance flow as tool component (#4636)
* docs: Update agent tool documentation and enhance flow as tool component details * docs: Update component terminology for consistency and improve section title * chore: add lucide-react dependency to package-lock and yarn.lock
This commit is contained in:
parent
d5010c5d0b
commit
3fd4a61310
5 changed files with 27 additions and 10 deletions
|
|
@ -148,10 +148,6 @@ Text Analyzer: I can analyze and transform input text.
|
|||
Current Date and Time: I can retrieve the current date and time in various time zones.
|
||||
```
|
||||
|
||||
4. Click **Check & Save**.
|
||||
|
||||
Your component now has a **Tool Mode** button, and can be used by an agent.
|
||||
|
||||
## Make any component a tool
|
||||
|
||||
These components support **Tool Mode**:
|
||||
|
|
@ -181,12 +177,12 @@ inputs = [
|
|||
|
||||
## Add flows as tools
|
||||
|
||||
An agent can use flows that are saved in your workspace as tools.
|
||||
An agent can use flows that are saved in your workspace as tools with the [Flow as Tool](/components-logic#flow-as-tool) component.
|
||||
|
||||
1. To add a **Flow as tool** component, click and drag a **Flow as tool** component to your workspace.
|
||||
1. To add a **Flow as Tool** component, click and drag a **Flow as Tool** component to your workspace.
|
||||
2. Select the flow you want the agent to use as a tool.
|
||||
3. Connect the tool output to the agent's tools input.
|
||||
4. Ask the agent, `What tools are you using to answer my questions?`
|
||||
Your **Flow as tool** flow should be visible in the response.
|
||||
Your **Flow as Tool** flow should be visible in the response.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
---
|
||||
title: Types of agents in Langflow
|
||||
title: Agents
|
||||
sidebar_position: 12
|
||||
slug: /components-agents
|
||||
---
|
||||
|
||||
# Agent components in Langflow
|
||||
|
||||
Agent components are used to define the behavior and capabilities of AI agents in your flow. Agents can interact with APIs, databases, and other services and use LLMs as a reasoning engine to decide which course to take in your flow.
|
||||
|
||||
## Agent component {#agent-component}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
---
|
||||
title: Logic
|
||||
sidebar_position: 13
|
||||
slug: /components-logic
|
||||
---
|
||||
# Logic components in Langflow
|
||||
|
||||
Logic components provide functionalities for routing, conditional processing, and flow management.
|
||||
|
|
@ -50,7 +55,7 @@ This component is particularly useful in workflows that require conditional rout
|
|||
| false_output | Data/List | Output when the condition is not met. |
|
||||
|
||||
|
||||
## Flow as Tool
|
||||
## Flow as Tool {#flow-as-tool}
|
||||
|
||||
This component constructs a tool from a function that runs a loaded flow.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue