Search
Search docs, blog posts, and ecosystem packages with citations.
Enter a query to see grounded citations.
Full-featured behavior tree engine for Jido agent decision-making
Open source on GitHub →defp deps do
[
{:jido_behaviortree, "~> 1.0.0"}
]
end
Core ecosystem relationship
Jido BehaviorTree is a full-featured behavior tree engine built natively for the Jido agent ecosystem. It provides a composable, tick-based execution model where complex AI decision-making logic is assembled from simple, reusable node primitives — sequences, selectors, decorators, and leaf actions. Unlike standalone behavior tree libraries, Jido BehaviorTree integrates directly with Jido Actions and the Jido Agent strategy system, allowing behavior trees to drive autonomous agent workflows with first-class state management, effect handling, and telemetry.
The package bridges the gap between traditional game-AI behavior trees and modern agentic systems. Trees can be executed standalone, managed by a GenServer-based agent for stateful multi-tick workflows, or plugged directly into a Jido Agent as an execution strategy.
Jido BehaviorTree serves as the decision-making strategy layer for Jido agents. It provides a structured, deterministic way to compose complex agent behaviors from simple building blocks — functioning as a standalone engine, a Jido Agent Strategy, and an AI tool bridge via the Skill wrapper.
Main public API for creating trees, executing ticks, starting agents, and wrapping trees as skills. Includes Tree structure management, Node behaviour with telemetry spans, Status type system, Tick execution context, and Blackboard shared data store.
Sequence (execute children in order, fail on first failure) and Selector (try children until one succeeds). Both support resumption from running children across ticks.
Inverter (flip success/failure), Succeeder (always succeed), Failer (always fail), and Repeat (repeat N times).
Action (execute a Jido Action with blackboard parameter resolution), Wait (time-based delay), and SetBlackboard (set key-value pairs).
GenServer-based Agent for persistent multi-tick execution, Skill wrapper for AI/LLM tool compatibility, and Jido Agent Strategy implementation for strategy-driven workflows.