@{state.variable_name}
.
generated_text
text
. The default if not specified is plain text.@{result}
. This variable is the text generated by the text generation block that precedes the Set state block.form_data
JSON
@{form_data.firstName}
or @{form_data.address.city}
.
@{state["form_data"]["firstName"]}
or @{state["form_data"]["address"]["city"]}
.Name | Type | Control | Default | Description | Options | Validation |
---|---|---|---|---|---|---|
Link Variable | Binding | - | - | Set the variable here and use it across your agent | - | - |
Value type | Text | - | text | - |
| - |
Value | Text | Textarea | - | - | - | - |
Name | Field | Type | Description |
---|---|---|---|
Success | - | success | If the function doesn’t raise an Exception. |
Error | - | error | If the function raises an Exception. |
@{result}
, or you can use the state syntax to access the value in the state variable, for example @{form_data}
.