Use LarkX when
- The agent makes more than one model or tool call.
- The application has to keep working when connectivity is unreliable.
- The agent reads or writes data that already lives on the device.
- Closing or killing the app must not run a completed operation again.
- One agent on the device coordinates local tools and a remote specialist.
- You want a trace of that behavior across devices, after the local run already works.
You can skip it when
- The task is one text generation and the answer is not stored as a resumable run.
- You only need to call a local or hosted model, with no durable tool sequence.
- The whole workload runs on a server and never executes on a device.
Hello World
Prove the runtime with a scripted model.
On-device agent
Run the supported local model and a real tool.