Custom AI Agent Quickstart
AutoDev@1.7.0
Since AutoDev@1.7.0 version, we support custom AI agents, allowing you to integrate your own AI agent into AutoDev.

Custom AI Agent
- Open AutoDev Config in
Settings
->Tools
->AutoDev
, selectCustom Agent
. - Click
Enable Custom Agent
- Fill JSON format configuration in the
Custom Agent Config
textarea. - Apply and OK.
- Click
x
to close AutoDev panel and clickNewChat
in the AutoDev tool window.
Custom Agent Examples
Demo:
[
{
"name": "Internal API Integration",
"description": "Communication interfaces between different systems or components within an organization or project.",
"url": "http://127.0.0.1:8765/api/agent/api-market",
"responseAction": "Direct"
},
{
"name": "Component Library Query",
"description": "Retrieve specific UI components from the component library for use in application development.",
"url": "http://127.0.0.1:8765/api/agent/component-list",
"responseAction": "TextChunk"
},
{
"name": "Page Generation",
"description": "Generate pages using React framework based on components and state management.",
"url": "http://127.0.0.1:8765/api/agent/ux",
"auth": {
"type": "Bearer",
"token": "eyJhbGci"
},
"responseAction": "WebView"
},
{
"name": "DevInInsert",
"description": "Update with 20-second timeout specification",
"url": "http://127.0.0.1:8765/api/agent/devins-sample",
"responseAction": "DevIns",
"defaultTimeout": 20
}
]
Dify Example
{
"name": "DifyAI",
"description": "Dify Example",
"url": "https://api.dify.ai/v1/completion-messages",
"auth": {
"type": "Bearer",
"token": "app-abcd"
},
"connector": {
"requestFormat": "{\"fields\": {\"inputs\": {\"feature\": \"$content\"}, \"response_mode\": \"streaming\", \"user\": \"phodal\" }}",
"responseFormat": "$.answer"
},
"responseAction": "Stream"
}
Coze Example
[
{
"name": "CozeAI",
"description": "Coze Example",
"url": "https://api.coze.cn/v3/chat",
"auth": {
"type": "Bearer",
"token": "xxx"
},
"connector": {
"requestFormat": "{\"fields\":{\"stream\": true, \"user_id\": \"user\",\"bot_id\": \"749xxx\",\"additional_messages\": [{\"role\": \"user\", \"content_type\":\"text\", \"content\": \"$content\" }]}}",
"responseFormat": "$[?(@.type == 'answer' && !(@.created_at))].content"
},
"responseAction": "Stream"
}
]
responseAction
enum class CustomAgentResponseAction {
/**
* Direct display result
*/
Direct,
/**
* Stream response
*/
Stream,
/**
* Text splitting result
*/
TextChunk,
/**
* Display result in WebView
*/
WebView,
/**
* Handle by DevIns language compile and run in code block.
* @since: AutoDev@1.8.2
*/
DevIns
}
interactive
enum class InteractionType {
ChatPanel,
AppendCursor,
AppendCursorStream,
OutputFile,
ReplaceSelection,
ReplaceCurrentFile,
;
}