AI Server. Send Message#

Sends a message to the specified chat in Sherpa AI Server.

Chat ID[Number] Chat ID. The value can be obtained from the "AI Server. Get Messages" block from the ThreadId parameter.
RoleThe role from which the message will be sent.
Text[Text] The message text.
Timeout[Number] The maximum wait time for a response in seconds.
Error Handling Level

Select the error handling level. Possible values:

  • "Default" - default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that blocks will output during operation. Possible values:

  • "Default" - default;
  • "Release" - output is disabled;
  • "Debug" - outputs main information;
  • "Detailed" - outputs detailed information.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block.