1. 代理商
Taskade
  • 概述
  • OAuth 2.0 身份验证
  • 工作空间
    • 项目
      POST
    • 文件夹
      GET
  • 文件夹
    • 项目
      GET
  • 项目
    • 复制
      POST
    • 分享链接
      GET
    • 在项目中启用共享链接
      PUT
  • 任务
    • 创造
      POST
    • Complete
      POST
    • 从任务中删除受让人
      DELETE
    • 任务分配
      PUT
    • 创建或更新任务的日期
      PUT
    • 删除任务日期
      DELETE
  • ME
    • 获取我的所有项目
      GET
  • 代理商
    • 创建
      POST
    • 公共访问
      PUT
  1. 代理商

创建

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/api/v1/folders/{folderId}/agents
在文件夹或工作区的主文件夹中创建代理。

请求参数

Path 参数

Header 参数

Body 参数application/json

示例

返回响应

🟢200成功
application/json
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'http://dev-cn.your-api-server.com/api/v1/folders//agents' \
--header 'Authorization: Bearer YOUR_PERSONAL_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{"name":"text","data":{"type":"data","data":{"commands":[{"name":"text","prompt":"text","id":"text"}]}}}'
响应示例响应示例
{
  "ok": true,
  "item": {
    "id": "text",
    "name": "text",
    "space_id": "text",
    "data": {
      "commands": [
        {
          "name": "text",
          "prompt": "text",
          "id": "text",
          "isBackgroundJob": false,
          "searchToolEnabled": false
        }
      ],
      "description": "text",
      "persona": "standup-comedian",
      "tone": "authoritative",
      "avatar": {
        "type": "emoji",
        "data": {
          "value": "text"
        }
      },
      "knowledgeEnabled": false
    }
  }
}
修改于 2024-03-14 07:24:07
上一页
获取我的所有项目
下一页
公共访问
Built with