Class ReasoningDetail

java.lang.Object
org.elasticsearch.inference.completion.ReasoningDetail
All Implemented Interfaces:
NamedWriteable, Writeable, ChunkedToXContent, ChunkedToXContentObject, ToXContent, ToXContentObject
Direct Known Subclasses:
ReasoningDetail.EncryptedReasoningDetail, ReasoningDetail.SummaryReasoningDetail, ReasoningDetail.TextReasoningDetail

This class represents the reasoning detail for a message. It is a sealed class that has three implementations:

The type of the reasoning detail is determined by the type field, which is required for all reasoning details. Depending on the value of the type field, different fields are required or optional for the reasoning detail. Used for both request and response Chat Completion objects.