Skip to main content

Basic usage

Constructor

  • name: Agent identifier (alphanumeric + underscores)
  • system_prompt: Instructions for the LLM
  • message_debounce_seconds: Wait time before processing rapid messages

Methods

add_node()

Add a node to the graph. Accepts Node objects or START_NODE/END_NODE constants.

add_edge()

Connect two nodes with optional condition.

validate()

Check graph structure. Required before deployment.

Special nodes

Every agent needs START_NODE and END_NODE: