Class ThreadCreateParams.Builder
-
- All Implemented Interfaces:
public final class ThreadCreateParams.BuilderA builder for ThreadCreateParams.
-
-
Method Summary
-
-
Method Detail
-
unsupportedRequestBehavior
final ThreadCreateParams.Builder unsupportedRequestBehavior(ThreadCreateParams.UnsupportedRequestBehavior unsupportedRequestBehavior)
Sets what the thread does when the API answers that a request cannot be served on a thread. Defaults to UnsupportedRequestBehavior.ERROR.
-
betas
final ThreadCreateParams.Builder betas(List<AnthropicBeta> betas)
-
betas
final ThreadCreateParams.Builder betas(Optional<List<AnthropicBeta>> betas)
Alias for calling Builder.betas with
betas.orElse(null).
-
addBeta
final ThreadCreateParams.Builder addBeta(AnthropicBeta beta)
Adds a single AnthropicBeta to betas.
-
addBeta
final ThreadCreateParams.Builder addBeta(String value)
Sets addBeta to an arbitrary String.
You should usually call addBeta with a well-typed AnthropicBeta constant instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userProfileId
final ThreadCreateParams.Builder userProfileId(String userProfileId)
-
userProfileId
final ThreadCreateParams.Builder userProfileId(Optional<String> userProfileId)
Alias for calling Builder.userProfileId with
userProfileId.orElse(null).
-
workspaceId
final ThreadCreateParams.Builder workspaceId(String workspaceId)
-
workspaceId
final ThreadCreateParams.Builder workspaceId(Optional<String> workspaceId)
Alias for calling Builder.workspaceId with
workspaceId.orElse(null).
-
maxTokens
final ThreadCreateParams.Builder maxTokens(Long maxTokens)
-
maxTokens
final ThreadCreateParams.Builder maxTokens(JsonField<Long> maxTokens)
Sets Builder.maxTokens to an arbitrary JSON value.
You should usually call Builder.maxTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
messages
final ThreadCreateParams.Builder messages(List<BetaMessageParam> messages)
-
messages
final ThreadCreateParams.Builder messages(JsonField<List<BetaMessageParam>> messages)
Sets Builder.messages to an arbitrary JSON value.
You should usually call Builder.messages with a well-typed
List<BetaMessageParam>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addMessage
final ThreadCreateParams.Builder addMessage(BetaMessageParam message)
Adds a single BetaMessageParam to messages.
-
addMessage
final ThreadCreateParams.Builder addMessage(BetaMessage message)
Alias for calling addMessage with
message.toParam().
-
addMessage
final ThreadCreateParams.Builder addMessage(BetaUserMessageParam user)
Alias for calling addMessage with
BetaMessageParam.ofUser(user).
-
addMessage
final ThreadCreateParams.Builder addMessage(BetaAssistantMessageParam assistant)
Alias for calling addMessage with
BetaMessageParam.ofAssistant(assistant).
-
addMessage
final ThreadCreateParams.Builder addMessage(BetaSystemMessageParam system)
Alias for calling addMessage with
BetaMessageParam.ofSystem(system).
-
addUserMessage
final ThreadCreateParams.Builder addUserMessage(BetaMessageContentParam content)
Alias for calling addMessage with the following:
BetaUserMessageParam.builder() .content(content) .build()
-
addUserMessage
final ThreadCreateParams.Builder addUserMessage(String string)
Alias for calling addUserMessage with
BetaMessageContentParam.ofString(string).
-
addUserMessageOfContentBlockParams
final ThreadCreateParams.Builder addUserMessageOfContentBlockParams(List<BetaContentBlockParam> contentBlockParams)
Alias for calling addUserMessage with
BetaMessageContentParam.ofContentBlockParams(contentBlockParams).
-
addAssistantMessage
final ThreadCreateParams.Builder addAssistantMessage(BetaMessageContentParam content)
Alias for calling addMessage with the following:
BetaAssistantMessageParam.builder() .content(content) .build()
-
addAssistantMessage
final ThreadCreateParams.Builder addAssistantMessage(String string)
Alias for calling addAssistantMessage with
BetaMessageContentParam.ofString(string).
-
addAssistantMessageOfContentBlockParams
final ThreadCreateParams.Builder addAssistantMessageOfContentBlockParams(List<BetaContentBlockParam> contentBlockParams)
Alias for calling addAssistantMessage with
BetaMessageContentParam.ofContentBlockParams(contentBlockParams).
-
addSystemMessage
final ThreadCreateParams.Builder addSystemMessage(BetaSystemMessageParam.Content content)
Alias for calling addMessage with the following:
BetaSystemMessageParam.builder() .content(content) .build()
-
addSystemMessage
final ThreadCreateParams.Builder addSystemMessage(String string)
Alias for calling addSystemMessage with
BetaSystemMessageParam.Content.ofString(string).
-
addSystemMessageOfBlocks
final ThreadCreateParams.Builder addSystemMessageOfBlocks(List<BetaSystemMessageParam.Content.SystemMessageContentBlock> blocks)
Alias for calling addSystemMessage with
BetaSystemMessageParam.Content.ofBlocks(blocks).
-
model
final ThreadCreateParams.Builder model(Model model)
-
model
final ThreadCreateParams.Builder model(JsonField<Model> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed Model value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final ThreadCreateParams.Builder model(String value)
Sets model to an arbitrary String.
You should usually call model with a well-typed Model constant instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
billingPolicy
final ThreadCreateParams.Builder billingPolicy(BetaBillingPolicy billingPolicy)
-
billingPolicy
final ThreadCreateParams.Builder billingPolicy(Optional<BetaBillingPolicy> billingPolicy)
Alias for calling Builder.billingPolicy with
billingPolicy.orElse(null).
-
billingPolicy
final ThreadCreateParams.Builder billingPolicy(JsonField<BetaBillingPolicy> billingPolicy)
Sets Builder.billingPolicy to an arbitrary JSON value.
You should usually call Builder.billingPolicy with a well-typed BetaBillingPolicy value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final ThreadCreateParams.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
-
cacheControl
final ThreadCreateParams.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final ThreadCreateParams.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed BetaCacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
compaction
final ThreadCreateParams.Builder compaction(BetaCompactionConfig compaction)
-
compaction
final ThreadCreateParams.Builder compaction(Optional<BetaCompactionConfig> compaction)
Alias for calling Builder.compaction with
compaction.orElse(null).
-
compaction
final ThreadCreateParams.Builder compaction(JsonField<BetaCompactionConfig> compaction)
Sets Builder.compaction to an arbitrary JSON value.
You should usually call Builder.compaction with a well-typed BetaCompactionConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
container
final ThreadCreateParams.Builder container(MessageCreateParams.Container container)
-
container
final ThreadCreateParams.Builder container(Optional<MessageCreateParams.Container> container)
Alias for calling Builder.container with
container.orElse(null).
-
container
final ThreadCreateParams.Builder container(JsonField<MessageCreateParams.Container> container)
Sets Builder.container to an arbitrary JSON value.
You should usually call Builder.container with a well-typed MessageCreateParams.Container value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
container
final ThreadCreateParams.Builder container(BetaContainerParams betaContainerParams)
Alias for calling container with
MessageCreateParams.Container.ofBetaContainerParams(betaContainerParams).
-
container
final ThreadCreateParams.Builder container(String string)
Alias for calling container with
MessageCreateParams.Container.ofString(string).
-
contextManagement
final ThreadCreateParams.Builder contextManagement(BetaContextManagementConfig contextManagement)
-
contextManagement
final ThreadCreateParams.Builder contextManagement(Optional<BetaContextManagementConfig> contextManagement)
Alias for calling Builder.contextManagement with
contextManagement.orElse(null).
-
contextManagement
final ThreadCreateParams.Builder contextManagement(JsonField<BetaContextManagementConfig> contextManagement)
Sets Builder.contextManagement to an arbitrary JSON value.
You should usually call Builder.contextManagement with a well-typed BetaContextManagementConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
diagnostics
final ThreadCreateParams.Builder diagnostics(BetaDiagnosticsParam diagnostics)
-
diagnostics
final ThreadCreateParams.Builder diagnostics(Optional<BetaDiagnosticsParam> diagnostics)
Alias for calling Builder.diagnostics with
diagnostics.orElse(null).
-
diagnostics
final ThreadCreateParams.Builder diagnostics(JsonField<BetaDiagnosticsParam> diagnostics)
Sets Builder.diagnostics to an arbitrary JSON value.
You should usually call Builder.diagnostics with a well-typed BetaDiagnosticsParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fallbackCreditToken
final ThreadCreateParams.Builder fallbackCreditToken(MessageCreateParams.FallbackCreditToken fallbackCreditToken)
-
fallbackCreditToken
final ThreadCreateParams.Builder fallbackCreditToken(Optional<MessageCreateParams.FallbackCreditToken> fallbackCreditToken)
Alias for calling Builder.fallbackCreditToken with
fallbackCreditToken.orElse(null).
-
fallbackCreditToken
final ThreadCreateParams.Builder fallbackCreditToken(JsonField<MessageCreateParams.FallbackCreditToken> fallbackCreditToken)
Sets Builder.fallbackCreditToken to an arbitrary JSON value.
You should usually call Builder.fallbackCreditToken with a well-typed MessageCreateParams.FallbackCreditToken value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fallbackCreditToken
final ThreadCreateParams.Builder fallbackCreditToken(String string)
Alias for calling fallbackCreditToken with
MessageCreateParams.FallbackCreditToken.ofString(string).
-
fallbackCreditToken
final ThreadCreateParams.Builder fallbackCreditToken(BetaFallbackCreditTokenParam betaFallbackCreditTokenParam)
Alias for calling fallbackCreditToken with
MessageCreateParams.FallbackCreditToken.ofBetaFallbackCreditTokenParam(betaFallbackCreditTokenParam).
-
fallbacks
final ThreadCreateParams.Builder fallbacks(BetaFallbacksParam fallbacks)
-
fallbacks
final ThreadCreateParams.Builder fallbacks(Optional<BetaFallbacksParam> fallbacks)
Alias for calling Builder.fallbacks with
fallbacks.orElse(null).
-
fallbacks
final ThreadCreateParams.Builder fallbacks(JsonField<BetaFallbacksParam> fallbacks)
Sets Builder.fallbacks to an arbitrary JSON value.
You should usually call Builder.fallbacks with a well-typed BetaFallbacksParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fallbacksOfFallbackParams
final ThreadCreateParams.Builder fallbacksOfFallbackParams(List<BetaFallbackParam> fallbackParams)
Alias for calling fallbacks with
BetaFallbacksParam.ofFallbackParams(fallbackParams).
-
fallbacksDefault
final ThreadCreateParams.Builder fallbacksDefault()
Alias for calling fallbacks with
BetaFallbacksParam.ofDefault().
-
inferenceGeo
final ThreadCreateParams.Builder inferenceGeo(String inferenceGeo)
-
inferenceGeo
final ThreadCreateParams.Builder inferenceGeo(Optional<String> inferenceGeo)
Alias for calling Builder.inferenceGeo with
inferenceGeo.orElse(null).
-
inferenceGeo
final ThreadCreateParams.Builder inferenceGeo(JsonField<String> inferenceGeo)
Sets Builder.inferenceGeo to an arbitrary JSON value.
You should usually call Builder.inferenceGeo with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
mcpServers
final ThreadCreateParams.Builder mcpServers(List<BetaRequestMcpServerUrlDefinition> mcpServers)
-
mcpServers
final ThreadCreateParams.Builder mcpServers(JsonField<List<BetaRequestMcpServerUrlDefinition>> mcpServers)
Sets Builder.mcpServers to an arbitrary JSON value.
You should usually call Builder.mcpServers with a well-typed
List<BetaRequestMcpServerUrlDefinition>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addMcpServer
final ThreadCreateParams.Builder addMcpServer(BetaRequestMcpServerUrlDefinition mcpServer)
Adds a single BetaRequestMcpServerUrlDefinition to mcpServers.
-
metadata
final ThreadCreateParams.Builder metadata(BetaMetadata metadata)
-
metadata
final ThreadCreateParams.Builder metadata(JsonField<BetaMetadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed BetaMetadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputConfig
final ThreadCreateParams.Builder outputConfig(BetaOutputConfig outputConfig)
-
outputConfig
final ThreadCreateParams.Builder outputConfig(JsonField<BetaOutputConfig> outputConfig)
Sets Builder.outputConfig to an arbitrary JSON value.
You should usually call Builder.outputConfig with a well-typed BetaOutputConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputConfig
@JvmOverloads() final <T extends Any> StructuredThreadCreateParams.Builder<T> outputConfig(Class<T> outputType, JsonSchemaLocalValidation localValidation)
Sets the output format of the output configuration to a JSON schema derived from the structure of the given class, preserving any other output configuration options already set. This changes the builder to a type-safe StructuredThreadCreateParams.Builder that will build a StructuredThreadCreateParams instance when
build()is called.- Parameters:
outputType- A class from which a JSON schema will be derived to define the output format.localValidation- JsonSchemaLocalValidation.YES (the default) to validate the JSON schema locally when it is generated by this method to confirm that it adheres to the requirements and restrictions on JSON schemas imposed by the Anthropic specification; or JsonSchemaLocalValidation.NO to skip local validation and rely only on remote validation.
-
outputConfig
@JvmOverloads() final <T extends Any> StructuredThreadCreateParams.Builder<T> outputConfig(Class<T> outputType)
Sets the output format of the output configuration to a JSON schema derived from the structure of the given class, preserving any other output configuration options already set. This changes the builder to a type-safe StructuredThreadCreateParams.Builder that will build a StructuredThreadCreateParams instance when
build()is called.- Parameters:
outputType- A class from which a JSON schema will be derived to define the output format.
-
outputConfig
final <T extends Any> StructuredThreadCreateParams.Builder<T> outputConfig(StructuredOutputConfig<T> outputConfig)
Sets the output configuration, including a JSON schema format derived from the structure of the output type of the given structured output configuration. Use this instead of passing only the output type to set other output configuration options (such as the effort level or task budget) alongside the output type. This changes the builder to a type-safe StructuredThreadCreateParams.Builder that will build a StructuredThreadCreateParams instance when
build()is called.- Parameters:
outputConfig- The structured output configuration recording the class from which the JSON schema was derived and the other output configuration options.
-
outputFormat
@Deprecated(message = "deprecated") final ThreadCreateParams.Builder outputFormat(BetaJsonOutputFormat outputFormat)
-
outputFormat
@Deprecated(message = "deprecated") final ThreadCreateParams.Builder outputFormat(Optional<BetaJsonOutputFormat> outputFormat)
Alias for calling Builder.outputFormat with
outputFormat.orElse(null).
-
outputFormat
@Deprecated(message = "deprecated") final ThreadCreateParams.Builder outputFormat(JsonField<BetaJsonOutputFormat> outputFormat)
Sets Builder.outputFormat to an arbitrary JSON value.
You should usually call Builder.outputFormat with a well-typed BetaJsonOutputFormat value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
serviceTier
final ThreadCreateParams.Builder serviceTier(MessageCreateParams.ServiceTier serviceTier)
-
serviceTier
final ThreadCreateParams.Builder serviceTier(JsonField<MessageCreateParams.ServiceTier> serviceTier)
Sets Builder.serviceTier to an arbitrary JSON value.
You should usually call Builder.serviceTier with a well-typed MessageCreateParams.ServiceTier value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
speed
final ThreadCreateParams.Builder speed(MessageCreateParams.Speed speed)
-
speed
final ThreadCreateParams.Builder speed(Optional<MessageCreateParams.Speed> speed)
Alias for calling Builder.speed with
speed.orElse(null).
-
speed
final ThreadCreateParams.Builder speed(JsonField<MessageCreateParams.Speed> speed)
Sets Builder.speed to an arbitrary JSON value.
You should usually call Builder.speed with a well-typed MessageCreateParams.Speed value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stopSequences
final ThreadCreateParams.Builder stopSequences(List<String> stopSequences)
-
stopSequences
final ThreadCreateParams.Builder stopSequences(JsonField<List<String>> stopSequences)
Sets Builder.stopSequences to an arbitrary JSON value.
You should usually call Builder.stopSequences with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addStopSequence
final ThreadCreateParams.Builder addStopSequence(String stopSequence)
Adds a single String to stopSequences.
-
system
final ThreadCreateParams.Builder system(MessageCreateParams.System system)
-
system
final ThreadCreateParams.Builder system(JsonField<MessageCreateParams.System> system)
Sets Builder.system to an arbitrary JSON value.
You should usually call Builder.system with a well-typed MessageCreateParams.System value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
system
final ThreadCreateParams.Builder system(String string)
Alias for calling system with
MessageCreateParams.System.ofString(string).
-
systemOfBetaTextBlockParams
final ThreadCreateParams.Builder systemOfBetaTextBlockParams(List<BetaTextBlockParam> betaTextBlockParams)
Alias for calling system with
MessageCreateParams.System.ofBetaTextBlockParams(betaTextBlockParams).
-
thinking
final ThreadCreateParams.Builder thinking(BetaThinkingConfigParam thinking)
-
thinking
final ThreadCreateParams.Builder thinking(JsonField<BetaThinkingConfigParam> thinking)
Sets Builder.thinking to an arbitrary JSON value.
You should usually call Builder.thinking with a well-typed BetaThinkingConfigParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
thinking
final ThreadCreateParams.Builder thinking(BetaThinkingConfigEnabled enabled)
Alias for calling thinking with
BetaThinkingConfigParam.ofEnabled(enabled).
-
thinking
final ThreadCreateParams.Builder thinking(BetaThinkingConfigDisabled disabled)
Alias for calling thinking with
BetaThinkingConfigParam.ofDisabled(disabled).
-
thinking
final ThreadCreateParams.Builder thinking(BetaThinkingConfigBetweenTools betweenTools)
Alias for calling thinking with
BetaThinkingConfigParam.ofBetweenTools(betweenTools).
-
thinking
final ThreadCreateParams.Builder thinking(BetaThinkingConfigAdaptive adaptive)
Alias for calling thinking with
BetaThinkingConfigParam.ofAdaptive(adaptive).
-
enabledThinking
final ThreadCreateParams.Builder enabledThinking(Long budgetTokens)
Alias for calling thinking with the following:
BetaThinkingConfigEnabled.builder() .budgetTokens(budgetTokens) .build()
-
toolChoice
final ThreadCreateParams.Builder toolChoice(BetaToolChoice toolChoice)
-
toolChoice
final ThreadCreateParams.Builder toolChoice(JsonField<BetaToolChoice> toolChoice)
Sets Builder.toolChoice to an arbitrary JSON value.
You should usually call Builder.toolChoice with a well-typed BetaToolChoice value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolChoice
final ThreadCreateParams.Builder toolChoice(BetaToolChoiceAuto auto)
Alias for calling toolChoice with
BetaToolChoice.ofAuto(auto).
-
toolChoice
final ThreadCreateParams.Builder toolChoice(BetaToolChoiceAny any)
Alias for calling toolChoice with
BetaToolChoice.ofAny(any).
-
toolChoice
final ThreadCreateParams.Builder toolChoice(BetaToolChoiceTool tool)
Alias for calling toolChoice with
BetaToolChoice.ofTool(tool).
-
toolChoice
final ThreadCreateParams.Builder toolChoice(BetaToolChoiceNone none)
Alias for calling toolChoice with
BetaToolChoice.ofNone(none).
-
toolToolChoice
final ThreadCreateParams.Builder toolToolChoice(String name)
Alias for calling toolChoice with the following:
BetaToolChoiceTool.builder() .name(name) .build()
-
tools
final ThreadCreateParams.Builder tools(List<BetaToolUnion> tools)
-
tools
final ThreadCreateParams.Builder tools(JsonField<List<BetaToolUnion>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<BetaToolUnion>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolUnion tool)
Adds a single BetaToolUnion to tools.
-
addTool
final ThreadCreateParams.Builder addTool(BetaResponseToolUnion tool)
Alias for calling addTool with
tool.toParam().
-
addTool
final ThreadCreateParams.Builder addTool(BetaResponseTool betaResponseTool)
Alias for calling addTool with
BetaResponseToolUnion.ofBetaResponseTool(betaResponseTool).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolBash20241022 toolBash20241022)
Alias for calling addTool with
BetaResponseToolUnion.ofToolBash20241022(toolBash20241022).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolBash20250124 toolBash20250124)
Alias for calling addTool with
BetaResponseToolUnion.ofToolBash20250124(toolBash20250124).
-
addTool
final ThreadCreateParams.Builder addTool(BetaCodeExecutionTool20250522 codeExecutionTool20250522)
Alias for calling addTool with
BetaResponseToolUnion.ofCodeExecutionTool20250522(codeExecutionTool20250522).
-
addTool
final ThreadCreateParams.Builder addTool(BetaCodeExecutionTool20250825 codeExecutionTool20250825)
Alias for calling addTool with
BetaResponseToolUnion.ofCodeExecutionTool20250825(codeExecutionTool20250825).
-
addTool
final ThreadCreateParams.Builder addTool(BetaCodeExecutionTool20260120 codeExecutionTool20260120)
Alias for calling addTool with
BetaResponseToolUnion.ofCodeExecutionTool20260120(codeExecutionTool20260120).
-
addTool
final ThreadCreateParams.Builder addTool(BetaCodeExecutionTool20260521 codeExecutionTool20260521)
Alias for calling addTool with
BetaResponseToolUnion.ofCodeExecutionTool20260521(codeExecutionTool20260521).
-
addTool
final ThreadCreateParams.Builder addTool(BetaBrowserToolset20260801 browserToolset20260801)
Alias for calling addTool with
BetaResponseToolUnion.ofBrowserToolset20260801(browserToolset20260801).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolComputerUse20241022 toolComputerUse20241022)
Alias for calling addTool with
BetaResponseToolUnion.ofToolComputerUse20241022(toolComputerUse20241022).
-
addTool
final ThreadCreateParams.Builder addTool(BetaMemoryTool20250818 memoryTool20250818)
Alias for calling addTool with
BetaResponseToolUnion.ofMemoryTool20250818(memoryTool20250818).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolComputerUse20250124 toolComputerUse20250124)
Alias for calling addTool with
BetaResponseToolUnion.ofToolComputerUse20250124(toolComputerUse20250124).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolTextEditor20241022 toolTextEditor20241022)
Alias for calling addTool with
BetaResponseToolUnion.ofToolTextEditor20241022(toolTextEditor20241022).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolComputerUse20251124 toolComputerUse20251124)
Alias for calling addTool with
BetaResponseToolUnion.ofToolComputerUse20251124(toolComputerUse20251124).
-
addTool
final ThreadCreateParams.Builder addTool(BetaComputerToolset20260801 computerToolset20260801)
Alias for calling addTool with
BetaResponseToolUnion.ofComputerToolset20260801(computerToolset20260801).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolTextEditor20250124 toolTextEditor20250124)
Alias for calling addTool with
BetaResponseToolUnion.ofToolTextEditor20250124(toolTextEditor20250124).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolTextEditor20250429 toolTextEditor20250429)
Alias for calling addTool with
BetaResponseToolUnion.ofToolTextEditor20250429(toolTextEditor20250429).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolTextEditor20250728 toolTextEditor20250728)
Alias for calling addTool with
BetaResponseToolUnion.ofToolTextEditor20250728(toolTextEditor20250728).
-
addTool
final ThreadCreateParams.Builder addTool(BetaWebSearchTool20250305 webSearchTool20250305)
Alias for calling addTool with
BetaResponseToolUnion.ofWebSearchTool20250305(webSearchTool20250305).
-
addTool
final ThreadCreateParams.Builder addTool(BetaWebFetchTool20250910 webFetchTool20250910)
Alias for calling addTool with
BetaResponseToolUnion.ofWebFetchTool20250910(webFetchTool20250910).
-
addTool
final ThreadCreateParams.Builder addTool(BetaWebSearchTool20260209 webSearchTool20260209)
Alias for calling addTool with
BetaResponseToolUnion.ofWebSearchTool20260209(webSearchTool20260209).
-
addTool
final ThreadCreateParams.Builder addTool(BetaWebFetchTool20260209 webFetchTool20260209)
Alias for calling addTool with
BetaResponseToolUnion.ofWebFetchTool20260209(webFetchTool20260209).
-
addTool
final ThreadCreateParams.Builder addTool(BetaWebFetchTool20260309 webFetchTool20260309)
Alias for calling addTool with
BetaResponseToolUnion.ofWebFetchTool20260309(webFetchTool20260309).
-
addTool
final ThreadCreateParams.Builder addTool(BetaWebSearchTool20260318 webSearchTool20260318)
Alias for calling addTool with
BetaResponseToolUnion.ofWebSearchTool20260318(webSearchTool20260318).
-
addTool
final ThreadCreateParams.Builder addTool(BetaWebFetchTool20260318 webFetchTool20260318)
Alias for calling addTool with
BetaResponseToolUnion.ofWebFetchTool20260318(webFetchTool20260318).
-
addTool
final ThreadCreateParams.Builder addTool(BetaAdvisorTool20260301 advisorTool20260301)
Alias for calling addTool with
BetaResponseToolUnion.ofAdvisorTool20260301(advisorTool20260301).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolSearchToolBm25_20251119 toolSearchToolBm25_20251119)
Alias for calling addTool with
BetaResponseToolUnion.ofToolSearchToolBm25_20251119(toolSearchToolBm25_20251119).
-
addTool
final ThreadCreateParams.Builder addTool(BetaToolSearchToolRegex20251119 toolSearchToolRegex20251119)
Alias for calling addTool with
BetaResponseToolUnion.ofToolSearchToolRegex20251119(toolSearchToolRegex20251119).
-
addTool
final ThreadCreateParams.Builder addTool(BetaMcpToolset mcpToolset)
Alias for calling addTool with
BetaResponseToolUnion.ofMcpToolset(mcpToolset).
-
addTool
final ThreadCreateParams.Builder addTool(BetaTool betaTool)
Alias for calling addTool with
BetaToolUnion.ofBetaTool(betaTool).
-
addTool
@JvmOverloads() final ThreadCreateParams.Builder addTool(Class<?> toolParametersType, JsonSchemaLocalValidation localValidation)
-
addTool
@JvmOverloads() final ThreadCreateParams.Builder addTool(Class<?> toolParametersType)
-
addTool
final ThreadCreateParams.Builder addTool(BetaRunnableTool tool)
-
addTool
final ThreadCreateParams.Builder addTool(McpBetaTool tool)
-
addTools
final ThreadCreateParams.Builder addTools(List<McpBetaTool> tools)
-
additionalBodyProperties
final ThreadCreateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final ThreadCreateParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final ThreadCreateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final ThreadCreateParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final ThreadCreateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
additionalHeaders
final ThreadCreateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final ThreadCreateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
putAdditionalHeader
final ThreadCreateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final ThreadCreateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final ThreadCreateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final ThreadCreateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final ThreadCreateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final ThreadCreateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final ThreadCreateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final ThreadCreateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final ThreadCreateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final ThreadCreateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
additionalQueryParams
final ThreadCreateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final ThreadCreateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
putAdditionalQueryParam
final ThreadCreateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final ThreadCreateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final ThreadCreateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final ThreadCreateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final ThreadCreateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final ThreadCreateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final ThreadCreateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final ThreadCreateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final ThreadCreateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final ThreadCreateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final ThreadCreateParams build()
Returns an immutable instance of ThreadCreateParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.maxTokens() .model()
-
-
-
-