Writer
Chat manager
Initializes conversations, adds messages, and can generate 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. Can be left empty if only generating a reply from AI. | - | - |
Initial model | Model Id | - | palmyra-x-004 | - | - | - |
Initial temperature | Number | - | 0.7 | - | - | Range: 0 to 1 |
Initial max tokens | Number | - | 1024 | - | - | Range: 1 to 8192 |
Generate reply | Text | - | no | If set to ‘yes’, the block will generate a reply based on the conversation. If set to ‘no’, it will only add the message to the conversation. |
| - |
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.