Is it possible to use external compilers in autogen? #1468
Replies: 3 comments 6 replies
-
Currently both shell and python code are supported. @ekzhu is working on adding support for new code executors, as well as the ability to build custom executors. So with this you could build an executor that capable of executing any other language. |
Beta Was this translation helpful? Give feedback.
-
Is there a way I could make it execute an external executor though? I understand it can work with whatever executors are "embedded" in Autogen, but my task involves generating code in, say, Ruby or PHP which most likely you will never support. So, is there a way I could make it take the following steps:
If this is possible, that would be awesome! |
Beta Was this translation helpful? Give feedback.
-
The custom executor PR will allow for code blocks in any language to be processed in any way that you want including compilation and execution. So you could have a markdown code block in Ruby and have the executor execute that code. This PR is not far from being merged so keep an eye on this space. We're actively trying to improve the code execution functionality. Today though, you could technically use shell/python to generate files containing the content in the other language and get it to generate the required commands to compile/run. However, you will need to spend quite some time crafting the prompt to get it to work reliably I would imagine. |
Beta Was this translation helpful? Give feedback.
-
If I ask autogen to generate python code, and go back and forth until all the bugs in the code are corrected, it can do that. But is the same possible for other languages that are not "embedded" into autogen? Say I ask it to write a shell script to do something, it generates the code, but cannot go and run it as it requires an external compiler and running environment (terminal, etc). Is there a way to incorporate that, and go back and forth until all the bugs in the shell script are corrected?
Beta Was this translation helpful? Give feedback.
All reactions