Node
, DAG
, and LLM
.
- Node: the atomic unit of Trellis. Nodes are chained together to form a DAG.
Node
is an abstract class with only one method required to implement. - DAG: a directed acyclic graph of
Node
s. It is the primary abstraction for orchestrating LLM workflows. When you add edges betweenNode
s, you can specify a transformation function to reuseNode
s and connect any twoNode
s. Trellis verifies the data flowing betweenNodes
in aDAG
to ensure the flow of data is validated. - LLM: a wrapper around a large language model with simple catches for common OpenAI errors. Currently, the only provider that Trellis supports is OpenAI.