StartNode

constructor(subgraphName: String? = null, type: KType)(source)

Deprecated

KTypes usage in graphs and nodes is deprecated. Please, use TypeTokens instead.

Constructs a StartNode using a TypeToken to represent the input and output type.

This constructor is marked as deprecated and should be avoided in favor of the constructor which accepts a TypeToken. The use of TypeToken has been deprecated in graphs and nodes due to potential limitations and performance considerations.

Parameters

subgraphName

An optional name for the subgraph this node is part of. If null, the default prefix "start" is used as the node name.

type

A TypeToken representing the type of TInput processed by this node. Internally converted to a KotlinTypeToken.