Class MessageCreateRequest
- Namespace
- OpenAI.ObjectModels.RequestModels
- Assembly
- AntRunnerLib.dll
public class MessageCreateRequest : IOpenAiModels.IMetaData
- Inheritance
-
System.ObjectMessageCreateRequest
- Implements
- Inherited Members
-
System.Object.Equals(System.Object)System.Object.Equals(System.Object, System.Object)System.Object.GetHashCode()System.Object.GetType()System.Object.MemberwiseClone()System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ToString()
Constructors
MessageCreateRequest()
public MessageCreateRequest()
MessageCreateRequest(String, MessageContentOneOfType, Nullable<List<Attachment>>, Nullable<Dictionary<String, String>>)
public MessageCreateRequest(string role, MessageContentOneOfType content, List<Attachment>? attachments = null, Dictionary<string, string>? metaData = null)
Parameters
roleSystem.StringcontentMessageContentOneOfTypeattachmentsSystem.Nullable<List<Attachment>>metaDataSystem.Nullable<Dictionary<System.String, System.String>>
Properties
Attachments
A list of files attached to the message, and the tools they should be added to.
[JsonPropertyName("attachments")]
public List<Attachment>? Attachments { get; set; }
Property Value
- System.Nullable<List<Attachment>>
Content
The content of the message.
[JsonPropertyName("content")]
public MessageContentOneOfType Content { get; set; }
Property Value
Metadata
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
[JsonPropertyName("metadata")]
public Dictionary<string, string>? Metadata { get; set; }
Property Value
- System.Nullable<Dictionary<System.String, System.String>>
Role
The role of the entity that is creating the message. Currently only user is supported.
[JsonPropertyName("role")]
public string Role { get; set; }
Property Value
- System.String