java.lang.Object
org.elasticsearch.inference.completion.Reasoning
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject
This class represents the reasoning configuration for a completion request.
It encapsulates various parameters that control the reasoning process.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing the reasoning effort levels.static enumEnum representing the reasoning summary levels.Nested 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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final ConstructingObjectParser<Reasoning, Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionReasoning(StreamInput in) Reasoning(Reasoning.ReasoningEffort effort, Reasoning.ReasoningSummary summary, Boolean exclude, Boolean enabled) Constructor returning instance ofReasoning. -
Method Summary
Modifier and TypeMethodDescriptioneffort()enabled()booleanexclude()Returns the name of the writeable objectinthashCode()summary()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
-
PARSER
-
-
Constructor Details
-
Reasoning
public Reasoning(@Nullable Reasoning.ReasoningEffort effort, @Nullable Reasoning.ReasoningSummary summary, @Nullable Boolean exclude, @Nullable Boolean enabled) Constructor returning instance ofReasoning.- Parameters:
effort- TheReasoning.ReasoningEffortlevel to apply. This is an optional parameter.summary- TheReasoning.ReasoningSummarylevel to provide. This is an optional parameter.exclude- Whether to exclude reasoning from the response. This is an optional parameter.enabled- Whether to enable reasoning. This is an optional parameter.
-
Reasoning
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
effort
-
summary
-
exclude
-
enabled
-
equals
-
hashCode
public int hashCode() -
toString
-