> ## Documentation Index
> Fetch the complete documentation index at: https://docs.larkx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> LarkX is a durable execution runtime for on-device AI agents. The public SDK is the npm package @larkxai/react-native.
> Do not import @larkxai/node, @larkxai/host, @larkxai/protocol, @larkxai/telemetry, or @larkxai/cactus in an application. Those packages are private workspace modules.
> Swift and Kotlin SDKs are planned and are not published.
> Prefer the published npm version. The GitHub default branch can contain behavior that is not in that release yet.
> Expo Go cannot load the native module. Use a development build.
> Do not describe external tool or remote effects as exactly-once.

# Troubleshooting

> The failures that show up when the native module, the database, or a tool class is wrong.

## `LarkXNativeCore is not installed`

The running binary does not include the native module. Expo Go never does. Make a development build after installing `@larkxai/react-native`, then run that build.

## The SQLite file is rejected

The runtime accepts files it created, stamped with application id `LXRT`. Any other file is left unchanged. Point `sqlite()` at a new path.

## A tool ran twice

That is recovery of a `pure` or `idempotent` step that had not committed. If the effect must not repeat, declare `non-idempotent` and handle `run.reconcile`. See [Tool side effects](https://docs.larkx.ai/concepts/tool-side-effects.md).

## `resume` cannot find the agent

Call `createAgent` with the same `name` and `version` before `runtime.resume`. A different version does not replay the old run.

## The remote call was sent twice, or not retried

HTTP `dedupe` and `lookup` are off until you set them, and only when that peer implements them. A2A does not enable them. A lost acknowledgement then blocks the parent. That is intentional.

## Cloud rejected the batch and the agent stopped

The agent should not stop. Telemetry failures stay in `telemetryStatus()`. If your own code awaits a throw from a tool, that throw is the tool, not Cloud. See [Cloud troubleshooting](https://docs.larkx.ai/cloud/troubleshooting.md).

## A scripted model throws "no response left"

`scriptedModel` has one response per invocation. A replayed model step does not call it again. If you see this during a first run, the script is shorter than the number of model turns.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.