Enum Class NaruChunkKind

java.lang.Object
java.lang.Enum<NaruChunkKind>
net.thevpc.naru.api.model.NaruChunkKind
All Implemented Interfaces:
Serializable, Comparable<NaruChunkKind>, Constable

public enum NaruChunkKind extends Enum<NaruChunkKind>
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.

  • Enum Constant Details

    • THINKING

      public static final NaruChunkKind THINKING
      Model reasoning, which the user may want shown but which is not the answer.
    • ANSWER

      public static final NaruChunkKind ANSWER
      The answer itself: the text the user asked for.
    • TOOL_CALL

      public static final NaruChunkKind TOOL_CALL
      A request from the model to call a tool.
    • TOOL_RESULT

      public static final NaruChunkKind TOOL_RESULT
      The result of a tool call, fed back to the model.
  • Method Details

    • values

      public static NaruChunkKind[] 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

      public static NaruChunkKind valueOf(String name)
      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 name
      NullPointerException - if the argument is null