neuron-op-react
ReAct operator for neuron — model + tools in a reasoning loop
Overview
neuron-op-react implements the
ReAct (Reason + Act) operator pattern: a loop that
repeatedly calls a model, processes tool calls the model emits, feeds results back, and continues
until the model produces a final answer or a budget limit is hit.
The loop terminates when:
- The model returns a final text response with no tool calls
- A configured
max_turnsis exceeded - A
max_costormax_durationbudget is exhausted
All termination reasons are surfaced in the OperatorOutput via ExitReason.
Usage
[]
= "0.4"
= "0.4"
= "0.4"
= "0.4"
use ReactOperator;
use OperatorConfig;
use Arc;
let operator = new;
let output = operator.invoke.await?;
Configuration
let config = OperatorConfig ;
Part of the neuron workspace
neuron is a composable async agentic AI framework for Rust. See the book for architecture and guides.