public final class Messages extends Object
| 构造器和说明 |
|---|
Messages() |
Messages(String baseUrl,
ConnectionOptions connectionOptions) |
| 限定符和类型 | 方法和说明 |
|---|---|
ThreadMessage |
create(String threadId,
MessageParamBase param) |
ListResult<ThreadMessage> |
list(String threadId,
GeneralListParam listParam) |
ListResult<MessageFile> |
listFiles(String threadId,
String messageId,
GeneralListParam listParam) |
ThreadMessage |
retrieve(String threadId,
String messageId) |
ThreadMessage |
retrieve(String threadId,
String messageId,
String apiKey) |
ThreadMessage |
retrieve(String threadId,
String messageId,
String apiKey,
Map<String,String> headers) |
MessageFile |
retrieveFile(String threadId,
String messageId,
String fileId) |
MessageFile |
retrieveFile(String threadId,
String messageId,
String fileId,
String apiKey) |
MessageFile |
retrieveFile(String threadId,
String messageId,
String fileId,
String apiKey,
Map<String,String> headers) |
ThreadMessage |
update(String threadId,
String messageId,
UpdateMetadataParam param) |
public Messages()
public Messages(String baseUrl, ConnectionOptions connectionOptions)
public ThreadMessage create(String threadId, MessageParamBase param) throws ApiException, NoApiKeyException, InputRequiredException
public ThreadMessage update(String threadId, String messageId, UpdateMetadataParam param) throws ApiException, NoApiKeyException, InputRequiredException
public ListResult<ThreadMessage> list(String threadId, GeneralListParam listParam) throws ApiException, NoApiKeyException, InputRequiredException
public ThreadMessage retrieve(String threadId, String messageId) throws ApiException, NoApiKeyException, InputRequiredException
public ThreadMessage retrieve(String threadId, String messageId, String apiKey) throws ApiException, NoApiKeyException, InputRequiredException
public ThreadMessage retrieve(String threadId, String messageId, String apiKey, Map<String,String> headers) throws ApiException, NoApiKeyException, InputRequiredException
public MessageFile retrieveFile(String threadId, String messageId, String fileId) throws ApiException, NoApiKeyException, InputRequiredException
public MessageFile retrieveFile(String threadId, String messageId, String fileId, String apiKey) throws ApiException, NoApiKeyException, InputRequiredException
public MessageFile retrieveFile(String threadId, String messageId, String fileId, String apiKey, Map<String,String> headers) throws ApiException, NoApiKeyException, InputRequiredException
public ListResult<MessageFile> listFiles(String threadId, String messageId, GeneralListParam listParam) throws ApiException, NoApiKeyException, InputRequiredException
Copyright © 2025. All rights reserved.