Class ThreadMessageRequest
Inheritance
object
RequestBody
ThreadMessageRequest
Assembly: .dll
Syntax
public class ThreadMessageRequest : ModelRequest
Properties
Attachments
A list of files attached to the message, and the tools they should be added to.
Declaration
public List<Attachment> Attachments { get; set; }
Property Value
Content
Required. The content of the message.
Declaration
public Content Content { get; set; }
Property Value
LocalFiles
Locally stored files for the message.
Declaration
public List<UniFile> LocalFiles { get; set; }
Property Value
Type |
Description |
List<UniFile> |
|
LocalImages
Locally stored images for the message.
Declaration
public List<UniImageFile> LocalImages { get; set; }
Property Value
Type |
Description |
List<UniImageFile> |
|
Role
Required. The role of the entity that is creating the message.
Currently only User is supported.
Declaration
public ChatRole Role { get; }
Property Value
Methods
SetFiles(IEnumerable<string>)
Declaration
public void SetFiles(IEnumerable<string> attachmentFileIds)
Parameters
Type |
Name |
Description |
IEnumerable<string> |
attachmentFileIds |
|
SetImages(IEnumerable<string>)
Declaration
public void SetImages(IEnumerable<string> imageFileIds)
Parameters
Type |
Name |
Description |
IEnumerable<string> |
imageFileIds |
|