Writer
Chat reply
Initializes conversations, adds messages, and generates replies.
Fields
Name | Type | Control | Default | Description | Options | Validation |
---|---|---|---|---|---|---|
Conversation state element | Text | - | - | Where the conversation will be stored | - | - |
System prompt | Text | Textarea | "" | A system prompt to set the context for the conversation. Can be left empty if conversation is already initialized in state. | - | - |
Message | Object | - | - | The message to add to the conversation. Must be an object including role and content. | - | - |
Initial model | Model Id | - | palmyra-x5 | - | - | - |
Initial temperature | Number | - | 0.7 | - | - | Range: 0 to 1 |
Initial max tokens | Number | - | 1024 | - | - | Range: 1 to 16384 |
Use streaming | Text | - | yes | If set to ‘yes’, the block will stream the reply as it is generated. If set to ‘no’, it will wait for the entire reply to be generated before returning. |
| - |
Tools | Tools | - | - | - | - |
End states
Below are the possible end states of the block call.
Name | Field | Type | Description |
---|---|---|---|
Tools | tools | dynamic | Run associated tools. |
Success | - | success | If the function doesn’t raise an Exception. |
Error | - | error | If the function raises an Exception. |
The dynamic
end state means that the exact values of this end state change based on how you define the block.