Implemented PromptBuilder with composable TextProcessors.
Created a modular system for AI prompt engineering with a fluent interface.
Key components:
- PromptBuilder with method chaining for prompt construction
- TextProcessor protocol for composable transformations
- Built-in processors for common patterns: variables, JSON, step-by-step,
chain-of-thought, few-shot examples, structured output, etc.
- Support for custom processors via lambda functions