docs: remove deprecated starter flow (#4838)

remove-deprecated-starter-project-and-redirect
This commit is contained in:
Mendon Kissling 2024-11-25 19:51:21 -05:00 committed by GitHub
commit d5812108b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 55 additions and 106 deletions

View file

@ -1,53 +0,0 @@
---
title: Dynamic agent
sidebar_position: 7
slug: /starter-projects-dynamic-agent
---
Build a **Dynamic Agent** flow for an agentic application using the CrewAI.
An **agent** uses an LLM as its "brain" to reason through tasks and select among the connected tools to complete them.
This flow uses [CrewAI](https://docs.crewai.com/) to manage a [Hierarchical crew](https://docs.crewai.com/how-to/Hierarchical/) of **Agents** as they perform a sequence of **Tasks**.
CrewAI agents have **Roles**, **Goals**, and **Backstories** that define their behavior and interactions with other agents. Agents in a Hierarchical Crew are managed by a single agent with a **Manager** role, which is connected to an **Open AI** LLM component to reason through the tasks and select the appropriate tools to complete them.
This flow is "dynamic" because it uses the **Chat input** component's text to define a CrewAI agent's Role, Goal, and Backstory. The created agent then uses the connected tools to research and complete the **Task** created from the **Chat input** component.
## Prerequisites
To use this flow, you need an [OpenAI API key](https://platform.openai.com/) and a [Search API key](https://www.searchapi.io/).
## Open Langflow and start a new flow
Click **New Flow**, and then select the **Dynamic Agent** flow.
This opens a starter flow with the necessary components to run an agentic application using CrewAI.
The **Dynamic Agent** flow consists of these components:
* The **Chat Input** component accepts user input to the chat.
* The **Prompt** component combines the user input with a user-defined prompt.
* The **OpenAI** model component sends the user input and prompt to the OpenAI API and receives a response.
* The **Chat Output** component prints the flow's output to the chat.
* The **CrewAI Agent** component is an autonomous unit programmed to perform tasks, make decisions, and communicate with other agents.
* The **Crew AI Crew** component represents a collaborative group of agents working together to achieve a set of tasks. This Crew can manage work **sequentially** or **hierarchically**.
* The **Crew AI Task** component is a specific assignment to be completed by agents.
This task can be **sequential** or **hierarchical** depending on the Crew's configuration.
* The **SearchAPI** tool performs web searches using the **SearchAPI.io** API.
* The **Yahoo Finance News Tool** component creates a tool for retrieving news from Yahoo Finance.
## Run the Dynamic Agent flow
1. Add your credentials to the OpenAI and SearchAPI components using Langflow's Global Variables:
- Click **Settings**, then **Global Variables**.
- Click **Add New**.
- Name your variable and paste your API key in the **Value** field.
- In the **Apply To Fields** field, select the field to apply this variable to.
- Click **Save Variable**.
2. In the **Chat output** component, click ▶️ Play to start the end-to-end application flow.
A **Chat output built successfully** message and a ✅ Check on all components indicate that the flow ran successfully.
3. Click **Playground** to start a chat session.
You should receive a detailed, helpful answer to the question defined in the **Chat input** component.
Now that your query has completed the journey from **Chat input** to **Chat output**, you have completed the **Dynamic Agent** flow.

View file

@ -106,6 +106,10 @@ const config = {
to: "/get-started-quickstart",
from: "/getting-started-quickstart",
},
{
to: "/starter-projects-travel-planning-agent",
from: "/starter-projects-dynamic-agent/",
},
{
to: "/workspace-overview",
from: [

View file

@ -7,28 +7,29 @@ module.exports = {
items: [
'Get-Started/get-started-installation',
'Get-Started/get-started-quickstart',
'Get-Started/welcome-to-langflow',
],
},
{
type: 'category',
label: 'Components',
label: 'Starter Projects',
items: [
'Components/components-overview',
'Components/components-agents',
'Components/components-custom-components',
'Components/components-data',
'Components/components-embedding-models',
'Components/components-helpers',
'Components/components-io',
'Components/components-loaders',
'Components/components-logic',
'Components/components-memories',
'Components/components-models',
'Components/components-prompts',
'Components/components-rag',
'Components/components-tools',
'Components/components-vector-stores',
'Starter-Projects/starter-projects-basic-prompting',
'Starter-Projects/starter-projects-blog-writer',
'Starter-Projects/starter-projects-document-qa',
'Starter-Projects/starter-projects-memory-chatbot',
'Starter-Projects/starter-projects-simple-agent',
'Starter-Projects/starter-projects-vector-store-rag',
'Starter-Projects/starter-projects-travel-planning-agent',
],
},
{
type: 'category',
label: 'Workspace',
items: [
'Workspace/workspace-overview',
'Workspace/workspace-api',
'Workspace/workspace-logs',
'Workspace/workspace-playground',
],
},
{
@ -52,6 +53,27 @@ module.exports = {
'Configuration/environment-variables',
],
},
{
type: 'category',
label: 'Components',
items: [
'Components/components-overview',
'Components/components-agents',
'Components/components-custom-components',
'Components/components-data',
'Components/components-embedding-models',
'Components/components-helpers',
'Components/components-io',
'Components/components-loaders',
'Components/components-logic',
'Components/components-memories',
'Components/components-models',
'Components/components-prompts',
'Components/components-rag',
'Components/components-tools',
'Components/components-vector-stores',
],
},
{
type: 'category',
label: 'Guides',
@ -61,6 +83,18 @@ module.exports = {
'Guides/guides-new-to-llms',
],
},
{
type: 'category',
label: 'Deployment',
items: [
'Deployment/deployment-docker',
'Deployment/deployment-gcp',
'Deployment/deployment-hugging-face-spaces',
'Deployment/deployment-kubernetes',
'Deployment/deployment-railway',
'Deployment/deployment-render',
],
},
{
type: 'category',
label: 'Integrations',
@ -85,30 +119,6 @@ module.exports = {
},
],
},
{
type: 'category',
label: 'Starter Projects',
items: [
'Starter-Projects/starter-projects-basic-prompting',
'Starter-Projects/starter-projects-blog-writer',
'Starter-Projects/starter-projects-document-qa',
'Starter-Projects/starter-projects-dynamic-agent',
'Starter-Projects/starter-projects-memory-chatbot',
'Starter-Projects/starter-projects-simple-agent',
'Starter-Projects/starter-projects-travel-planning-agent',
'Starter-Projects/starter-projects-vector-store-rag',
],
},
{
type: 'category',
label: 'Workspace',
items: [
'Workspace/workspace-overview',
'Workspace/workspace-api',
'Workspace/workspace-logs',
'Workspace/workspace-playground',
],
},
{
type: 'category',
label: 'Contributing',
@ -121,18 +131,6 @@ module.exports = {
'Contributing/contributing-telemetry',
],
},
{
type: 'category',
label: 'Deployment',
items: [
'Deployment/deployment-docker',
'Deployment/deployment-gcp',
'Deployment/deployment-hugging-face-spaces',
'Deployment/deployment-kubernetes',
'Deployment/deployment-railway',
'Deployment/deployment-render',
],
},
{
type: 'category',
label: 'API Reference',