DSPy Signature for Code Generation

implementationChallenge

Prompt Content

Define a DSPy `Signature` for the 'Developer Agent' that takes a `problem_description: str` as input and outputs `python_code: str` and `unit_tests: str`. Train this signature using a small dataset of problem descriptions and corresponding correct code/tests. Describe how this trained signature will be used to generate code.

Run this prompt with Vera

Execute this prompt directly in Vera with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations