Overview
Nodes are the building blocks of Aden agents. Each node type serves a specific purpose in the agent graph.| Node Type | Purpose | When to Use |
|---|---|---|
| LLM | Language model inference | Text generation, classification, extraction |
| Router | Control flow decisions | Branching logic, conditional paths |
| Function | Custom code execution | API calls, data transformation, business logic |
| Human | Human intervention | Approvals, complex decisions, quality checks |
LLM Node
Executes a language model call with structured inputs and outputs.Configuration
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | LLM model identifier |
prompt | string | Yes | Prompt template with {{variable}} placeholders |
system | string | No | System message for the LLM |
output_schema | object | No | JSON schema for structured output |
temperature | number | No | Sampling temperature (0-2) |
max_tokens | number | No | Maximum tokens to generate |
tools | array | No | Tools the LLM can call |
Tool Calling
LLM nodes can call tools/functions:Router Node
Routes execution flow based on conditions or LLM decisions.Conditional Routing
Route based on output values from previous nodes:LLM-Decided Routing
Let the LLM choose the path:Weighted Routing
Probabilistic routing for A/B testing:Function Node
Executes custom Python code.Basic Function
Implementation
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
handler | string | Yes | Python function path |
inputs | array | No | Required input fields |
timeout | string | No | Execution timeout |
retry | object | No | Retry configuration |
Human Node
Pauses execution for human input.Basic Configuration
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Question/instructions for the human |
options | array | No | Predefined response options |
timeout | string | No | Time limit for human response |
escalation | string | No | Action on timeout: auto_approve, auto_reject, escalate |
assignee | string | No | Specific user/role to notify |