For the complete documentation index, see llms.txt. This page is also available as Markdown.

技能

上傳技能

POST /api/v1/skills/upload/

程式碼範例

# 呼叫 API 示例 (Shell)
curl -X POST "https://api.maiagent.ai/api/v1/skills/upload/" \
  -H "Authorization: Api-Key YOUR_API_KEY" \
  -F "file=@example_file.pdf" \
  -F "attached_tool_ids=範例字串"

# 請確認在執行前替換 YOUR_API_KEY 並核對請求資料。

回應內容

狀態碼: 201

回應結構範例

{
  "id"?: string (uuid) // 非必填
  "name"?: string // 非必填
  "description"?: string // 非必填
  "message"?: string // 非必填
}

回應範例值

狀態碼: 400

回應結構範例

回應範例值


列出技能

GET /api/v1/skills/

參數

參數名稱
必填
類型
說明

page

integer

A page number within the paginated result set.

pageSize

integer

Number of results to return per page.

search

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


取得特定技能

GET /api/v1/skills/{id}/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this Skill.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


更新技能

PUT /api/v1/skills/{id}/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this Skill.

請求內容

請求參數

欄位
類型
必填
說明

name

string

description

string

whenToUse

string

Describe when the LLM should trigger this skill. Max 200 characters recommended.

instructions

string

Markdown text with instructions for the skill

attachedToolIds

array[string]

groups

array[IdName]

Groups this skill is assigned to. Non-owner members must pick at least one group they belong to.

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


部分更新技能

PATCH /api/v1/skills/{id}/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this Skill.

請求內容

請求參數

欄位
類型
必填
說明

name

string

description

string

whenToUse

string

Describe when the LLM should trigger this skill. Max 200 characters recommended.

instructions

string

Markdown text with instructions for the skill

attachedToolIds

array[string]

groups

array[IdName]

Groups this skill is assigned to. Non-owner members must pick at least one group they belong to.

請求結構範例

請求範例值

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


刪除技能

DELETE /api/v1/skills/{id}/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this Skill.

程式碼範例

回應內容

狀態碼
說明

204

No response body


匯出技能

GET /api/v1/skills/{id}/export/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this Skill.

程式碼範例

回應內容

狀態碼
說明

200

.skill 檔案下載


重新上傳技能

POST /api/v1/skills/{id}/reupload/

參數

參數名稱
必填
類型
說明

id

string

A UUID string identifying this Skill.

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值

狀態碼: 400

回應結構範例

回應範例值


列出技能資源

GET /api/v1/skills/{skillPk}/resources/

參數

參數名稱
必填
類型
說明

skillPk

string

程式碼範例

回應內容

狀態碼: 200

回應結構範例

回應範例值


刪除技能資源

DELETE /api/v1/skills/{skillPk}/resources/{id}/

參數

參數名稱
必填
類型
說明

id

string

skillPk

string

程式碼範例

回應內容

狀態碼
說明

204

No response body


下載技能資源

GET /api/v1/skills/{skillPk}/resources/{id}/download/

參數

參數名稱
必填
類型
說明

id

string

skillPk

string

程式碼範例

回應內容

狀態碼
說明

200

檔案下載


Last updated

Was this helpful?