Module org.elasticsearch.server
Class ReasoningDetail.SummaryReasoningDetail
java.lang.Object
org.elasticsearch.inference.completion.ReasoningDetail
org.elasticsearch.inference.completion.ReasoningDetail.SummaryReasoningDetail
- All Implemented Interfaces:
NamedWriteable,Writeable,ChunkedToXContent,ChunkedToXContentObject,ToXContent,ToXContentObject
- Enclosing class:
ReasoningDetail
This class represents a reasoning detail, which contains a summary of the reasoning.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.inference.completion.ReasoningDetail
ReasoningDetail.EncryptedReasoningDetail, ReasoningDetail.ReasoningDetailType, ReasoningDetail.SummaryReasoningDetail, ReasoningDetail.TextReasoningDetailNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.inference.completion.ReasoningDetail
REQUEST_PARSER, RESPONSE_PARSERFields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTYFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSummaryReasoningDetail(String format, String id, Long index, String summary) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the name of the writeable objectinthashCode()summary()toString()toXContent(XContentBuilder builder, ToXContent.Params params) Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params params) Create an iterator ofToXContentchunks for a REST response.voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.inference.completion.ReasoningDetail
format, id, index, isFragmentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
toXContentChunked, toXContentChunkedV8
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
SummaryReasoningDetail
-
SummaryReasoningDetail
- Throws:
IOException
-
-
Method Details
-
summary
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classReasoningDetail- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Overrides:
toXContentin classReasoningDetail- Throws:
IOException
-
toXContentChunked
Description copied from interface:ChunkedToXContentCreate an iterator ofToXContentchunks for a REST response. Each chunk is serialized with the sameXContentBuilderandToXContent.Params, which is also the same as theToXContent.Paramspassed as theparamsargument. For best results, all chunks should beO(1)size. The last chunk in the iterator must always yield at least one byte of output. See alsoChunkedToXContentHelperfor some handy utilities.Note that chunked response bodies cannot send deprecation warning headers once transmission has started, so implementations must check for deprecated feature use before returning.
- Specified by:
toXContentChunkedin interfaceChunkedToXContent- Overrides:
toXContentChunkedin classReasoningDetail- Returns:
- iterator over chunks of
ToXContent
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object -
equals
- Overrides:
equalsin classReasoningDetail
-
hashCode
public int hashCode()- Overrides:
hashCodein classReasoningDetail
-
toString
-