💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 授权机制 [授权机制](授权机制) ## 触发器接口 #### 获取触发器列表 **Request** ``` GET /agents/{agentId}/actions ``` **Url parameters** | Parameters | | | -------- | -------- | | page | 页码,从0开始,default: 0 | | size | 每页记录数, default: 20 | **Request body** ``` EMPTY ``` **Response body** ``` { "content": [ object(Action) ] "pagination": { "totalElements": number, "page": number, "size": number } } ``` > resource <a href = "#Action">Action</a> #### 获取触发器信息 **Request** ``` GET /agents/{agentId}/actions/{actionId} ``` **Path parameters** | Parameters | | | -------- | -------- | | agentId | Agent ID | | actionId | Action ID | **Request body** ``` EMPTY ``` **Response body** > object( <a href = "#Action">Action</a>) #### 创建触发器 **Request** ``` POST /agents/{agentId}/actions ``` **Path parameters** | Parameters | | | -------- | -------- | | agentId | Agent ID | **Request body** > object( <a href = "#ActionInput">ActionInput</a>) **Response body** > object( <a href = "#Action">Action</a>) #### 修改触发器信息 **Request** ``` POST /agents/{agentId}/actions/{actionId} ``` **Path parameters** | Parameters | | | -------- | -------- | | agentId | Agent ID | | actionId | Action ID | **Request body** > object( <a href = "#ActionInput">ActionInput</a>) **Response body** > object( <a href = "#Action">Action</a>) #### 删除助理 **Request** ``` DELETE /agents/{agentId}/actions/{actionId} ``` **Path parameters** | Parameters | | | -------- | -------- | | agentId | Agent ID | | actionId | Action ID | Request body ``` EMPTY ``` Response body ``` EMPTY ``` ## Resource ### <a name="Action">Action</a> ```json { "id": string, "name": string, "url": string, "method": enum(RequestMethod), "headers":{ "{string}": string }, "body": string, "enableCache": boolean, "cacheExpireTime": enum(CacheExpireTime), "cacheKeys": [string] } ``` ### <a name="ActionInput">ActionInput</a> ```json { "name": string, "url": string, "method": enum(RequestMethod), "headers":{ "{string}": string }, "body": string, "enableCache": boolean, "cacheExpireTime": enum(CacheExpireTime), "cacheKeys": [string] } ``` ### <a name="RequestMethod">RequestMethod</a> enum ``` POST GET ``` ### <a name="CacheExpireTime">CacheExpireTime</a> enum ``` OneHour, TheSameDAy, TwentyFourHours, OneWeek ```