public class RunParam extends FlattenHalfDuplexParamBase
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RunParam.TruncationStrategy |
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
additionalInstructions |
protected List<MessageParamBase> |
additionalMessages |
protected @NonNull String |
assistantId |
protected String |
instructions |
protected Integer |
maxCompletionTokens |
protected Integer |
maxPromptTokens |
protected Map<String,String> |
metadata
Metadata
|
protected String |
model |
protected Boolean |
parallelToolCalls |
protected Object |
responseFormat
only support json_object.
|
protected Boolean |
stream |
protected Float |
temperature |
protected Object |
toolChoice |
protected List<ToolBase> |
tools |
protected RunParam.TruncationStrategy |
truncationStrategy |
headers, parameters| 构造器和说明 |
|---|
RunParam() |
| 限定符和类型 | 方法和说明 |
|---|---|
com.google.gson.JsonObject |
getHttpBody()
Get the batch request data.
|
void |
validate()
Validate the input and parameters.
|
addExtraBody, getBinaryData, getHeaders, getInput, getModel, getParameters, getResources, putHeadergetApiKey, getWorkspace@NonNull @SerializedName(value="assistant_id") protected @NonNull String assistantId
protected String model
protected String instructions
@SerializedName(value="additional_instructions") protected String additionalInstructions
@SerializedName(value="additional_messages") protected List<MessageParamBase> additionalMessages
protected Float temperature
protected Boolean stream
@SerializedName(value="max_prompt_tokens") protected Integer maxPromptTokens
@SerializedName(value="max_completion_tokens") protected Integer maxCompletionTokens
@SerializedName(value="truncation_strategy") protected RunParam.TruncationStrategy truncationStrategy
@SerializedName(value="tool_choice") protected Object toolChoice
@SerializedName(value="response_format") protected Object responseFormat
@SerializedName(value="parallel_tool_calls") protected Boolean parallelToolCalls
public com.google.gson.JsonObject getHttpBody()
HalfDuplexParamBasegetHttpBody 在类中 HalfDuplexParamBasepublic void validate()
throws InputRequiredException
HalfDuplexParamBasevalidate 在类中 FlattenHalfDuplexParamBaseInputRequiredException - Missing input fields.Copyright © 2024. All rights reserved.