Download src/services/batch-loop-analysis-input.js from VanyaJ/bada-terminal: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/VanyaJ/bada-terminal/resolve/main/src/services/batch-loop-analysis-input.js
- Command line
-
hf download hf://VanyaJ/bada-terminal/src/services/batch-loop-analysis-input.js
-
curl -L -o batch-loop-analysis-input.js https://huggingface.co/VanyaJ/bada-terminal/resolve/main/src/services/batch-loop-analysis-input.js
1.41 kB
| // μλ λΆμ ν둬ννΈμ ν©μ±μ μμ ν¨μλ€. Git/λͺ¨λΈ/μ€μ μ λ€μ μ‘°ννμ§ μλλ€. | |
| // μ€λͺ λ¬Έμ: docs/specs/batch-loop-observations.md v0.2.0 | |
| function messages({goals,iteration,consecutiveFailures,errorMessage,diff}){ | |
| const goalsExpr = goals ? JSON.stringify(goals, null, 2) : ''; | |
| const diffSummary = diff.length > 1500 ? diff.substring(0, 1500) + '\n... (μ΄ν μλ΅)' : diff; | |
| const analysisPrompt = `λΉμ μ BADA Terminal μμ¨ μμ΄μ νΈμ λ©ν λΆμκΈ°μ λλ€. | |
| νμ¬ μμ΄μ νΈκ° λͺ©ν(Goal)λ₯Ό λ¬μ±νκΈ° μν΄ λ£¨νλ₯Ό μν μ€μ΄λ μ€ν¨νκ³ μμ΅λλ€. | |
| - λͺ©ν(Goal): | |
| ${goalsExpr} | |
| - νμ¬ μ΄ν°λ μ΄μ νμ°¨: ${iteration}νμ°¨ | |
| - μ°μ μ€ν¨ νμ: ${consecutiveFailures}ν | |
| - μ΅κ·Ό μ΄ν°λ μ΄μ μλ¬: ${errorMessage || 'Goal 쑰건 λ―Έλ¬μ±'} | |
| - μ§μ μ΄ν°λ μ΄μ μ½λ λ³κ²½ μ¬ν (Git Diff): | |
| \`\`\`diff | |
| ${diffSummary} | |
| \`\`\` | |
| μ μν©μ λ©΄λ°ν λΆμνμ¬ λ€μ 2κ°μ§λ₯Ό λͺ νν μ μνμμμ€: | |
| 1. μμ΄μ νΈκ° μ μ€ν¨νκ³ μλμ§ μμΈμ νλ λ¬Έμ₯μΌλ‘ μ§λ¨νμμμ€. | |
| 2. λ€μ μ΄ν°λ μ΄μ μμ μμ΄μ νΈκ° λμΌν μ€μλ₯Ό λ°©μ§νκ³ λͺ©νλ₯Ό μμνκΈ° μν΄ μλν΄μΌ ν 'ꡬ체μ μΈ μ°ν/κ°μ μ λ΅'μ 3μ€ μ΄λ΄μ μ§§μ μ§μΉ¨μΌλ‘ μ μνμμμ€.`; | |
| return [{role:'user',content:analysisPrompt}]; | |
| } | |
| module.exports={messages}; | |