Route

sealed interface Route

A value on a workflow edge, and the value a node emits to select which of its outgoing edges are followed. An edge fires when the value it carries matches one the node emitted.

On the wire a route is a bare scalar - a string, integer or boolean - and Default is the DEFAULT_ROUTE_SENTINEL string, matching adk-python.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data object Default : Route

The fallback edge, followed when no other routed edge of the node matches what it emitted, including when it emitted no route. A node may declare several, which all fire together, but a default cannot share an edge with a concrete route.

Link copied to clipboard
data class Flag(val value: Boolean) : Route

A route identified by a boolean, for a two-way branch.

Link copied to clipboard
data class Num(val value: Long) : Route

A route identified by an integer.

Link copied to clipboard
data class Tag(val value: String) : Route

A route identified by a string, the common case.