类的使用
io.agentscope.core.model.GenerateOptions.Builder
使用GenerateOptions.Builder的程序包
-
io.agentscope.core.model中GenerateOptions.Builder的使用
修饰符和类型方法说明GenerateOptions.Builder.additionalBodyParam(String key, Object value) Adds an additional parameter to include in the request body.GenerateOptions.Builder.additionalBodyParams(Map<String, Object> params) Sets all additional parameters to include in the request body.GenerateOptions.Builder.additionalHeader(String key, String value) Adds an additional HTTP header to include in API requests.GenerateOptions.Builder.additionalHeaders(Map<String, String> headers) Sets all additional HTTP headers to include in API requests.GenerateOptions.Builder.additionalQueryParam(String key, String value) Adds an additional query parameter to include in API requests.GenerateOptions.Builder.additionalQueryParams(Map<String, String> params) Sets all additional query parameters to include in API requests.Sets the API key for authentication.Sets the base URL for the API endpoint.static GenerateOptions.BuilderGenerateOptions.builder()Creates a new builder for GenerateOptions.GenerateOptions.Builder.cacheControl(Boolean cacheControl) Sets whether cache control is enabled for prompt caching.GenerateOptions.Builder.endpointPath(String endpointPath) Sets the endpoint path for the API request.GenerateOptions.Builder.executionConfig(ExecutionConfig executionConfig) Sets the execution configuration for timeout and retry behavior.GenerateOptions.Builder.frequencyPenalty(Double frequencyPenalty) Sets the frequency penalty.GenerateOptions.Builder.maxCompletionTokens(Integer maxCompletionTokens) Sets the maximum number of completion tokens to generate.Sets the maximum number of tokens to generate.Sets the model name to use for generation.GenerateOptions.Builder.presencePenalty(Double presencePenalty) Sets the presence penalty.GenerateOptions.Builder.reasoningEffort(String reasoningEffort) Sets the reasoning effort level for o1 models.Sets the random seed for deterministic generation.Sets whether streaming mode is enabled.GenerateOptions.Builder.temperature(Double temperature) Sets the temperature for text generation.GenerateOptions.Builder.thinkingBudget(Integer thinkingBudget) Sets the thinking budget (maximum tokens for reasoning/thinking content).GenerateOptions.Builder.toolChoice(ToolChoice toolChoice) Sets the tool choice configuration for controlling how the model uses tools.Sets the top-k sampling parameter.Sets the top-p (nucleus sampling) parameter.