Package net.thevpc.naru.api.model
Enum Class NaruThinkingExtraction
- All Implemented Interfaces:
Serializable,Comparable<NaruThinkingExtraction>,Constable
Where a piece of thinking content came from.
Recorded rather than discarded because the two mechanisms are not
equivalent in what they promise. A native field is the provider telling us
this is reasoning; a tag is a convention we inferred from delimiters, which a
model can get wrong by mentioning <think> in its answer. A future
pass that prunes or summarises accumulated thinking needs to know which it was
looking at, and the extraction mode is the cheapest way to tell a reliable
segment from a guessed one.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe provider returned reasoning in a dedicated field (message.thinking,reasoning_content, a content block, and so on), so no parsing was involved.Reasoning was delimited inline in the text stream, split out by a stateful tag parser. -
Method Summary
Modifier and TypeMethodDescriptionstatic NaruThinkingExtractionReturns the enum constant of this class with the specified name.static NaruThinkingExtraction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NATIVE_FIELD
The provider returned reasoning in a dedicated field (message.thinking,reasoning_content, a content block, and so on), so no parsing was involved. -
TAG_DELIMITED
Reasoning was delimited inline in the text stream, split out by a stateful tag parser.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-