Class Reasoning
java.lang.Object
co.elastic.clients.elasticsearch.inference.Reasoning
- All Implemented Interfaces:
JsonpSerializable
The reasoning configuration to use for the completion request. Currently
supported only for
elastic provider.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Reasoning>Json deserializer forReasoning -
Method Summary
Modifier and TypeMethodDescriptionfinal ReasoningEfforteffort()The level of effort the model should put into reasoning.final Booleanenabled()Whether to enable reasoning with default settings.final Booleanexclude()Whether to exclude reasoning information from the response.static Reasoningrebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal ReasoningSummarysummary()The level of detail included in the reasoning summary returned in the response.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forReasoning
-
-
Method Details
-
of
-
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
Reasoning.Builderinitialized with field values of this instance
-
setupReasoningDeserializer
-