Skip to content

Conversation

@AchuthReddy-16
Copy link

This PR adds a minimal prompt-driven example demonstrating prompt-as-source for generating code, tests, and documentation.

@gltanaka
Copy link
Contributor

Thanks for this contribution! A FastAPI example is a great addition — it's a popular framework and this would be a practical, beginner-friendly example for the project.

Feedback

The prompt content itself is well-structured with clear sections (Goal, Requirements, Testing, Documentation, Output Files, Constraints). However, there are a few structural changes needed to align with the existing examples:

1. Directory Structure

Other examples live in their own subdirectories:

  • examples/hello/hello_python.prompt
  • examples/pi_calc/pi_calc_python.prompt
  • examples/agentic_fallback_example/main_python.prompt

Please create a subdirectory like examples/fastapi_health/ or examples/simple_api/ and place the prompt there.

2. Naming Convention

Existing prompts follow the pattern <name>_<language>.prompt. Consider renaming to something like:

  • fastapi_health_python.prompt
  • simple_api_python.prompt

3. Documentation

Please add an entry to examples/README.md describing this new example, similar to how other examples are documented there.


Once these changes are made, this will be ready to merge. Looking forward to your updates, and thanks again for contributing to PDD! 🙌

@AchuthReddy-16
Copy link
Author

AchuthReddy-16 commented Jan 25, 2026 via email

@gltanaka gltanaka marked this pull request as draft January 29, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants