Function
tool follows the JSON Schema format and has the following structure:
Parameter | Type | Description |
---|---|---|
name | string | The name of the tool |
description | string | A description of what the tool does and when the model should use it |
parameters | object | An object containing the tool’s input parameters |
parameters.type | string | The type of the parameter, which is object for a JSON schema |
parameters.properties | object | An object containing the tool’s parameters in the form of a JSON schema. See below for more details. |
parameters.required | array | An array of the tool’s required parameters |
Function
tool in the block’s configuration, it adds a connection point (the purple circle) to the block. This allows you to connect it to another block or chain of blocks that perform the tool’s work.
@{tracking_number}
and @{carrier}
.check_shipping_status
connection point.Function
tool call needs a Return value block at the end that sends the results back to the model.Success
transition. The @{result}
variable is available in the next block with the tool calling block’s final output.