ユーザ用ツール

サイト用ツール


ai:agent

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
ai:agent [2026/02/03 21:36] – [(1) Agent の追加] ogaai:agent [2026/02/07 13:04] (現在) – 削除 oga
行 1: 行 1:
-====== Agent の設定 ====== 
- 
-OpenClaw のコンテキストは Agent 毎に管理されています。 
-デフォルトでは "main" だけですが、別の Agent を追加することもできます。 
- 
-例えば Slack と Discord で別の独立した Agent として使い分けることもできます。 
- 
-==== (1) Agent の追加 ==== 
- 
-  - 「**''openclaw agents add AGENTNAME''**」 
-    * 例「''openclaw agents add slackagent'' 
-  - Workspace directory: デフォルトのまま 
-  - Copy auth profiles from "main"?: **Yes** 
-  - Configure model/auth for this agent now?: **No** 
-    * もし Agent 毎に異なる Model や Provider を使いたい場合は Yes にします 
-  - Configure chat channels now?: **No** 
- 
- 
-追加したら ''openclaw agents list'' で確認できます。 
-また、''~/.openclaw/openclaw.json'' にも以下のように agents.list のエントリが追加されます。 
- 
-<code javascript> 
-{ 
-  "agents": { 
-    "defaults": { 
-      "model": { 
-        "primary": "ollamaturbo/gemini-3-flash-preview:cloud" 
-      }, 
-      "models": { 
-        "ollamaturbo/glm-4.7:cloud": {}, 
-        "ollamaturbo/kimi-k2.5:cloud": {}, 
-        "ollamaturbo/mistral-large-3:675b-cloud": {}, 
-        "ollamaturbo/gpt-oss:120b-cloud": {}, 
-        "lmstudio9700/openai-gpt-oss-120b": {}, 
-        "lmstudioevo/openai-gpt-oss-120b": {}, 
-        "github-copilot/gpt-4o": {} 
-      }, 
-      "workspace": "/home/ocuser/.openclaw/workspace", 
-      "compaction": { 
-        "mode": "safeguard" 
-      }, 
-      "maxConcurrent": 4, 
-      "subagents": { 
-        "maxConcurrent": 8 
-      } 
-    }, 
-    "list": [ 
-      { 
-        "id": "main" 
-      }, 
-      { 
-        "id": "slackagent", 
-        "name": "slackagent", 
-        "workspace": "/home/ocuser/.openclaw/workspace-slackagent", 
-        "agentDir": "/home/ocuser/.openclaw/agents/slackagent/agent" 
-      } 
-    ] 
-  }, 
-} 
-</code> 
- 
- 
- 
-==== (2) Channel 毎の割当 ==== 
- 
-  - ''~/.openclaw/openclaw.json'' を編集して bindings を追加します 
-  - 編集したら「**''openclaw gateway restart''**」で Gateway を再起動します 
- 
-以下は ''~/.openclaw/openclaw.json'' の "bindings" の設定の例です。 
-slack にデフォルトの "main" とは異なる専用の Agent ("slackagent") を割り当てています。 
-discord の方はデフォルトの "main" のままにしています。 
- 
-<code javascript> 
-{ 
-  ~ 
- 
-  "bindings": [ 
-    { 
-      "agentId": "slackagent", 
-      "match": { 
-        "channel": "slack" 
-      } 
-    }, 
-    { 
-      "agentId": "main", 
-      "match": { 
-        "channel": "discord" 
-      } 
-    } 
-  ], 
- 
-  ~ 
-} 
-</code> 
- 
- 
  
ai/agent.1770122187.txt.gz · 最終更新: by oga

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki