New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom_agent 執行/write 無法產生新檔案 #144
Comments
我测试了一下本地是可以的,看一下你的插件更新了没有。 |
有重新下載安裝 https://github.com/unit-mesh/auto-dev/releases/tag/v1.8.1 測試還是一樣的問題,customer_agent回傳下方內容
如果檔案存在,雖然會寫入檔案 如果檔案不存在,就會報錯
|
奇怪,你用的是什么版本 => Intellij IDEA 版本? |
IntelliJ IDEA 2023.3.6 Build #IU-233.15026.9 還是請問你用的是啥版本?? |
对,我这边测试完,好像还行。明天我试试用 233.3.6 的版本 IntelliJ IDEA 2024.1 (Ultimate Edition) |
回報一下,剛剛下載IntelliJ IDEA 2024.1 Build #IU-241.14494.240 來測試 還是一樣的問題,透過custom_agent返回 /write 無法產生新檔案,並且要透過 `` ` devin ``` 包起來才能寫入 |
哦,哦,之前理解错了,agent 里只有返回 devin 代码块才能执行:https://ide.unitmesh.cc/devins/orchestration.html 相当于是一种额外执行的规则。 |
还有一种方式可以适应你的需求,在自定义 AI Agent 中新增:responseAction 为 DevIns,这样默认返回的就是可执行。 {
"name": "Internal API Market",
"url": "http://127.0.0.1:8765/api/agent/api-market",
"responseAction": "DevIns"
} |
@ymli0215 这个功能还不支持,如果需要的话,可以加 |
responseAction 增加 DevIns 我後面再來許願 想要先處理好 agent 回應可以 /write |
@ymli0215 我刚加完了。因为默认会联系对话,所以还是建议放在 ```devin 代码块中。 |
但是目前版本
|
@ymli0215 现在好像不能复现: |
如果返回的类型是 DevIns 的话,需要返回 /write 相关的部分就可以了。这个问题我来修一下,应该是和版本有关,create 的时候会有问题。 |
CI 上 https://github.com/unit-mesh/auto-dev/actions/runs/8642911598 可以下载到最新版本。 |
回報測試 不加入`` `devin 可以如預期寫入內容到已存在檔案 那目前剩下最後一個問題,就是希望agent回傳的/write 可以建立新檔案 ( 可以建立新檔案是在.devin檔案中執行) |
10 分钟前的,新版本也不行,理论上返回的是 DevIn 应该也可以创建新档案了? |
怕我自己沒安裝好,再次重新下載安裝,問題還是一樣的 我覺得會不會是agent回去的處理,跑得跟 .devin不同?? 因此沒有建立出新檔案?? |
不好意思啊,之前处理的时候,有一个异步的数据接收没处理好。所以,拿到的 msg 是空的,就不执行了: auto-dev/src/main/kotlin/cc/unitmesh/devti/agent/CustomAgentChatProcessor.kt Lines 120 to 132 in 36923e4
等 build 跑完应该 OK 了 |
我現在抓了新版,233 241都碰到一樣的問題,就是原本可以的都不行了,感覺就是回到我最初的問題 我回去整理一下,會拿之前幾個版本來測試看看,看看到底狀況是甚麼 |
要不重开一个新的? issue ? |
已建立issue 這邊要close嗎? |
move to #146 |
@phodal
正在嘗試透過 custom agent 來做一些連續性的流程,是透過nodejs寫agent
上述的寫法,沒有辦法把內容寫到已存在的檔案,也無法產生新檔案
如果改為下方,就是透過 `` ` devin ``` 將 /write包起來,就可以把內容寫到已存在檔案內,但是依然不能產生新檔案
下方是log內容,看起來也跟 #143有類似的問題
The text was updated successfully, but these errors were encountered: