ended3월 25일· 1 sources

Prompt Contracts: Treat Prompts Like APIs (Inputs, Outputs, Errors)

프롬프트 계약: 프롬프트를 API처럼 다루기 (입력, 출력, 에러)

Why it matters

The post advocates treating LLM prompts like APIs by defining explicit inputs, output schemas, constraints, and error cases. A one-page contract template is introduced covering purpose, inputs, output schema, constraints, error/fallback handling, and quick tests. A concrete example demonstrates summarizing PR descriptions into structured changelog entries using this contract approach.

1
Sources
+0
24h
Growth
177d
Active
Prompt ContractsLLMAPI DesignOutput SchemaError Handling

Sources

Related Issues