> This page is for NeMo Fabric, version v0.7.0.
> For other versions, use one of these documentation indexes:
> - Latest (v0.7.0) (default): https://docs.nvidia.com/nemo/fabric/latest/llms.txt
> - dev: https://docs.nvidia.com/nemo/fabric/dev/llms.txt
> - v0.7.0: https://docs.nvidia.com/nemo/fabric/v0.7.0/llms.txt
> - v0.6.1: https://docs.nvidia.com/nemo/fabric/v0.6.1/llms.txt
> - v0.6.0: https://docs.nvidia.com/nemo/fabric/v0.6.0/llms.txt
> - v0.5.0: https://docs.nvidia.com/nemo/fabric/v0.5.0/llms.txt
> - v0.4.0: https://docs.nvidia.com/nemo/fabric/v0.4.0/llms.txt
> - v0.3.0: https://docs.nvidia.com/nemo/fabric/v0.3.0/llms.txt
> - v0.2.0: https://docs.nvidia.com/nemo/fabric/v0.2.0/llms.txt
> - v0.1.1: https://docs.nvidia.com/nemo/fabric/v0.1.1/llms.txt
> - v0.1.0: https://docs.nvidia.com/nemo/fabric/v0.1.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/fabric/llms.txt.

# 1. Install One Harness

> Install a supported harness, run a code review, and check the expected finding.

Ask an agent to review a small Python function through NVIDIA NeMo Fabric. This package-based path uses LangChain Deep Agents and an NVIDIA-hosted model. It requires Python 3.11 or later and an NVIDIA API key; the [Installation Overview](/nemo/fabric/getting-started/install#requirements-and-supported-platforms) describes supported platforms.

Run this Quickstart on Linux, macOS, or Windows using WSL2. On Windows, run all commands inside your WSL2 Linux environment.

This is the first of [three connected quickstarts and an optional sandbox continuation](/nemo/fabric/getting-started/quickstart/overview). Keep `first_agent.py` and its configuration for the next two guides.

#### Install One Harness

Create an isolated application environment, then install NeMo Fabric and its supported Deep Agents adapter and dependencies. In your POSIX shell, run:

```bash
python3 -m venv .venv
source .venv/bin/activate
python -m pip install 'nemo-fabric[deepagents]'
```

This example does not require the separate CLI or NeMo Relay.

#### Provide Model Access

Create an API key at [NVIDIA Build](https://build.nvidia.com/) and set it in the shell that will run the application:

```bash
export NVIDIA_API_KEY='<your-key>'
```

Keep the key out of the Python file.

#### Run a Code Review

Save this complete example as `first_agent.py` in your application directory. The request supplies the function inline and asks for a review without tool use or file changes.

```python
import asyncio

from nemo_fabric import (
    EnvironmentConfig, Fabric, FabricConfig, HarnessConfig,
    MetadataConfig, ModelConfig, RunRequest, ToolsConfig,
)

config = FabricConfig(
    metadata=MetadataConfig(name="code-review"),
    harness=HarnessConfig(adapter_id="nvidia.fabric.langchain.deepagents"),
    models={
        "default": ModelConfig(
            provider="nvidia",
            model="nvidia/nemotron-3-nano-omni-30b-a3b-reasoning",
            api_key_env="NVIDIA_API_KEY",
            base_url="https://integrate.api.nvidia.com/v1",
        )
    },
    environment=EnvironmentConfig(provider="local", workspace="."),
    tools=ToolsConfig(enabled=[]),
)

REVIEW_INPUT = (
    "Review this Python function for correctness issues. Explain any bug you find. "
    "Do not use tools or change files.\n\n"
    "def average(values):\n"
    "    return sum(values) / len(values)\n"
)

async def main():
    fabric = Fabric()
    result = await fabric.run(
        config,
        request=RunRequest(
            input=REVIEW_INPUT,
            request_id="first-code-review",
        ),
    )
    print("Adapter:", result.adapter_id)
    print("Status:", result.status)
    print("Request:", result.request_id)
    if result.status == "succeeded":
        print(result.output.response)
    else:
        print("Error:", result.error)
    print("Artifacts:", result.artifacts)

if __name__ == "__main__":
    asyncio.run(main())
```

Run it from the application directory:

```bash
python first_agent.py
```

#### Check the Outcome

The returned adapter ID should be `nvidia.fabric.langchain.deepagents`. A successful request has status `succeeded` and request ID `first-code-review`. The review should identify that `average([])` causes division by zero. The prose and suggested fix can vary; check the status and the finding separately. The request to avoid tools and file changes is an instruction to the agent, not a security boundary.

`Fabric.run()` starts the runtime, invokes it once, and attempts shutdown. It can return a failed normalized result; configuration and lifecycle failures can instead raise SDK exceptions. Follow [Troubleshooting](/nemo/fabric/sdk/results-and-errors#errors) if the run does not succeed.

## Next Steps

Change only the input to ask for a test that covers the empty-list case. The same configuration and result-handling code still apply. Then continue to [2. Switch Harnesses](/nemo/fabric/getting-started/quickstart/switch-harnesses) to run the review through another harness while retaining your application interface.

For further exploration, see [Multi-Turn Runtimes](/nemo/fabric/sdk/requests-and-runtimes#multi-turn-runtimes) to preserve state between related turns, or the maintained [onboarding notebooks](https://github.com/NVIDIA/NeMo-Fabric/tree/v0.7.0/examples/notebooks) for an interactive tour.