Remote AI Agent

Custom AI Agent

  1. Create new file with end .shireCustomAgent.json in your project, for example: demo.shireCustomAgent.json.
  2. Fill JSON format config in demo.shireCustomAgent.json file.

Custom Agent Examples

[ { "name": "内部 API 集成", "description": "在一个组织或项目中,不同系统或组件之间的通信接口。", "url": "http://127.0.0.1:8765/api/agent/api-market", "responseAction": "Direct" }, { "name": "组件库查询", "description": "从组件库中检索特定的 UI 组件,以便在开发的应用程序中使用。", "url": "http://127.0.0.1:8765/api/agent/component-list", "responseAction": "TextChunk" }, { "name": "页面生成", "description": "使用 React 框架,基于组件和状态来生成页面。", "url": "http://127.0.0.1:8765/api/agent/ux", "auth": { "type": "Bearer", "token": "eyJhbGci" }, "responseAction": "WebView" }, { "name": "DevInInsert", "description": "Update,並指定20秒的timeout時間", "url": "http://127.0.0.1:8765/api/agent/shire-sample", "responseAction": "Shire", "defaultTimeout": 20 }, { "name": "内部 API 集成", "description": "sample", "url": "http://127.0.0.1:8765/api/agent/api-market", "auth": { "type": "Bearer", "token": "eyJhbGci" }, "connector": { "requestFormat": "{\"customFields\": {\"model\": \"yi-34b-chat\", \"stream\": true}}", "responseFormat": "$.choices[0].delta.content" }, "responseAction": "Direct" } ]