Skip to content

Commit 86eef66

Browse files
committed
docs: update agent action documentation #51
The agent action documentation has been updated to include clearer instructions and examples for developers. The `TextChunk` action now explicitly states that it will display the result in the AutoDev input box for continuous processing. Additionally, the `Server` section has been updated to clarify the expected response formats for each action type.
1 parent 1f74f9f commit 86eef66

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

docs/agent/agent-action.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ enum class ResponseAction {
2424
*/
2525
TextChunk,
2626

27-
/**
28-
* will be handled by the client
29-
*/
30-
Flow,
31-
3227
/**
3328
* Display result in WebView
3429
*/
@@ -44,7 +39,7 @@ enum class ResponseAction {
4439

4540
### TextChunk
4641

47-
> Display the result in the the AutoDev input box for continuous processing.
42+
> Display the result in the AutoDev input box for continuous processing.
4843
4944
<img src="https://unitmesh.cc/auto-dev/custom-agent-text-chunk.png" alt="Custom AI Agent Dropdown" width="400px"/>
5045

docs/agent/server-example.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ nav_order: 3
77

88
## Server
99

10+
- ResponseAction.Direct should return "SSE<String>"
11+
- ResponseAction.TextChunk should return "JSON"
12+
- ResponseAction.WebView should return "HTML" code
13+
1014
## Request Body
1115

1216
same to Chat API

0 commit comments

Comments
 (0)