> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 取得 Agent 設定

> 取得專案的 Agent 組態

## 請求

```bash theme={null}
GET https://api.pathors.com/v1/projects/{projectId}/agent
```

### 路徑參數

<ParamField path="projectId" type="string" required>
  專案 ID
</ParamField>

### 標頭

<ParamField header="Authorization" type="string" required>
  使用您的 Developer Key 進行 Bearer 令牌認證
</ParamField>

## 回應

<ResponseField name="data" type="object">
  <Expandable title="properties">
    <ResponseField name="id" type="string">Agent ID</ResponseField>
    <ResponseField name="projectId" type="string">關聯的專案 ID</ResponseField>
    <ResponseField name="type" type="string">Agent 類型（`monolithic` 或 `skill`）</ResponseField>
    <ResponseField name="name" type="string">Agent 顯示名稱</ResponseField>
    <ResponseField name="status" type="string">Agent 狀態（`draft` 或 `published`）</ResponseField>
    <ResponseField name="globalPrompt" type="string">套用至所有節點的全系統提示</ResponseField>
    <ResponseField name="executionMode" type="string">LLM 執行模式（`smart`、`turbo` 或 `balance`）</ResponseField>
    <ResponseField name="timezone" type="string">Agent 時區</ResponseField>
    <ResponseField name="memoryEnabled" type="boolean">是否啟用 Agent 記憶</ResponseField>
    <ResponseField name="beforeStartConfig" type="object">會話開始前的執行設定</ResponseField>
    <ResponseField name="postSessionWebhook" type="object">會話結束後呼叫的 Webhook</ResponseField>
    <ResponseField name="postEvaluationConfig" type="object">自動評估設定</ResponseField>
    <ResponseField name="placeholderMessages" type="object">依語言區分的佔位訊息</ResponseField>
    <ResponseField name="variableConfigs" type="array">變數擷取設定</ResponseField>
  </Expandable>
</ResponseField>

### 範例

```bash theme={null}
curl https://api.pathors.com/v1/projects/{projectId}/agent \
  -H "Authorization: Bearer dk_your_key"
```

```json theme={null}
{
  "data": {
    "id": "agent-uuid",
    "projectId": "project-uuid",
    "type": "monolithic",
    "name": "Customer Support Agent",
    "status": "published",
    "globalPrompt": "You are a helpful customer support agent.",
    "executionMode": "smart",
    "timezone": "Asia/Taipei",
    "memoryEnabled": false,
    "beforeStartConfig": null,
    "postSessionWebhook": null,
    "postEvaluationConfig": null,
    "placeholderMessages": null,
    "variableConfigs": null
  }
}
```
