Basic Agents
Basic agents provide core functionality for reasoning with language models and tools.
Agent Component
This component creates an agent that can use tools to answer questions and perform tasks based on given instructions.
The component includes an LLM model integration, a system message prompt, and a Tools port to connect tools to extend its capabilities.
Use an agent in a flow
The simple agent starter project uses an agent component connected to URL and Calculator tools to answer a user's questions. The OpenAI LLM acts as a brain for the agent to decide which tool to use. Tools are connected to agent components at the Tools port.

Inputs
agent_llm
Dropdown
The provider of the language model that the agent will use to generate responses. Options include OpenAI and other providers, or Custom.
system_prompt
String
System Prompt: 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.
memory
Memory
Optional memory configuration for maintaining conversation history.
max_iterations
Integer
Maximum number of iterations the agent can perform.
handle_parsing_errors
Boolean
Whether to handle parsing errors during agent execution.
verbose
Boolean
Enables verbose output for detailed logging.
Outputs
response
Message
The agent's response to the given input task.
Tool Calling Agent
This component creates a Tool Calling Agent using LangChain.
Inputs
llm
LanguageModel
Language model to use for the agent
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
Outputs
agent
AgentExecutor
Tool Calling Agent instance
OpenAI Tools Agent
This component creates an OpenAI Tools Agent using LangChain.
Inputs
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
Outputs
agent
AgentExecutor
OpenAI Tools Agent instance
XML Agent
This component creates an XML Agent using LangChain.
The agent uses XML formatting for tool instructions to the Language Model.
Inputs
llm
LanguageModel
Language model to use for the agent
user_prompt
String
Custom prompt template for the agent (includes XML formatting instructions)
tools
List[Tool]
List of tools available to the agent
Outputs
agent
AgentExecutor
XML Agent instance
Last updated