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 with your own API keysBYOK

Use your Anthropic, OpenAI, or Vertex keys to execute this prompt directly in Vera. keys are stored locally in your browser.

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