Class StructuredMessageCreateParams.Builder
-
- All Implemented Interfaces:
public final class StructuredMessageCreateParams.Builder<T extends Object>A builder for StructuredMessageCreateParams.
-
-
Method Summary
-
-
Method Detail
-
userProfileId
final StructuredMessageCreateParams.Builder<T> userProfileId(String userProfileId)
-
userProfileId
final StructuredMessageCreateParams.Builder<T> userProfileId(Optional<String> userProfileId)
Alias for calling Builder.userProfileId with
userProfileId.orElse(null).
-
workspaceId
final StructuredMessageCreateParams.Builder<T> workspaceId(String workspaceId)
-
workspaceId
final StructuredMessageCreateParams.Builder<T> workspaceId(Optional<String> workspaceId)
Alias for calling Builder.workspaceId with
workspaceId.orElse(null).
-
maxTokens
final StructuredMessageCreateParams.Builder<T> maxTokens(Long maxTokens)
-
maxTokens
final StructuredMessageCreateParams.Builder<T> 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 StructuredMessageCreateParams.Builder<T> messages(List<MessageParam> messages)
-
messages
final StructuredMessageCreateParams.Builder<T> messages(JsonField<List<MessageParam>> messages)
Sets Builder.messages to an arbitrary JSON value.
You should usually call Builder.messages with a well-typed
List<MessageParam>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addMessage
final StructuredMessageCreateParams.Builder<T> addMessage(MessageParam message)
Adds a single MessageParam to messages.
-
addMessage
final StructuredMessageCreateParams.Builder<T> addMessage(Message message)
Alias for calling addMessage with
message.toParam().
-
addMessage
final StructuredMessageCreateParams.Builder<T> addMessage(UserMessageParam user)
Alias for calling addMessage with
MessageParam.ofUser(user).
-
addMessage
final StructuredMessageCreateParams.Builder<T> addMessage(AssistantMessageParam assistant)
Alias for calling addMessage with
MessageParam.ofAssistant(assistant).
-
addMessage
final StructuredMessageCreateParams.Builder<T> addMessage(SystemMessageParam system)
Alias for calling addMessage with
MessageParam.ofSystem(system).
-
addUserMessage
final StructuredMessageCreateParams.Builder<T> addUserMessage(MessageContentParam content)
Alias for calling addMessage with the following:
UserMessageParam.builder() .content(content) .build()
-
addUserMessage
final StructuredMessageCreateParams.Builder<T> addUserMessage(String string)
Alias for calling addUserMessage with
MessageContentParam.ofString(string).
-
addUserMessageOfContentBlockParams
final StructuredMessageCreateParams.Builder<T> addUserMessageOfContentBlockParams(List<ContentBlockParam> contentBlockParams)
Alias for calling addUserMessage with
MessageContentParam.ofContentBlockParams(contentBlockParams).
-
addAssistantMessage
final StructuredMessageCreateParams.Builder<T> addAssistantMessage(MessageContentParam content)
Alias for calling addMessage with the following:
AssistantMessageParam.builder() .content(content) .build()
-
addAssistantMessage
final StructuredMessageCreateParams.Builder<T> addAssistantMessage(String string)
Alias for calling addAssistantMessage with
MessageContentParam.ofString(string).
-
addAssistantMessageOfContentBlockParams
final StructuredMessageCreateParams.Builder<T> addAssistantMessageOfContentBlockParams(List<ContentBlockParam> contentBlockParams)
Alias for calling addAssistantMessage with
MessageContentParam.ofContentBlockParams(contentBlockParams).
-
addSystemMessage
final StructuredMessageCreateParams.Builder<T> addSystemMessage(SystemMessageParam.Content content)
Alias for calling addMessage with the following:
SystemMessageParam.builder() .content(content) .build()
-
addSystemMessage
final StructuredMessageCreateParams.Builder<T> addSystemMessage(String string)
Alias for calling addSystemMessage with
SystemMessageParam.Content.ofString(string).
-
addSystemMessageOfBlocks
final StructuredMessageCreateParams.Builder<T> addSystemMessageOfBlocks(List<TextBlockParam> blocks)
Alias for calling addSystemMessage with
SystemMessageParam.Content.ofBlocks(blocks).
-
model
final StructuredMessageCreateParams.Builder<T> model(Model model)
-
model
final StructuredMessageCreateParams.Builder<T> 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 StructuredMessageCreateParams.Builder<T> 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.
-
cacheControl
final StructuredMessageCreateParams.Builder<T> cacheControl(CacheControlEphemeral cacheControl)
-
cacheControl
final StructuredMessageCreateParams.Builder<T> cacheControl(Optional<CacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final StructuredMessageCreateParams.Builder<T> cacheControl(JsonField<CacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed CacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
container
final StructuredMessageCreateParams.Builder<T> container(MessageCreateParamsContainer container)
-
container
final StructuredMessageCreateParams.Builder<T> container(Optional<MessageCreateParamsContainer> container)
Alias for calling Builder.container with
container.orElse(null).
-
container
final StructuredMessageCreateParams.Builder<T> container(JsonField<MessageCreateParamsContainer> container)
Sets Builder.container to an arbitrary JSON value.
You should usually call Builder.container with a well-typed MessageCreateParamsContainer value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
container
final StructuredMessageCreateParams.Builder<T> container(ContainerParams containerParams)
Alias for calling container with
MessageCreateParamsContainer.ofContainerParams(containerParams).
-
container
final StructuredMessageCreateParams.Builder<T> container(String string)
Alias for calling container with
MessageCreateParamsContainer.ofString(string).
-
diagnostics
final StructuredMessageCreateParams.Builder<T> diagnostics(DiagnosticsParam diagnostics)
-
diagnostics
final StructuredMessageCreateParams.Builder<T> diagnostics(Optional<DiagnosticsParam> diagnostics)
Alias for calling Builder.diagnostics with
diagnostics.orElse(null).
-
diagnostics
final StructuredMessageCreateParams.Builder<T> diagnostics(JsonField<DiagnosticsParam> diagnostics)
Sets Builder.diagnostics to an arbitrary JSON value.
You should usually call Builder.diagnostics with a well-typed DiagnosticsParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inferenceGeo
final StructuredMessageCreateParams.Builder<T> inferenceGeo(String inferenceGeo)
-
inferenceGeo
final StructuredMessageCreateParams.Builder<T> inferenceGeo(Optional<String> inferenceGeo)
Alias for calling Builder.inferenceGeo with
inferenceGeo.orElse(null).
-
inferenceGeo
final StructuredMessageCreateParams.Builder<T> 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.
-
metadata
final StructuredMessageCreateParams.Builder<T> metadata(Metadata metadata)
-
metadata
final StructuredMessageCreateParams.Builder<T> metadata(JsonField<Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputConfig
final StructuredMessageCreateParams.Builder<T> outputConfig(OutputConfig outputConfig)
Sets the output configuration, carrying over the output format already set unless the given output configuration sets its own, as the response will still be deserialized to an instance of the output type.
-
outputConfig
final StructuredMessageCreateParams.Builder<T> outputConfig(JsonField<OutputConfig> outputConfig)
Sets the output configuration, carrying over the output format already set unless the given output configuration is not an OutputConfig value or sets its own.
-
outputConfig
final StructuredMessageCreateParams.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 the output type alone to set other output configuration options alongside the output type.
Unlike the beta version, this GA version does NOT auto-inject any beta header.
-
outputConfig
@JvmOverloads() final StructuredMessageCreateParams.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 is the recommended way to specify structured outputs.
Unlike the beta version, this GA version does NOT auto-inject any beta header.
-
outputConfig
@JvmOverloads() final StructuredMessageCreateParams.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 is the recommended way to specify structured outputs.
Unlike the beta version, this GA version does NOT auto-inject any beta header.
-
serviceTier
final StructuredMessageCreateParams.Builder<T> serviceTier(MessageCreateParams.ServiceTier serviceTier)
-
serviceTier
final StructuredMessageCreateParams.Builder<T> 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 StructuredMessageCreateParams.Builder<T> speed(MessageCreateParams.Speed speed)
-
speed
final StructuredMessageCreateParams.Builder<T> speed(Optional<MessageCreateParams.Speed> speed)
Alias for calling Builder.speed with
speed.orElse(null).
-
speed
final StructuredMessageCreateParams.Builder<T> 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 StructuredMessageCreateParams.Builder<T> stopSequences(List<String> stopSequences)
-
stopSequences
final StructuredMessageCreateParams.Builder<T> 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 StructuredMessageCreateParams.Builder<T> addStopSequence(String stopSequence)
Adds a single String to stopSequences.
-
system
final StructuredMessageCreateParams.Builder<T> system(MessageCreateParams.System system)
-
system
final StructuredMessageCreateParams.Builder<T> 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 StructuredMessageCreateParams.Builder<T> system(String string)
Alias for calling system with
MessageCreateParams.System.ofString(string).
-
systemOfTextBlockParams
final StructuredMessageCreateParams.Builder<T> systemOfTextBlockParams(List<TextBlockParam> textBlockParams)
Alias for calling system with
MessageCreateParams.System.ofTextBlockParams(textBlockParams).
-
thinking
final StructuredMessageCreateParams.Builder<T> thinking(ThinkingConfigParam thinking)
-
thinking
final StructuredMessageCreateParams.Builder<T> thinking(JsonField<ThinkingConfigParam> thinking)
Sets Builder.thinking to an arbitrary JSON value.
You should usually call Builder.thinking with a well-typed ThinkingConfigParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
thinking
final StructuredMessageCreateParams.Builder<T> thinking(ThinkingConfigEnabled enabled)
Alias for calling thinking with
ThinkingConfigParam.ofEnabled(enabled).
-
thinking
final StructuredMessageCreateParams.Builder<T> thinking(ThinkingConfigDisabled disabled)
Alias for calling thinking with
ThinkingConfigParam.ofDisabled(disabled).
-
thinking
final StructuredMessageCreateParams.Builder<T> thinking(ThinkingConfigBetweenTools betweenTools)
Alias for calling thinking with
ThinkingConfigParam.ofBetweenTools(betweenTools).
-
thinking
final StructuredMessageCreateParams.Builder<T> thinking(ThinkingConfigAdaptive adaptive)
Alias for calling thinking with
ThinkingConfigParam.ofAdaptive(adaptive).
-
enabledThinking
final StructuredMessageCreateParams.Builder<T> enabledThinking(Long budgetTokens)
Alias for calling thinking with the following:
ThinkingConfigEnabled.builder() .budgetTokens(budgetTokens) .build()
-
toolChoice
final StructuredMessageCreateParams.Builder<T> toolChoice(ToolChoice toolChoice)
-
toolChoice
final StructuredMessageCreateParams.Builder<T> toolChoice(JsonField<ToolChoice> toolChoice)
Sets Builder.toolChoice to an arbitrary JSON value.
You should usually call Builder.toolChoice with a well-typed ToolChoice value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolChoice
final StructuredMessageCreateParams.Builder<T> toolChoice(ToolChoiceAuto auto)
Alias for calling toolChoice with
ToolChoice.ofAuto(auto).
-
toolChoice
final StructuredMessageCreateParams.Builder<T> toolChoice(ToolChoiceAny any)
Alias for calling toolChoice with
ToolChoice.ofAny(any).
-
toolChoice
final StructuredMessageCreateParams.Builder<T> toolChoice(ToolChoiceTool tool)
Alias for calling toolChoice with
ToolChoice.ofTool(tool).
-
toolChoice
final StructuredMessageCreateParams.Builder<T> toolChoice(ToolChoiceNone none)
Alias for calling toolChoice with
ToolChoice.ofNone(none).
-
toolToolChoice
final StructuredMessageCreateParams.Builder<T> toolToolChoice(String name)
Alias for calling toolChoice with the following:
ToolChoiceTool.builder() .name(name) .build()
-
tools
final StructuredMessageCreateParams.Builder<T> tools(List<ToolUnion> tools)
-
tools
final StructuredMessageCreateParams.Builder<T> tools(JsonField<List<ToolUnion>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<ToolUnion>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(ToolUnion tool)
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(Tool tool)
Alias for calling addTool with
ToolUnion.ofTool(tool).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(ToolBash20250124 bash20250124)
Alias for calling addTool with
ToolUnion.ofBash20250124(bash20250124).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(CodeExecutionTool20250522 codeExecutionTool20250522)
Alias for calling addTool with
ToolUnion.ofCodeExecutionTool20250522(codeExecutionTool20250522).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(CodeExecutionTool20250825 codeExecutionTool20250825)
Alias for calling addTool with
ToolUnion.ofCodeExecutionTool20250825(codeExecutionTool20250825).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(CodeExecutionTool20260120 codeExecutionTool20260120)
Alias for calling addTool with
ToolUnion.ofCodeExecutionTool20260120(codeExecutionTool20260120).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(CodeExecutionTool20260521 codeExecutionTool20260521)
Alias for calling addTool with
ToolUnion.ofCodeExecutionTool20260521(codeExecutionTool20260521).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(BrowserToolset20260801 browserToolset20260801)
Alias for calling addTool with
ToolUnion.ofBrowserToolset20260801(browserToolset20260801).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(MemoryTool20250818 memoryTool20250818)
Alias for calling addTool with
ToolUnion.ofMemoryTool20250818(memoryTool20250818).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(ComputerToolset20260801 computerToolset20260801)
Alias for calling addTool with
ToolUnion.ofComputerToolset20260801(computerToolset20260801).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(ToolTextEditor20250124 textEditor20250124)
Alias for calling addTool with
ToolUnion.ofTextEditor20250124(textEditor20250124).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(ToolTextEditor20250429 textEditor20250429)
Alias for calling addTool with
ToolUnion.ofTextEditor20250429(textEditor20250429).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(ToolTextEditor20250728 textEditor20250728)
Alias for calling addTool with
ToolUnion.ofTextEditor20250728(textEditor20250728).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(WebSearchTool20250305 webSearchTool20250305)
Alias for calling addTool with
ToolUnion.ofWebSearchTool20250305(webSearchTool20250305).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(WebFetchTool20250910 webFetchTool20250910)
Alias for calling addTool with
ToolUnion.ofWebFetchTool20250910(webFetchTool20250910).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(WebSearchTool20260209 webSearchTool20260209)
Alias for calling addTool with
ToolUnion.ofWebSearchTool20260209(webSearchTool20260209).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(WebFetchTool20260209 webFetchTool20260209)
Alias for calling addTool with
ToolUnion.ofWebFetchTool20260209(webFetchTool20260209).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(WebFetchTool20260309 webFetchTool20260309)
Alias for calling addTool with
ToolUnion.ofWebFetchTool20260309(webFetchTool20260309).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(WebSearchTool20260318 webSearchTool20260318)
Alias for calling addTool with
ToolUnion.ofWebSearchTool20260318(webSearchTool20260318).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(WebFetchTool20260318 webFetchTool20260318)
Alias for calling addTool with
ToolUnion.ofWebFetchTool20260318(webFetchTool20260318).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(ToolSearchToolBm25_20251119 searchToolBm25_20251119)
Alias for calling addTool with
ToolUnion.ofSearchToolBm25_20251119(searchToolBm25_20251119).
-
addTool
final StructuredMessageCreateParams.Builder<T> addTool(ToolSearchToolRegex20251119 searchToolRegex20251119)
Alias for calling addTool with
ToolUnion.ofSearchToolRegex20251119(searchToolRegex20251119).
-
body
final StructuredMessageCreateParams.Builder<T> body(MessageCreateParams.Body body)
-
additionalBodyProperties
final StructuredMessageCreateParams.Builder<T> additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final StructuredMessageCreateParams.Builder<T> putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final StructuredMessageCreateParams.Builder<T> putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final StructuredMessageCreateParams.Builder<T> removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final StructuredMessageCreateParams.Builder<T> removeAllAdditionalBodyProperties(Set<String> keys)
-
additionalHeaders
final StructuredMessageCreateParams.Builder<T> additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final StructuredMessageCreateParams.Builder<T> additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
putAdditionalHeader
final StructuredMessageCreateParams.Builder<T> putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final StructuredMessageCreateParams.Builder<T> putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final StructuredMessageCreateParams.Builder<T> putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final StructuredMessageCreateParams.Builder<T> putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final StructuredMessageCreateParams.Builder<T> replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final StructuredMessageCreateParams.Builder<T> replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final StructuredMessageCreateParams.Builder<T> replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final StructuredMessageCreateParams.Builder<T> replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final StructuredMessageCreateParams.Builder<T> removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final StructuredMessageCreateParams.Builder<T> removeAllAdditionalHeaders(Set<String> names)
-
additionalQueryParams
final StructuredMessageCreateParams.Builder<T> additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final StructuredMessageCreateParams.Builder<T> additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
putAdditionalQueryParam
final StructuredMessageCreateParams.Builder<T> putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final StructuredMessageCreateParams.Builder<T> putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final StructuredMessageCreateParams.Builder<T> putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final StructuredMessageCreateParams.Builder<T> putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final StructuredMessageCreateParams.Builder<T> replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final StructuredMessageCreateParams.Builder<T> replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final StructuredMessageCreateParams.Builder<T> replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final StructuredMessageCreateParams.Builder<T> replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final StructuredMessageCreateParams.Builder<T> removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final StructuredMessageCreateParams.Builder<T> removeAllAdditionalQueryParams(Set<String> keys)
-
build
final StructuredMessageCreateParams<T> build()
Returns an immutable instance of StructuredMessageCreateParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.maxTokens() .messages() .model()
-
-
-
-