Skip to content

Commit e10a195

Browse files
committed
docs: split doc #51
1 parent 674a00d commit e10a195

File tree

4 files changed

+69
-57
lines changed

4 files changed

+69
-57
lines changed

docs/agent/agent-action.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: default
3+
title: AI Agent Response Action
4+
parent: AI Agent
5+
nav_order: 2
6+
---
7+
8+
## Json format
9+
10+
```kotlin
11+
enum class ResponseAction {
12+
/**
13+
* Direct display result
14+
*/
15+
Direct,
16+
17+
/**
18+
* Stream response
19+
*/
20+
Stream,
21+
22+
/**
23+
* Text splitting result
24+
*/
25+
TextChunk,
26+
27+
/**
28+
* will be handled by the client
29+
*/
30+
Flow,
31+
32+
/**
33+
* Display result in WebView
34+
*/
35+
WebView
36+
}
37+
```
38+
39+

docs/agent/agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: Customize Agent
44
nav_order: 4
55
has_children: true
6-
permalink: /customize
76
---
87

9-
{: .no_toc }
8+
9+
{: .label .label-yellow }

docs/agent/custom-ai-agent.md

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: default
33
title: AI Agent Quickstart
4-
parent: Customize Agent
4+
parent: AI Agent
55
nav_order: 1
66
---
77

@@ -43,57 +43,3 @@ Examples:
4343
}
4444
]
4545
```
46-
47-
## Json format
48-
49-
ResponseAction:
50-
51-
```kotlin
52-
enum class ResponseAction {
53-
/**
54-
* Direct display result
55-
*/
56-
Direct,
57-
58-
/**
59-
* Stream response
60-
*/
61-
Stream,
62-
63-
/**
64-
* Text splitting result
65-
*/
66-
TextChunk,
67-
68-
/**
69-
* will be handled by the client
70-
*/
71-
Flow,
72-
73-
/**
74-
* Display result in WebView
75-
*/
76-
WebView
77-
}
78-
```
79-
80-
## Server
81-
82-
## Request Body
83-
84-
same to Chat API
85-
86-
```json
87-
{
88-
"messages": [
89-
{
90-
"role": "user",
91-
"message": "str"
92-
}
93-
]
94-
}
95-
```
96-
97-
### Server API example
98-
99-
see in [example/custom_agent](https://github.com/unit-mesh/auto-dev/tree/master/example/custom_agent)

docs/agent/server-example.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: default
3+
title: AI Agent Server
4+
parent: AI Agent
5+
nav_order: 3
6+
---
7+
8+
## Server
9+
10+
## Request Body
11+
12+
same to Chat API
13+
14+
```json
15+
{
16+
"messages": [
17+
{
18+
"role": "user",
19+
"message": "str"
20+
}
21+
]
22+
}
23+
```
24+
25+
### Server API example
26+
27+
see in [example/custom_agent](https://github.com/unit-mesh/auto-dev/tree/master/example/custom_agent)

0 commit comments

Comments
 (0)