Introduction to Tool Steps
Tool steps are specific actions or functions that an AI agent can perform on given inputs. They are designed to automate complex workflows, process various types of data, and deliver precise outputs. Each tool step is tailored to handle specific tasks, making AI agents more versatile and effective.
Examples of Tool Steps
- LLM Step: Summarizes an input text using advanced language models.
- PDF-to-Text Step: Extracts text from an uploaded PDF file.
- Python Step: Executes a Python code snippet for custom data processing.
SimplAI supports a variety of analysis steps, with all requirements taken care of. All you need to do is add the appropriate step component to your tool.
Adding a Tool Steps
To start creating a tool, navigate to the Tools page. Once there, click on + Create tool
in the top right corner. You will be presented with an interface where you can add your tool steps in the User Steps
section.
General Tool Step Features
Run a Step
To execute a step, click the Run
button in the top right corner of the tool step. The results will be displayed below each tool step.
There are two options available:
-
Run the tool step only. This option is available at every right side of every tool step.
-
Rerun from the top, including the current step. This option is available at the top right corner of the tools page.
Delete a Step
To remove a specific tool from a user step, click the settings button in the top right corner of the tool step and select Remove
. This action will completely delete the tool from the user step.
Run a Step if a Condition is Met
To run a step only when a condition is met, click on the settings button on the top right corner and select Enable conditions
.
Conditions must follow JavaScript rules and be written in {{}}
.
For example:
{{text==="XYZ"}}
--> the variable calledtext
is equal toXYZ
.{{text!=="XYZ"}}
--> the variable calledtext
is not equal toXYZ
.{{clean.transformed===""}}
--> the output of a code step calledclean
is an empty string.
Run a Step Multiple Times in a Loop
To run a step multiple times, click on the settings button in the top right corner and select Enable foreach
.
For example, if you have a list of movie names and want to generate a summary for each one using a large language model, use Enable foreach
option. Under foreach
, provide the list of items on which the loop should work.