Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 853 Bytes

File metadata and controls

45 lines (34 loc) · 853 Bytes

Prompt Enhancer Server Example

HTTP server that enhances vague prompts using AI with codebase context.

Prerequisites

Install the auggie CLI and authenticate:

npm install -g @augmentcode/auggie@prerelease
auggie login

Usage

# Start server with workspace directory (from the context directory)
cd examples/python-sdk/context
python -m prompt_enhancer_server .

# Or run directly
python prompt_enhancer_server/main.py .

API Endpoints

Enhance Prompt

curl -X POST http://localhost:3001/enhance \
  -H "Content-Type: application/json" \
  -d '{"prompt": "fix the bug"}'

Response:

{
  "original": "fix the bug",
  "enhanced": "Fix the bug in the authentication system. Specifically, investigate the login function..."
}

Health Check

curl "http://localhost:3001/health"