Class MessageResponse
- Namespace
- OpenAI.
Object Models. Shared Models
- Assembly
- AntRunnerLib.dll
Represents a message within a thread.
public class MessageResponse : BaseResponse, IEquatable<ObjectBaseResponse>, IEquatable<BaseResponse>, IOpenAiModels.IId, IOpenAiModels.ICreatedAt, IOpenAiModels.IMetaData, IOpenAiModels.IAssistantId, IEquatable<MessageResponse>
- Inheritance
-
System.
Object MessageResponse
- Implements
-
System.
IEquatable <ObjectBase >Response System.IEquatable <BaseResponse >System.IEquatable <MessageResponse >
- Inherited Members
-
System.
Object. Equals(System. Object) System.Object. Equals(System. Object, System. Object) System.Object. Get Hash Code() System.Object. Get Type() System.Object. Memberwise Clone() System.Object. Reference Equals(System. Object, System. Object) System.Object. To String()
Properties
AssistantId
If applicable, the ID of the assistant that authored this message.
Property Value
- System.
String
Attachments
A list of file IDs that the assistant should use. Useful for tools like retrieval and code_interpreter that can access files. A maximum of 10 files can be attached to a message.
Property Value
- List<Attachment>
CompletedAt
The Unix timestamp (in seconds) for when the run was completed.
Property Value
- System.
Nullable <System.Int32 >
Content
The content of the message in array of text and/or images.
[JsonPropertyName("content")]
public List<MessageResponse.MessageContentResponse>? Content { get; set; }
Property Value
- System.
Nullable <List<MessageResponse. >>Message Content Response
CreatedAt
The Unix timestamp (in seconds) for when the message was created.
Property Value
- System.
Int32
Delta
Property Value
Id
The identifier, which can be referenced in API endpoints.
Property Value
- System.
String
IncompleteAt
The Unix timestamp (in seconds) for when the run was completed.
Property Value
- System.
Nullable <System.Int32 >
IncompleteDetails
On an incomplete message, details about why the message is incomplete.
Property Value
Metadata
Set of 16 key-value pairs that can be attached to an object.
Property Value
- System.
Nullable <Dictionary<System.String , System.String >>
Role
The entity that produced the message. One of user or assistant.
Property Value
- System.
String
RunId
The ID of the run associated with the creation of this message. Value is null when messages are created manually using the create message or create thread endpoints.
Property Value
- System.
String
Status
The status of the message, which can be either in_progress, incomplete, or completed.
Property Value
- System.
String
ThreadId
The thread ID that this message belongs to.
Property Value
- System.
String