> ## 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 open-source execution infrastructure for on-device AI agents. It is not an inference engine, an LLM wrapper, a cloud-only agent framework, or a replacement for LangGraph or Cactus.
> Install the public SDK with npm install @larkxai/react-native. The published version is the sdkVersion variable on the Installation page. Import createRuntime, defineTool, scriptedModel, sqlite, remoteAgent, and larkxCloud from @larkxai/react-native. Import cactusModel from @larkxai/react-native/cactus only when the app uses local inference.
> Do not import @larkxai/node, @larkxai/host, @larkxai/protocol, @larkxai/telemetry, or @larkxai/cactus. Those packages are private. Swift and Kotlin SDKs are not published.
> Hello World uses scriptedModel and does not download a model or need Cloud. A Cactus agent needs cactus-react-native 1.13.1, react-native-nitro-modules 0.33.9 or newer, download(), and init() before start. Expo Go cannot load the native module.
> Recovery opens a new createRuntime on the same SQLite file, registers the same agent name and version, then calls resume. Do not call resume on a runtime that has already been closed. Do not describe external effects as exactly-once. A killed process does not keep running.
> Cloud telemetry is optional. Pass larkxCloud({ projectId, apiKey }) only after a local run already works. The key must start with lkx_ing_.

# A2A

> Talk to a peer that publishes an A2A 1.0 agent card.

A2A protocol 1.0 JSON-RPC is the supported standard for a peer that publishes an agent card. It is a client in `@larkxai/react-native` 0.4.0. LarkX does not host the remote agent, and an agent card cannot replace the endpoint you registered.

```typescript theme={"dark"}
import { remoteAgent } from "@larkxai/react-native";

const procurement = remoteAgent({
  name: "procurement-agent",
  description: "Find compatible replacement parts and suppliers.",
  transport: {
    type: "a2a",
    endpoint: "https://procurement.example.com",
  },
});
```

A2A does not turn on HTTP `dedupe` or `lookup`. A lost acknowledgement blocks the parent instead of creating another task. JSON-RPC responses must match the request id before a result is committed.

## Questions from the remote agent

`run.provideInput` answers one ordinary question on the existing task. The text is stored until it is sent. It is not the local conversation.

```typescript theme={"dark"}
await run.provideInput("Use the brass fitting, not the steel one.");
```

Do not put a password or token in that string. An authentication challenge is a separate blocked condition. Refresh the transport headers and reconcile the run. Credentials are not stored as input.

`protocolVersion`, when you set it, must be the supported 1.0 value. Another version is rejected at registration.

`examples/a2a-fixture` is a failure-injection peer. It is not a LangGraph agent. `examples/langgraph-a2a-agent` is a real LangGraph graph behind an A2A server. See [LangGraph](https://docs.larkx.ai/integrations/langgraph.md).


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