Class Reasoning.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Reasoning.Builder>
co.elastic.clients.elasticsearch.inference.Reasoning.Builder
- All Implemented Interfaces:
WithJson<Reasoning.Builder>,ObjectBuilder<Reasoning>
- Enclosing class:
- Reasoning
public static class Reasoning.Builder
extends WithJsonObjectBuilderBase<Reasoning.Builder>
implements ObjectBuilder<Reasoning>
Builder for
Reasoning.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aReasoning.final Reasoning.Buildereffort(ReasoningEffort value) The level of effort the model should put into reasoning.final Reasoning.BuilderWhether to enable reasoning with default settings.final Reasoning.BuilderWhether to exclude reasoning information from the response.protected Reasoning.Builderself()final Reasoning.Buildersummary(ReasoningSummary value) The level of detail included in the reasoning summary returned in the response.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
-
effort
The level of effort the model should put into reasoning. This is a hint that guides the model in how much effort to put into reasoning, withxhighbeing the most effort andnonebeing no effort.API name:
effort -
enabled
Whether to enable reasoning with default settings. This is a shortcut for enabling reasoning without having to specify the other parameters. Ifenabledis set totrue, then reasoning at themediumeffort level is enabled. Ignored ifeffortis specified, in which case that parameter will control the reasoning process instead.API name:
enabled -
exclude
Whether to exclude reasoning information from the response. Iftrue, the response will not include any reasoning details.API name:
exclude -
summary
The level of detail included in the reasoning summary returned in the response. This is a hint on how much detail to include in the summary of the reasoning that is returned in the response, withautobeing the default level of detail,concisebeing less detail, anddetailedbeing more detail.API name:
summary -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Reasoning.Builder>
-
build
Builds aReasoning.- Specified by:
buildin interfaceObjectBuilder<Reasoning>- Throws:
NullPointerException- if some of the required fields are null.
-