Class Messages
java.lang.Object
com.alibaba.dashscope.legacy_2x.threads.messages.Messages
Deprecated.
The messages API is deprecated and will be removed in a future version. Please use
the Responses API instead. See Responses API
documentation
-
Constructor Summary
ConstructorsConstructorDescriptionMessages()Deprecated.Messages(String baseUrl, ConnectionOptions connectionOptions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncreate(String threadId, MessageParamBase param) Deprecated.list(String threadId, GeneralListParam listParam) Deprecated.listFiles(String threadId, String messageId, GeneralListParam listParam) Deprecated.Deprecated.Deprecated.Deprecated.retrieveFile(String threadId, String messageId, String fileId) Deprecated.retrieveFile(String threadId, String messageId, String fileId, String apiKey) Deprecated.retrieveFile(String threadId, String messageId, String fileId, String apiKey, Map<String, String> headers) Deprecated.update(String threadId, String messageId, UpdateMetadataParam param) Deprecated.
-
Constructor Details
-
Messages
public Messages()Deprecated. -
Messages
Deprecated.
-
-
Method Details
-
create
public ThreadMessage create(String threadId, MessageParamBase param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated. -
update
public ThreadMessage update(String threadId, String messageId, UpdateMetadataParam param) throws ApiException, NoApiKeyException, InputRequiredException Deprecated. -
list
public ListResult<ThreadMessage> list(String threadId, GeneralListParam listParam) throws ApiException, NoApiKeyException, InputRequiredException Deprecated. -
retrieve
public ThreadMessage retrieve(String threadId, String messageId) throws ApiException, NoApiKeyException, InputRequiredException Deprecated. -
retrieve
public ThreadMessage retrieve(String threadId, String messageId, String apiKey) throws ApiException, NoApiKeyException, InputRequiredException Deprecated. -
retrieve
public ThreadMessage retrieve(String threadId, String messageId, String apiKey, Map<String, String> headers) throws ApiException, NoApiKeyException, InputRequiredExceptionDeprecated. -
retrieveFile
public MessageFile retrieveFile(String threadId, String messageId, String fileId) throws ApiException, NoApiKeyException, InputRequiredException Deprecated. -
retrieveFile
public MessageFile retrieveFile(String threadId, String messageId, String fileId, String apiKey) throws ApiException, NoApiKeyException, InputRequiredException Deprecated. -
retrieveFile
public MessageFile retrieveFile(String threadId, String messageId, String fileId, String apiKey, Map<String, String> headers) throws ApiException, NoApiKeyException, InputRequiredExceptionDeprecated. -
listFiles
public ListResult<MessageFile> listFiles(String threadId, String messageId, GeneralListParam listParam) throws ApiException, NoApiKeyException, InputRequiredException Deprecated.
-