Add Message to Chat#

Adds a structured message to the chat.

ThreadGuid*Required chat GUID.
RoleRole of the message.
ContentContent of the message; for agent flow, usually the user's text.
FolderGuids[Array] Optional folders whose content is available to the message.
FileGuids[Array] Optional files whose content is available to the message.
UseInterpreterAllow interpreter for the message.
ToolsOptional tool definitions stored in the context of the message.
ResponseFormat[Object] Optional required response format for the model.
ApiTokenGuid[Text] Optional allowed override of the agent API token; otherwise, the assistant's token is used.
Timeout[Number] HTTP request timeout in seconds; default value is 300.
MessageDataComplete object of the created message.
MessageGuid[Text] GUID of the created message.
Processing 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 level of messages that will be output by the blocks during operation.

Possible values:

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

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's work.