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
Copy file name to clipboardExpand all lines: sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/models/CreateMessageRequest.java
+33-33
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
importcom.azure.ai.projects.models.MessageRole;
8
8
importcom.azure.core.annotation.Fluent;
9
9
importcom.azure.core.annotation.Generated;
10
+
importcom.azure.core.util.BinaryData;
10
11
importcom.azure.json.JsonReader;
11
12
importcom.azure.json.JsonSerializable;
12
13
importcom.azure.json.JsonToken;
@@ -23,22 +24,21 @@ public final class CreateMessageRequest implements JsonSerializable<CreateMessag
23
24
24
25
/*
25
26
* The role of the entity that is creating the message. Allowed values include:
26
-
* - `user`: Indicates the message is sent by an actual user and should be used in most
27
-
* cases to represent user-generated messages.
28
-
* - `assistant`: Indicates the message is generated by the agent. Use this value to insert
29
-
* messages from the agent into the
30
-
* conversation.
27
+
* `user`, which indicates the message is sent by an actual user (and should be
28
+
* used in most cases to represent user-generated messages), and `assistant`,
29
+
* which indicates the message is generated by the agent (use this value to insert
30
+
* messages from the agent into the conversation).
31
31
*/
32
32
@Generated
33
33
privatefinalMessageRolerole;
34
34
35
35
/*
36
-
* The textual content of the initial message. Currently, robust input including images and annotated text may only
37
-
* be provided via
38
-
* a separate call to the create message API.
36
+
* The content of the initial message. This may be a basic string (if you only
37
+
* need text) or an array of typed content blocks (for example, text, image_file,
38
+
* image_url, and so on).
39
39
*/
40
40
@Generated
41
-
privatefinalStringcontent;
41
+
privatefinalBinaryDatacontent;
42
42
43
43
/*
44
44
* A list of files attached to the message, and the tools they should be added to.
@@ -54,25 +54,12 @@ public final class CreateMessageRequest implements JsonSerializable<CreateMessag
54
54
@Generated
55
55
privateMap<String, String> metadata;
56
56
57
-
/**
58
-
* Creates an instance of CreateMessageRequest class.
0 commit comments