Examples
Examples
This section focuses on complete patterns rather than isolated primitives.
The first examples here use Neuron as the agent runtime, while Queuety stays responsible for orchestration:
- Queuety owns workflow durability, retries, fan-out, cross-workflow waits, and human gates
- Neuron owns model/provider selection, agent execution, streaming, and chat memory
That split is deliberate. Neuron has its own workflow concepts, but these examples intentionally keep Queuety as the orchestration engine and use Neuron only for agent execution concerns.
Before you start
Install Neuron in the same application:
composer require neuron-core/neuron-aiThe examples below assume you are comfortable creating Neuron Agent classes and Queuety workflow steps in the same codebase.
Neuron examples
- Neuron Planner / Executor
- Neuron Streaming Step
- Neuron Memory + Review Loop
- Neuron Dependent Workflows
How to read these examples
Each example answers a slightly different question:
- how to swap Neuron providers while Queuety coordinates the run
- how to wrap Neuron streaming in a durable
StreamingStep - how to keep Neuron conversation memory across review loops
- how to make one top-level workflow wait for another before continuing
If you want the primitive-level explanation behind the examples, also see: