Enum Class RemoteStreamDetail

java.lang.Object
java.lang.Enum<RemoteStreamDetail>
io.agentscope.harness.agent.subagent.protocol.RemoteStreamDetail
All Implemented Interfaces:
Serializable, Comparable<RemoteStreamDetail>, Constable

public enum RemoteStreamDetail extends Enum<RemoteStreamDetail>
How much of a remote subagent's event stream the caller wants, sent as context.detail.

Each level is a superset of the previous one. The wire value is the lower-case enum name.

  • Enum Constant Details

    • STATUS

      public static final RemoteStreamDetail STATUS
      Lifecycle, tool call boundaries, tool results and confirmation requests.
    • FULL

      public static final RemoteStreamDetail FULL
      STATUS plus text and thinking deltas. The default for a streaming parent.
    • VERBOSE

      public static final RemoteStreamDetail VERBOSE
      FULL plus every remaining AgentEvent — block boundaries, tool argument and tool output deltas, model calls with token usage, hints, custom events — forwarded as RemoteEventType.AGENT_EVENT.

      This is the only level that reproduces a local subagent's stream in full, at the cost of noticeably more traffic on high-frequency runs.

  • Method Details

    • values

      public static RemoteStreamDetail[] 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 RemoteStreamDetail 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
    • wireValue

      public String wireValue()
      Lower-case wire value, e.g. "verbose".
    • includes

      public boolean includes(RemoteStreamDetail required)
      Whether this level includes events requiring at least required.
    • parse

      public static RemoteStreamDetail parse(String value)
      Parses a wire value, falling back to STATUS for null or unknown input.