# save()

Canonical URL: https://developers.iagenify.com/pt/sdk/ref/agents/subagents/save/
Language: pt

`api.agents.subagents.save({ name, description, content, tools?, model? }) → Promise<Subagent>`

Crea o sostitue un subagente sul conto. Sa descrição è lo que l'agente principale lee al decidir se delegare.

Status: always the account · tools and model optional · description decides

```javascript
await api.agents.subagents.save({
  name: "explore",
  description: "Dig through files and data to answer a question, and report the facts.",
  tools: ["read", "list", "glob", "grep", "search", "fetch", "query_storage", "account"],
  model: "gemini-3.5-flash",
  content: [
    "Find what was asked. Quote exactly, with paths.",
    "Do not change anything.",
    "End with the facts, not with advice.",
  ].join("\n"),
});
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `name` | string | obrigatório | Letters minuscules, cifres e guillotis. |
| `description` | string | obrigatório | Una linea, nel sistema prompt. Decide quando l'agente delega a lui. |
| `content` | string | obrigatório | Le sue istruzioni, fino a 100 000 caracteres. |
| `tools` | string[] |  | L'absenta herdita la parentèa. |
| `model` | string |  | L'absenta herderia del padre. |

## Scrivendo un buon {#writing}

- Dar-lhe il set d'utensilio più ristretto che sa fare il lavoro — un investigator needs no script.
- Digli di informar i fatti con i sentieri e citazioni: il padre non vede alcuna dei suoi risultati di utensili.
- Dice che fare quando è bloqué, perché non puès chiedere a ningun.
- Un modele più barato è a menudo a destra: un delegat lee molto e decide poco.

> **Comincia con nada**
>
> Un subagente non vede parte della conversa — solo il prompt il tschiamt da. Le istruzioni dispunse che, e il tschiamt davs portar l'obiettivo, i percorsi e esattamente che cosa dir.

## Nunca scrie al disco {#account}

Igual regole di aptitudini: il disco è una fonte de sola lettura, e i files del developpor star loro.

- [tèctu](/pt/sdk/agent/tools/task): Como se chiama.
- [remove()](/pt/sdk/ref/agents/subagents/remove): - Prendere uno.

```python
api.agents.subagents.save(
    name="explore",
    description="Dig through files and data to answer a question, and report the facts.",
    tools=["read", "list", "glob", "grep", "search", "fetch", "query_storage", "account"],
    model="gemini-3.5-flash",
    content="\n".join([
        "Find what was asked. Quote exactly, with paths.",
        "Do not change anything.",
        "End with the facts, not with advice.",
    ]),
)
```
