public final class Threads extends Object
| 构造器和说明 |
|---|
Threads() |
Threads(String baseUrl,
ConnectionOptions connectionOptions) |
| 限定符和类型 | 方法和说明 |
|---|---|
AssistantThread |
create(ThreadParam param) |
DeletionStatus |
delete(String threadId) |
DeletionStatus |
delete(String threadId,
String apiKey) |
AssistantThread |
retrieve(String threadId) |
AssistantThread |
retrieve(String threadId,
String apiKey) |
AssistantThread |
update(String threadId,
UpdateMetadataParam param) |
public Threads()
public Threads(String baseUrl, ConnectionOptions connectionOptions)
public AssistantThread create(ThreadParam param) throws ApiException, NoApiKeyException
public AssistantThread update(String threadId, UpdateMetadataParam param) throws ApiException, NoApiKeyException, InputRequiredException
public AssistantThread retrieve(String threadId) throws ApiException, NoApiKeyException
public AssistantThread retrieve(String threadId, String apiKey) throws ApiException, NoApiKeyException
public DeletionStatus delete(String threadId) throws ApiException, NoApiKeyException
public DeletionStatus delete(String threadId, String apiKey) throws ApiException, NoApiKeyException
Copyright © 2025. All rights reserved.