
Overview
The Return value block allows you to chain multiple steps together to perform certain actions, and return a single value at the end of the chain. You can use it in the following scenarios:- To return a value in tool calling
- To return a value when a blueprint is invoked with the Run blueprint block
Return a value in tool calling
When an Tool calling block decides to run a tool, the tool can include any number of blocks and return a final value to the Tool calling block. Use the Return value block to define what the final return value is. If you do not use the Return value block, the tool call executes the blocks that follow it but doesn’t return a value to the Tool calling block.
Return a value from a blueprint
Use the Return value block to pass results to another blueprint.
Fields
Name | Type | Control | Default | Description | Options | Validation |
---|---|---|---|---|---|---|
Value | Text | Textarea | - | - | - | - |
End states
Below are the possible end states of the block call.Name | Field | Type | Description |
---|---|---|---|
Success | - | success | If the function doesn’t raise an Exception. |
Error | - | error | If the function raises an Exception. |