Replies: 11 comments 3 replies
-
@mario-guerra thoughts? |
Beta Was this translation helpful? Give feedback.
-
Hi @samyakkkk, this sounds interesting. I'd like to know more, can you elaborate on what you have in mind? |
Beta Was this translation helpful? Give feedback.
-
Hi @samyakkkk, thanks for the link. I checked out the project and it looks interesting. I'd like to know more about what you mean by an agent that is trained on the latest docs, are you actually training a model or are you using a retrieval-augmented generation pattern to supplement the responses produced by Gemini? Either way I think this would be interesting to pursue, what do you need from us to move forward? |
Beta Was this translation helpful? Give feedback.
-
@mario-guerra great! we will be using RAG which I think should suffice the needs for now. Will you be able to help with some datasources we should consider indexing beyond the docs: https://typespec.io/docs? Like examples tsp configuration files - to use as few-shot examples for model. If not available, we can try to generate synthetically. thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Thanks for clarifying @samyakkkk. The docs are a great start, as for extra data sources I suppose that depends on what you mean by TypeSpec configuration files, can you elaborate? Azure services are in the process of converting to TypeSpec, so we have TypeSpec specs in our specs repo, but they are specific to Azure. I'm not aware of a 3P TSP specs repo I can point you to. |
Beta Was this translation helpful? Give feedback.
-
Hi @mario-guerra! Please find the Typespec agent indexed on the docs 🎉 I asked it to "Write me a User API definition with create and update endpoints. Also accept profile picture of the user" and got the below response: Complete code:
Please test it by installing the agent from the VSCode extension. Based on what you think - we can improve it further or share with the community! |
Beta Was this translation helpful? Give feedback.
-
Hi @samyakkkk, I copied the complete code and pasted it into the typespec.io developer playground, the code won't compile due to errors. You can check it for yourself using this link. |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing this out @mario-guerra. Tried sending the errors to the agent and got this updated code which worked :)
RAG alone on docs is a little weak in generating working code in one-shot. For this reason, I was requesting if we have any source of various example TSP files covering variety use cases. It would really bump up the zero shot accuracy. |
Beta Was this translation helpful? Give feedback.
-
I will make some time next week to try it out, thanks for putting this together! |
Beta Was this translation helpful? Give feedback.
-
@mario-guerra we now also have the Typespec agent available as in web https://app.commanddash.io/agent/typespec (no setup). You can now easily give it a try! |
Beta Was this translation helpful? Give feedback.
-
@mario-guerra just circling back on if you could test the codegen agent :) Been looking forward to your feedback! if you find it helpful, it could be great to highlight this for the community. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone!
I've been working on programming agents recently and came across Typespec.
Been thinking if it would be interesting to have an AI agent inside VSCode that can assist in creating various kinds of TypeSpec configurations?
If anybody is interested, we can try and create something :) (also happy to collaborate if anybody is interested to contribute).
Look forward!
Beta Was this translation helpful? Give feedback.
All reactions