Package net.thevpc.naru.api.model
Enum Class NaruChunkKind
- All Implemented Interfaces:
Serializable,Comparable<NaruChunkKind>,Constable
What a piece of model output is, independent of how it was produced.
Thinking is deliberately a kind of content rather than a separate
subsystem. A provider that returns reasoning in a dedicated field, a provider
that wraps it in <think> tags, and a provider that returns a single
finished blob all end up emitting the same kinds, so nothing downstream has
to know which mechanism was used.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe answer itself: the text the user asked for.Model reasoning, which the user may want shown but which is not the answer.A request from the model to call a tool.The result of a tool call, fed back to the model. -
Method Summary
Modifier and TypeMethodDescriptionstatic NaruChunkKindReturns the enum constant of this class with the specified name.static NaruChunkKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
THINKING
Model reasoning, which the user may want shown but which is not the answer. -
ANSWER
The answer itself: the text the user asked for. -
TOOL_CALL
A request from the model to call a tool. -
TOOL_RESULT
The result of a tool call, fed back to the model.
-
-
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
-