更新PolarClaw Agent工具配置。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求文法
POST HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ApplicationId |
string |
是 |
應用 ID。 |
pa-xxx |
| AgentId |
string |
是 |
Agent ID |
work |
| Profile |
string |
否 |
工具 Profile。 |
coding |
| Allow |
array |
否 |
顯式允許工具列表。 |
["read","write","exec"] |
|
string |
否 |
顯式允許工具。 |
read |
|
| AlsoAllow |
array |
否 |
額外允許工具列表。 |
["send_message"] |
|
string |
否 |
額外允許工具。 |
send_message |
|
| Deny |
array |
否 |
拒絕工具列表。 |
["exec"] |
|
string |
否 |
拒絕工具。 |
exec |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
F45FFACC-xxx |
| Message |
string |
返回訊息。 |
success |
| Code |
integer |
返回狀態碼。 |
200 |
| ApplicationId |
string |
應用 ID。 |
pa-xxx |
| Ok |
boolean |
操作是否成功。 |
true |
| AgentId |
string |
Agent ID |
work |
| Tools |
object |
更新後的工具配置。 |
|
| Profile |
string |
工具 Profile。 |
coding |
| Allow |
array |
顯式允許工具列表。 |
|
|
string |
工具標識。 |
read |
|
| AlsoAllow |
array |
額外允許工具列表。 |
|
|
string |
工具標識。 |
send_message |
|
| Deny |
array |
拒絕工具列表。 |
|
|
string |
工具標識。 |
exec |
樣本
正常返回樣本
JSON格式
{
"RequestId": "F45FFACC-xxx",
"Message": "success",
"Code": 200,
"ApplicationId": "pa-xxx",
"Ok": true,
"AgentId": "work",
"Tools": {
"Profile": "coding",
"Allow": [
"read"
],
"AlsoAllow": [
"send_message"
],
"Deny": [
"exec"
]
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。