You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary> The ID of the previously uploaded file that the content part represents. </summary>
106
+
/// <remarks> Present when <see cref="Kind"/> is <see cref="ChatMessageContentPartKind.File"/> and the content part refers to a previously uploaded file. </remarks>
107
+
publicstringFileId=>_fileFile?.FileId;
108
+
109
+
// CUSTOM: Spread.
110
+
/// <summary> The binary file content of the file content part. </summary>
111
+
/// <remarks> Present when <see cref="Kind"/> is <see cref="ChatMessageContentPartKind.File"/> and the content refers to data for a new file. </remarks>
112
+
publicBinaryDataFileBytes=>_fileFile?.FileBytes;
113
+
114
+
// CUSTOM: Spread.
115
+
/// <summary> The MIME type of the file, e.g., <c>application/pdf</c>. </summary>
116
+
/// <remarks> Present when <see cref="Kind"/> is <see cref="ChatMessageContentPartKind.File"/> and the content refers to data for a new file. </remarks>
/// <summary> The filename for the new file content creation that the content part encapsulates. </summary>
121
+
/// <remarks> Present when <see cref="Kind"/> is <see cref="ChatMessageContentPartKind.File"/> and the content refers to data for a new file. </remarks>
122
+
publicstringFilename=>_fileFile?.Filename;
123
+
101
124
// CUSTOM: Spread.
102
125
/// <summary>
103
126
/// The level of detail with which the model should process the image and generate its textual understanding of
@@ -184,6 +207,40 @@ public static ChatMessageContentPart CreateInputAudioPart(BinaryData inputAudioB
/// <summary> Creates a new <see cref="ChatMessageContentPart"/> that encapsulates new file data to upload. </summary>
225
+
/// <param name="fileBytes"> The binary content of the file. </param>
226
+
/// <param name="fileBytesMediaType"> The MIME type of the file, e.g., <c>application/pdf</c>. </param>
227
+
/// <param name="filename"> The filename to use for the file that will be created. </param>
228
+
/// <exception cref="ArgumentNullException"> <paramref name="fileBytes"/> or <paramref name="fileBytesMediaType"/> is null. </exception>
229
+
/// <exception cref="ArgumentException"> <paramref name="fileBytesMediaType"/> or <paramref name="filename"/>> is an empty string, and was expected to be non-empty. </exception>
0 commit comments