Skip to main content

Overview

Edges define how execution flows between nodes in your agent graph. Unlike traditional frameworks that hardcode workflows, Aden’s edges are dynamically generated based on your goals.

Edge Types

Basic Syntax

Success Edges

Execute the next node when the current node completes without errors.

Passing Data

Output from the source node becomes input for the target:

Failure Edges

Execute when a node throws an error or times out.

Error Context

Failed nodes pass error information:

Retry Pattern

Conditional Edges

Route based on output values using expressions.

Expression Syntax

Accessing Nested Values

Multiple Outgoing Edges

A node can have multiple outgoing edges:

Default Path

Use a default edge when no conditions match:

Parallel Execution

Execute multiple nodes in parallel by having multiple success edges:

Join Strategies

Edge Transformation

Transform data between nodes:

Visualization

Your agent graph can be visualized:

Next Steps

Human-in-the-Loop

Add human intervention points to your graph

Testing Agents

Test your agent’s edge behavior