LLM 통합과 API 활용 Jul 08, 2026중급 LLM 구조화된 출력 가이드 2026: OpenAI, Claude, Gemini 스키마 강제와 Pydantic 검증OpenAI response_format, Claude tool_use, Gemini response_json_schema로 LLM 응답 스키마를 강제하는 실전 코드. Pydantic + Instructor 재시도, 폴백 체인, 프로덕션 함정까지 정리.