#how to integrate GitHub copilot as one of the agent ?

22 messages · Page 1 of 1 (latest)

high fox
#

hi everyone!

I wanted to use GitHub copilot as one of the agent in conversation group, how can I do that?

Basically I wanted to have 2 AI agents doing pair programming and getting the end result.

sharp rampart
#

Maybe use an LLM codex specialized ?

#

like GPT-3.5 Turbo Instruct

high fox
#

@sharp rampart let me check them

But my use case for using copilot is to run builds, tests against the generated code. And get a execution environment

#

@full dock could you please help 🙂

full dock
#

Can copilot do these?

high fox
#

Ya, that's what they demo'ed in their latest dev day

#

Well I would like to start with anything simple, like can we add python repl as tool to autogen agents?

So that we can execute something. As of now its just emitting code without executing and trying it out

full dock
#

in autogen, the basic two agent setup can already execute code

sharp rampart
#

yep and i think with a proper prompt engineering and a validator for the code you could use instruct for context and GPT4 for the Agent for explain and interact

high fox
#

You can check my conversation here, the agents tried to write the code to file, but they coudnt, @full dock @sharp rampart you have any example where autogen agents can create files and save them on local disk ?

#

I even tried adding openai function which can save content to file, but even that didnt work

#

heres my code

#

based on the code you can see that this is some mini software development team which im trying to simulate, i want to test if iterative development can be done using ai agents, where they get access to project repo, and whether or not they can iteratively build on top of it

#

hence saving files

#

i also want to check if the written code, can be run against some tests, eg python code against pytest etc

sharp rampart
high fox
#

Thanks @sharp rampart will take a look !

steady nest
#

Using aider as a coding assistant might be easier to work with. It has a pretty nice python API.
Myself and a few others are looking into this now for similar use cases