Livoa LogoLivoa

Self-Planning API Code Generation System Architecture

Input: Natural Language API Requirements
Phase 1: Planning Module

Large Language Model

(DeepSeek Coder 6.7B)

Planning Prompt Template

(Few-shot examples + instructions)

Structured Plan (5 steps: Auth → Params → Request → Error → Response)
Phase 2: Implementation Module

Large Language Model

(Same LLM instance)

Implementation Prompt

(Plan + requirements → code)

Generated Python Code

(Complete function with auth, error handling, parsing)

Evaluation Framework

• Completeness Score

• Security Score

• Syntax Validity

• Code Quality Metrics

• Functional correctness

Output: Evaluation Metrics + Quality Report


thesis dia

by rukhma

0
0 uses