# Agent profiles

> データとしてのロール — agentごとにプロンプト、モデルプリセット、順序付きtoolリスト。

Enterpriseでは、[agent](https://pentagi.com/ja/docs/glossary/#agent)は**agent profile**によって定義されます。[Agent profile](https://pentagi.com/ja/docs/glossary/#agent-profile)には、ロール、ベースプロンプト、モデルプリセット、および使用可能な[tools](https://pentagi.com/ja/docs/glossary/#tool)が含まれます。plannerが[subtask](https://pentagi.com/ja/docs/glossary/#subtask)ごとに適切なagent profileを選択するため、実行されるagentが作業内容に適合します。

## [組み込みagent profiles](https://pentagi.com/ja/docs/enterprise/agent-profiles/#built-in-profiles)

| グループ      | Agent profiles                                                                                                         |
| --------- | ---------------------------------------------------------------------------------------------------------------------- |
| 作業用agents | `universal`, `pentester`, `coder`, `installer`, `researcher`, `recon`                                                  |
| インタラクティブ  | `assistant`                                                                                                            |
| パイプライン    | `planner`, `subagent_planner`, `generator`, `refiner`, `reporter`, `enricher`, `report_planner`, `composer`, `reviser` |

[Plugins](https://pentagi.com/ja/docs/glossary/#plugin)は独自のagent profilesを提供でき、また**Settings → Agent Profiles**でカスタムのagent profilesを作成できます。管理者は全ユーザー向けに、それ以外のユーザーは自身向けに作成可能です。

動作中のプロファイルには、**On**、**Default**、**Off** のスイッチがあります。管理者は **Default for users** を設定し、各ユーザーは組み込みプロファイルの場合は **My state** で、カスタムプロファイルの場合は **My override** でこれを上書きできます。**Default** は `PROFILES_ENABLEMENT_MODE` に従います。デフォルトである `auto` はプランナーにプロファイルを提供しますが、`manual` は **On** に切り替わってから初めて提供します。有効な作業用プロファイルがない場合、[task](https://pentagi.com/ja/docs/glossary/#task) はエラーで停止します。

![設定画面のagent profiles](https://pentagi.com/images/product/ee-agent-profiles.webp)

## [プランナーと実行モニター](https://pentagi.com/ja/docs/enterprise/agent-profiles/#planner-and-execution-monitor)

各subtaskの前に、`planner`は作業用profile、pluginsおよび簡易チェックリストを選択します。Enterpriseには`AGENT_PLANNING_STEP_ENABLED`がないため、これは常に実行され、[flow](https://pentagi.com/ja/docs/glossary/#flow)の[provider](https://pentagi.com/ja/docs/glossary/#provider)の`adviser`モデル上で動作し、3回無効な回答があった場合は`universal`にフォールバックします。

実行監視はデフォルトで有効です（`EXECUTION_MONITOR_ENABLED`）。同じ tool への連続した呼び出しが20回に達した場合（`EXECUTION_MONITOR_SAME_TOOL_LIMIT`）、最後のチェック以降の tool 呼び出しが40回に達した場合（`EXECUTION_MONITOR_TOTAL_TOOL_LIMIT`）、または subtask の時間予算の半分および4分の3の時点で、`simple_json` モデルによる簡易チェックが行われ、agent が行き詰まっているかどうかを判断します。行き詰まっていると判断された場合にのみ、adviser が agent の作業を確認します。対象は `advice` tool を備えた agent profile で、予算に少なくとも5分が残っている間に限られます。

## [Sub-agentsと予算](https://pentagi.com/ja/docs/enterprise/agent-profiles/#sub-agents-and-budgets)

作業用agentsは、subtask内で並列処理を行うために`spawn_agent`を使って[sub-agents](https://pentagi.com/ja/docs/glossary/#sub-agent)を起動し、`agent_status`、`agent_wait`、`agent_log`を使ってその進捗を追跡し、`agent_stop`を使って停止できます。Taskから各subtaskへ割り当てられる時間予算、taskあたりのsubtasks数上限、および同時実行sub-agents数の上限により、委譲が適切に管理されます。これらはflowの開始時に、サマライザーが目標とするコンテキストプリセット（Compact、Balanced、Spacious）と一緒に設定します。

新しい flow のデフォルトは、`AGENT_TIME_BUDGET_SECONDS`（10800、各 task における agent の作業時間3時間）、`AGENT_MAX_SUBTASKS`（task ごとに15）、`AGENT_MAX_CONCURRENT_SUBAGENTS`（10）、および `SUMMARIZER_PRESET` から取得されます。実行中の flow では、**Preferences** でこれらを変更できます。変更は次の task から適用されます。**Concurrent sub-agents** を **Disabled** に設定すると、[assistant](https://pentagi.com/ja/docs/glossary/#assistant) を含め、flow のすべての agent から sub-agent tool が削除されます。