Class ThinkingConfig.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ThinkingConfig.Builder>
co.elastic.clients.elasticsearch.inference.ThinkingConfig.Builder
- All Implemented Interfaces:
WithJson<ThinkingConfig.Builder>,ObjectBuilder<ThinkingConfig>
- Enclosing class:
- ThinkingConfig
public static class ThinkingConfig.Builder
extends WithJsonObjectBuilderBase<ThinkingConfig.Builder>
implements ObjectBuilder<ThinkingConfig>
Builder for
ThinkingConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aThinkingConfig.protected ThinkingConfig.Builderself()final ThinkingConfig.BuilderthinkingBudget(Integer value) Indicates the desired thinking budget in tokens.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
thinkingBudget
Indicates the desired thinking budget in tokens.API name:
thinking_budget -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ThinkingConfig.Builder>
-
build
Builds aThinkingConfig.- Specified by:
buildin interfaceObjectBuilder<ThinkingConfig>- Throws:
NullPointerException- if some of the required fields are null.
-