Initializes conversations, adds messages, and can generate replies.

Fields

NameTypeControlDefaultDescriptionOptionsValidation
Conversation state elementText--Where the conversation will be stored--
System promptTextTextarea""A system prompt to set the context for the conversation. Can be left empty if conversation is already initialized in state.--
MessageObject--The message to add to the conversation. Can be left empty if only generating a reply from AI.--
Initial modelModel Id-palmyra-x-004---
Initial temperatureNumber-0.7--

Range: 0 to 1

Initial max tokensNumber-1024--

Range: 1 to 8192

Generate replyText-noIf 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.
  • yes - Yes
  • no - No
-
Use streamingText-yesIf 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.
  • yes - Yes
  • no - No
-
ToolsTools----

End states

Below are the possible end states of the block call.

NameFieldTypeDescription
ToolstoolsdynamicRun associated tools.
Success-successIf the function doesn’t raise an Exception.
Error-errorIf 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.