Understanding Julep Tasks and workflows
Name | Description |
---|---|
Tool Call | Execute tools defined in the task |
Prompt | Send messages to the AI model |
Evaluate | Perform calculations or data manipulation |
Wait for Input | Pause workflow for user input |
Subworkflow | Execute a subworkflow |
Set | Store values for later use |
Get | Retrieve values from storage |
Foreach | Iterate over a collection |
Map-reduce | Process collections in parallel |
Switch | Multiple condition handling |
If-else | Conditional execution |
Sleep | Pause execution |
Return | Return values from workflow |
Yield | Execute subworkflows |
Log | Log messages or specific values |
Error | Handle errors by specifying an error message |
You can learn more about workflow steps as to how they work in the Workflow Steps section.
How to access the input and output of a step
steps[index].output
or steps[index].input
variable. For example:steps[0]
and the second step is steps[1]
and so on.
Furthermore the first step input is nothing but the task input and the last step output is nothing but the output of the task.$
variable and new syntax, please refer to the New Syntax section.Learn more about tools here.
inherit_tools
to true
while creating the task. Example: