# get()

Canonical URL: https://developers.iagenify.com/zh/sdk/ref/agents/subagents/get/
Language: zh

`api.agents.subagents.get(name) → Promise<Subagent>`

其中一个子剂,有指示,工具选择和模型。首先账户,然后是电脑。

Status: free · account first · content included

```javascript
const explorer = await api.agents.subagents.get("explore");

console.log(explorer.description);
console.log(explorer.tools);      // ["read", "list", "glob", …] or null
console.log(explorer.model);      // "gemini-3.5-flash" or null
console.log(explorer.content);    // its instructions
```

## 无效继承 {#inherit}

| 字段 | 空手段 |
| --- | --- |
| `tools` | 母代理商的选择 |
| `model` | 母代理商的模型 |

命名为另一个家庭模式的文件 —— 或写 `inherit` - 回到 `null` 而不是失败,所以从其他地方复制的文件没有改变。

## 命令顺序 {#order}

账户首存; 仅404 个会掉入磁盘。 其它拒绝都会提出 。

## 子代理没有额外文件 {#no-files}

子试剂是一份文件。 `readFile()` 答答答答答答 `not_a_skill` 。 。

- [save()](/zh/sdk/ref/agents/subagents/save): 改变它。
- [SKILL.md 格式](/zh/sdk/agent/skills-and-subagents/skill-format): 档案

```python
explorer = api.agents.subagents.get("explore")

print(explorer["description"])
print(explorer.get("tools"))     # ["read", "list", "glob", …] or None
print(explorer.get("model"))     # "gemini-3.5-flash" or None
print(explorer["content"])       # its instructions
```
