kerplunk-ai-prompts 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d820aa3b9ea82e22a746fdb36f472b1a3debc22f5b9a40ea3f29de0d15c46a7c
|
4
|
+
data.tar.gz: 159ac8a90e320e15aa787474c69095f68f3e44f85d462e858d98467a04ad7d7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 251abb1ee5af2bbec3a7e630f7cbe5913a8cd742e49b1b6a636d334250a926dea4c886eaae0820c1480ebeae362ccbd7ee444eec03459230a97e0ea890aa86aa
|
7
|
+
data.tar.gz: 0f30eacf1db610df1ff2b1a22ba69646edbc8ebe07be3faf72e204ab25d262773eb37e8c679bf8cb2b4b5aa1b9c73f1c51394d06493d70ebccc704e78a28585a
|
@@ -8,7 +8,7 @@ module Kerplunk
|
|
8
8
|
#
|
9
9
|
# @param description [String] the job description to base the interview questions on
|
10
10
|
# @return [String] the generated prompt for interview questions
|
11
|
-
def self.generate_prompt(description, generate_coding_questions
|
11
|
+
def self.generate_prompt(description, generate_coding_questions = false)
|
12
12
|
raise ArgumentError, "description is required" if description.nil? || description.empty?
|
13
13
|
|
14
14
|
generate_coding_question_callout = ""
|
@@ -16,7 +16,7 @@ module Kerplunk
|
|
16
16
|
|
17
17
|
if generate_coding_questions
|
18
18
|
generate_coding_question_callout = "- provide a scenario to assess the candidate's technical skills which may include code snippets, please ensure any code snippets are the raw source code and not markdown formatted. Please follow the example format below for coding questions."
|
19
|
-
generate_coding_question_example = ', { "
|
19
|
+
generate_coding_question_example = ', { "content": "question6", "code_blocks": [{ "content": "<source code>", "language": "<language>" }] }'
|
20
20
|
end
|
21
21
|
|
22
22
|
<<~PROMPT
|