# convert_resource_block_to_content_blocks

> **Function** in `deepagents_acp`

📖 [View in docs](https://reference.langchain.com/python/deepagents-acp/utils/convert_resource_block_to_content_blocks)

Convert an ACP resource block to LangChain content blocks.

## Signature

```python
convert_resource_block_to_content_blocks(
    block: ResourceContentBlock,
    *,
    root_dir: str,
) -> list[dict[str, str]]
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/47f357b27ebecf2ee9e14fbfd6ce295ec8e75788/libs/acp/deepagents_acp/utils.py#L45)