File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,7 @@ Explain code /file:src/main/java/com/example/Controller.java
28
28
29
29
![ AutoDev DevIns] ( https://unitmesh.cc/auto-dev/autodev-devins.png )
30
30
31
- ## 示例
32
-
33
- ### 获取远程规范,调用 AI 编写代码
31
+ ## 示例:获取远程规范,调用 AI 编写代码
34
32
35
33
在 variables 中,你可以通过 thread 函数获取远程的规范内容,并通过 jsonpath 函数提取出你需要的内容。
36
34
@@ -76,7 +74,7 @@ curl https://tt.dts.plus/api/guideline
76
74
77
75
最后,在 onStreamingEnd,即执行完当前的 DevIns 之后,执行 parseCode、saveFile 和 openFile 三个 Processor,来处理当前的输出结果。
78
76
79
- ### 获取 Jira ID,生成提交信息
77
+ ## 示例: 获取 Jira ID,生成提交信息
80
78
81
79
其中的 actionLocation 用于定义当前 DevIns 的执行位置,CommitMenu 表示在提交信息编写页面执行。
82
80
@@ -111,7 +109,7 @@ $currentChanges
111
109
只返回提交信息,不使用 ``` 标记。
112
110
```
113
111
114
- ### 多个 DevIns 编排示例
112
+ ## 示例: 多个 DevIns 编排示例
115
113
116
114
通过 afterStreaming 你可以在执行完当前的 DevIns 之后,执行下一个 DevIns。同时,可以把当前的变量以及 ` $output ` 传递给下一个
117
115
DevIns。
You can’t perform that action at this time.
0 commit comments