Skip to content
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
| Name | Type | Default | Description |
|:---------------------------------------------------------------|:-----------|:---------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `name`<span className="required-arg">Required</span> | `string` | - | The name of the step. The name must be unique within the context. The name is used for referencing the step in the context. |
| `end`<span className="optional-arg">Optional</span> | `boolean` | `false` | A boolean value that determines if the step is the last in the context. If `true`, the context ends after this step.<br />**Important**: This **cannot** be used along with the `valid_steps` parameter. |
| `end`<span className="optional-arg">Optional</span> | `boolean` | `false` | A boolean value that determines if the step is the last in the context. If `true`, the context ends after this step. <br />**Important**: This **cannot** be used along with the `valid_steps` parameter. This parameter is required if you want to end a step in a context itself. |
| `functions`<span className="optional-arg">Optional</span> | `string[]` | - | An array of strings, where each string is the name of a [SWAIG.function][swaig.functions] that can be executed from this step. |
| `step_criteria`<span className="optional-arg">Optional</span> | `string` | - | The criteria that must be met for the AI to proceed to the next step. The criteria is a instruction given to the AI. It's **highly** recommended you create a custom criteria for the step to get the intended behavior. |
| `skip_user_turn`<span className="optional-arg">Optional</span> | `boolean` | `false` | A boolean value, if set to `true`, will skip the user's turn to respond in the conversation and proceed to the next step. |
Expand Down