Node
s together to build a DAG.
Node
s, and add edges between them.
DAG
class.
DAG
.
DAG
takes no arguments. We’ll set everything up through function calls to it.
CatFactsAPITool
class from the previous tutorial.
Node
s using the add_node
function.
Node
s using the add_edge
function.
distinguish_cat_fact_llm
edge is easy, because we already changed the output name of cat_fact_tool
to cat_fact
.
cat_fact_2
.
Every edge in Trellis allows you to optionally transform data between nodes when you add an edge. We designed it this way to reduce the amount
of code you’d have to rewrite.
DAG
together. In the next and final tutorial, we’ll run it. Visit the DAG reference to learn more. Here’s the full code for this tutorial.