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.
This component creates an agent that can use tools to answer questions and perform tasks based on given instructions.
For more information on this component, see the tool calling agent documentation.
Name | Type | Description |
---|
agent_llm | Dropdown | The provider of the language model that the agent will use to generate responses. |
system_prompt | String | Initial instructions and context provided to guide the agent's behavior. |
tools | List | List of tools available for the agent to use. |
input_value | String | The input task or question for the agent to process. |
add_current_date_tool | Boolean | If true, adds a tool to the agent that returns the current date. |
Name | Type | Description |
---|
response | Message | The agent's response to the given input task. |
This component creates a CSV agent from a CSV file and LLM.
Name | Type | Description |
---|
llm | LanguageModel | Language model to use for the agent |
path | File | Path to the CSV file |
agent_type | String | Type of agent to create (zero-shot-react-description, openai-functions, or openai-tools) |
Name | Type | Description |
---|
agent | AgentExecutor | CSV agent instance |
This component represents an Agent of CrewAI, allowing for the creation of specialized AI agents with defined roles, goals, and capabilities within a crew.
For more information, see the CrewAI documentation.
Name | Display Name | Info |
---|
role | Role | The role of the agent |
goal | Goal | The objective of the agent |
backstory | Backstory | The backstory of the agent |
tools | Tools | Tools at agent's disposal |
llm | Language Model | Language model that will run the agent |
memory | Memory | Whether the agent should have memory or not |
verbose | Verbose | Enables verbose output |
allow_delegation | Allow Delegation | Whether the agent is allowed to delegate tasks to other agents |
allow_code_execution | Allow Code Execution | Whether the agent is allowed to execute code |
kwargs | kwargs | Additional keyword arguments for the agent |
Name | Display Name | Info |
---|
output | Agent | The constructed CrewAI Agent object |
This component represents a group of agents, managing how they should collaborate and the tasks they should perform in a hierarchical structure. This component allows for the creation of a crew with a manager overseeing the task execution.
For more information, see the CrewAI documentation.
Name | Display Name | Info |
---|
agents | Agents | List of Agent objects representing the crew members |
tasks | Tasks | List of HierarchicalTask objects representing the tasks to be executed |
manager_llm | Manager LLM | Language model for the manager agent (optional) |
manager_agent | Manager Agent | Specific agent to act as the manager (optional) |
verbose | Verbose | Enables verbose output for detailed logging |
memory | Memory | Specifies the memory configuration for the crew |
use_cache | Use Cache | Enables caching of results |
max_rpm | Max RPM | Sets the maximum requests per minute |
share_crew | Share Crew | Determines if the crew information is shared among agents |
function_calling_llm | Function Calling LLM | Specifies the language model for function calling |
Name | Display Name | Info |
---|
crew | Crew | The constructed Crew object with hierarchical task execution |
This component creates a JSON agent from a JSON or YAML file and an LLM.
Name | Type | Description |
---|
llm | LanguageModel | Language model to use for the agent |
path | File | Path to the JSON or YAML file |
Name | Type | Description |
---|
agent | AgentExecutor | JSON agent instance |
This component creates an OpenAI Tools Agent using LangChain.
For more information, see the LangChain documentation.
Name | Type | Description |
---|
llm | LanguageModel | Language model to use for the agent (must be tool-enabled) |
system_prompt | String | System prompt for the agent |
user_prompt | String | User prompt template (must contain 'input' key) |
chat_history | List[Data] | Optional chat history for the agent |
tools | List[Tool] | List of tools available to the agent |
Name | Type | Description |
---|
agent | AgentExecutor | OpenAI Tools Agent instance |