# build_inventory

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/plugins/manifest/build_inventory)

Build component inventory for a plugin.

## Signature

```python
build_inventory(
    plugin_root: Path,
    manifest: PluginManifest | None,
    manifest_warnings: tuple[str, ...] = (),
) -> ComponentInventory
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `plugin_root` | `Path` | Yes | Plugin root directory. |
| `manifest` | `PluginManifest \| None` | Yes | Parsed manifest or `None`. |
| `manifest_warnings` | `tuple[str, ...]` | No | Warnings emitted during manifest parsing. (default: `()`) |

## Returns

`ComponentInventory`

Component inventory.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e4c1ffe9ee63d7854147de490ca27495ef157a7b/libs/code/deepagents_code/plugins/manifest.py#L375)