列出自定义工具
开发环境
开发环境
GET
/v1/tools
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/v1/tools' \
--header 'authorization: <authorization>'
响应示例响应示例
{
"status": "success",
"tools": [
{
"tool_id": "TL-5da8347d-0ab7-415d-b156-a7fc5c6074dc",
"label": null,
"tool": {
"name": "BookAppointment",
"description": "Books the appointment. Can only be used once.",
"speech": "Please wait while I book that appointment for you",
"method": "POST",
"timeout": 99999999,
"url": "https://...",
"body": {
"slot": "{{input}}"
},
"input_schema": {
"type": "object",
"example": {
"date": "2024-03-16",
"time": "5:00 PM"
},
"required": [
"date",
"time"
],
"properties": {
"date": "YYYY-MM-DD",
"time": "HH:MM (AM|PM)"
}
},
"response": {
"confirmation_message": "$.message"
}
},
"public": false
},
...
]
}
请求参数
Header 参数
authorization
string
必需
示例值:
<authorization>
返回响应
修改于 2024-05-10 08:26:56