# subagents

> **Module** in `deepagents`

📖 [View in docs](https://reference.langchain.com/python/deepagents/middleware/subagents)

Middleware for providing subagents to an agent via a `task` tool.

## Properties

- `DEFAULT_SUBAGENT_PROMPT`
- `TASK_TOOL_DESCRIPTION`
- `TASK_SYSTEM_PROMPT`
- `DEFAULT_GENERAL_PURPOSE_DESCRIPTION`
- `GENERAL_PURPOSE_SUBAGENT`

## Methods

- [`append_to_system_message()`](https://reference.langchain.com/python/deepagents/middleware/subagents/append_to_system_message)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a9e6e4f7ad7fe161dd9affc3d74bb19784aca70b/libs/deepagents/deepagents/middleware/subagents.py)