public final class Runs extends Object
| 构造器和说明 |
|---|
Runs() |
Runs(String baseUrl,
ConnectionOptions connectionOptions) |
| 限定符和类型 | 方法和说明 |
|---|---|
Run |
create(String threadId,
RunParam param)
Create a thread run.
|
io.reactivex.Flowable<AssistantStreamMessage> |
createStream(String threadId,
RunParam param)
Create stream run, return Flowable of StreamMessage.
|
void |
createStream(String threadId,
RunParam param,
AssistantEventHandler handler)
Create stream run, with event handler.
|
io.reactivex.Flowable<AssistantStreamMessage> |
createStreamThreadAndRun(ThreadAndRunParam param)
Create stream output and run.
|
void |
createStreamThreadAndRun(ThreadAndRunParam param,
AssistantEventHandler handler)
Create stream output and run.
|
Run |
createThreadAndRun(ThreadAndRunParam param)
Create thread and run.
|
ListResult<Run> |
list(String threadId,
GeneralListParam listParam)
List the run of thread id.
|
ListResult<RunStep> |
listSteps(String threadId,
String runId,
GeneralListParam listParam)
List the run step of the run id.
|
Run |
retrieve(String threadId,
String runId)
Retrieve the run.
|
Run |
retrieve(String threadId,
String runId,
String apiKey)
Retrieve the run.
|
Run |
retrieve(String threadId,
String runId,
String apiKey,
Map<String,String> headers) |
RunStep |
retrieveStep(String threadId,
String runId,
String stepId)
Retrieve the run step.
|
RunStep |
retrieveStep(String threadId,
String runId,
String stepId,
String apiKey)
Retrieve the run step.
|
RunStep |
retrieveStep(String threadId,
String runId,
String stepId,
String apiKey,
Map<String,String> headers) |
io.reactivex.Flowable<AssistantStreamMessage> |
submitStreamToolOutputs(String threadId,
String runId,
SubmitToolOutputsParam param)
Submit tool outputs, and return stream result.
|
void |
submitStreamToolOutputs(String threadId,
String runId,
SubmitToolOutputsParam param,
AssistantEventHandler handler)
Submit tool outputs, and return stream result.
|
Run |
submitToolOutputs(String threadId,
String runId,
SubmitToolOutputsParam param)
Submit tool outputs.
|
Run |
update(String threadId,
String runId,
UpdateMetadataParam param)
Update the run.
|
public Runs()
public Runs(String baseUrl, ConnectionOptions connectionOptions)
public Run create(String threadId, RunParam param) throws ApiException, NoApiKeyException, InputRequiredException, InvalidateParameter
threadId - The thread id.param - The `RunParam`ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keyInputRequiredException - The threadId must input.InvalidateParameter - The input parameter is invalid.public io.reactivex.Flowable<AssistantStreamMessage> createStream(String threadId, RunParam param) throws ApiException, NoApiKeyException, InputRequiredException, InvalidateParameter
threadId - The run thread idparam - The run parameters.ApiException - The request failed.NoApiKeyException - No api key found.InputRequiredException - The threadId is null or empty.InvalidateParameter - The stream in param is false.public void createStream(String threadId, RunParam param, AssistantEventHandler handler) throws ApiException, NoApiKeyException, InputRequiredException, InvalidateParameter
threadId - The run thread idparam - The run parameters.handler - The assistant event handler.ApiException - The request failed.NoApiKeyException - No api key found.InputRequiredException - The threadId is null or empty.InvalidateParameter - The stream in param is false.public Run createThreadAndRun(ThreadAndRunParam param) throws ApiException, NoApiKeyException, InvalidateParameter
param - The `ThreadAndRunParam` object.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keyInvalidateParameter - The input parameter is invalid.public io.reactivex.Flowable<AssistantStreamMessage> createStreamThreadAndRun(ThreadAndRunParam param) throws ApiException, NoApiKeyException, InvalidateParameter
param - The `ThreadAndRunParam` object with stream=true.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keyInvalidateParameter - The input parameter is invalid.public void createStreamThreadAndRun(ThreadAndRunParam param, AssistantEventHandler handler) throws ApiException, NoApiKeyException, InvalidateParameter
param - The `ThreadAndRunParam` object with stream=true.handler - The stream event handler callback.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keyInvalidateParameter - The input parameter is invalid.public Run update(String threadId, String runId, UpdateMetadataParam param) throws ApiException, NoApiKeyException, InputRequiredException
threadId - The thread id.runId - The run id.param - The parameter.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keyInputRequiredException - The thread id and run id are required.public ListResult<Run> list(String threadId, GeneralListParam listParam) throws ApiException, NoApiKeyException
threadId - the thread id.listParam - The list parameter.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keypublic ListResult<RunStep> listSteps(String threadId, String runId, GeneralListParam listParam) throws ApiException, NoApiKeyException
threadId - The thread idrunId - The run id.listParam - The list parameter.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keypublic Run retrieve(String threadId, String runId) throws ApiException, NoApiKeyException
threadId - The thread id.runId - The run id.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keypublic Run retrieve(String threadId, String runId, String apiKey) throws ApiException, NoApiKeyException
threadId - The thread id.runId - The run id.apiKey - The request api key.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keypublic Run retrieve(String threadId, String runId, String apiKey, Map<String,String> headers) throws ApiException, NoApiKeyException
public RunStep retrieveStep(String threadId, String runId, String stepId) throws ApiException, NoApiKeyException
threadId - The thread id.runId - The run id.stepId - the run step id.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keypublic RunStep retrieveStep(String threadId, String runId, String stepId, String apiKey) throws ApiException, NoApiKeyException
threadId - The thread id.runId - The run id.stepId - the run step id.apiKey - The request api key.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keypublic RunStep retrieveStep(String threadId, String runId, String stepId, String apiKey, Map<String,String> headers) throws ApiException, NoApiKeyException
public Run submitToolOutputs(String threadId, String runId, SubmitToolOutputsParam param) throws ApiException, NoApiKeyException, InputRequiredException
threadId - The thread id.runId - The run id.param - The output parameters.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keyInputRequiredException - The thread id and run id must input.public io.reactivex.Flowable<AssistantStreamMessage> submitStreamToolOutputs(String threadId, String runId, SubmitToolOutputsParam param) throws ApiException, NoApiKeyException, InputRequiredException
threadId - The thread id.runId - The run id.param - The output parameters.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keyInputRequiredException - The thread id and run id must input.public void submitStreamToolOutputs(String threadId, String runId, SubmitToolOutputsParam param, AssistantEventHandler handler) throws ApiException, NoApiKeyException, InputRequiredException
threadId - The thread id.runId - The run id.param - The output parameters.handler - The stream event handler callback.ApiException - The request exception, if network connection issue etc.NoApiKeyException - Can not find a valid api keyInputRequiredException - The thread id and run id must input.Copyright © 2025. All rights reserved.