kerplunk-ai-prompts 0.1.12 → 0.1.13
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: 6ac99ceca7efaeb2a6406d5a5b5e402ca04099a1f090ea82a5d5086c0172d6a2
|
4
|
+
data.tar.gz: 7a9274cacff188034cdb123bc8dad29a486069f4d84c8359077890229cc809ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d197a97e5468bd9acbc8c9956c1ae9f9b04723380d07fb27d0b054b8de56ab6c04c09bbc359e6856ec10aa248fc75f2b2dc7dc9a919fd6707b4ff0d682b0c89
|
7
|
+
data.tar.gz: 18acd7f20ff949b2c098f770cc7406c0431f5104d142ce79333d4e9376ffad210fa4845352676cab74ac00432605d724b0f25cca70a8107f064dcf3790f8556c
|
@@ -3,7 +3,7 @@ module Kerplunk
|
|
3
3
|
module Models
|
4
4
|
# Represents an interview question with its associated details.
|
5
5
|
class InterviewQuestion
|
6
|
-
attr_accessor :index, :content, :suggested_answers, :transcript, :category, :previous_score
|
6
|
+
attr_accessor :index, :content, :suggested_answers, :transcript, :category, :previous_score, :code_blocks
|
7
7
|
|
8
8
|
# Initializes a new InterviewQuestion object.
|
9
9
|
#
|
@@ -13,13 +13,14 @@ module Kerplunk
|
|
13
13
|
# @param transcript [String, nil] the transcript of the interview related to the question
|
14
14
|
# @param category [String] the category of the question
|
15
15
|
# @param previous_score [Float] the previous score of the question
|
16
|
-
def initialize(index:, content:, suggested_answers:, category:, previous_score:, transcript: nil)
|
16
|
+
def initialize(index:, content:, suggested_answers:, category:, previous_score:, transcript: nil, code_blocks: nil)
|
17
17
|
@index = index
|
18
18
|
@content = content
|
19
19
|
@suggested_answers = suggested_answers
|
20
20
|
@transcript = transcript.nil? ? "<NOTRANSCRIPT />" : transcript
|
21
21
|
@category = category
|
22
22
|
@previous_score = previous_score
|
23
|
+
@code_blocks = code_blocks
|
23
24
|
end
|
24
25
|
|
25
26
|
# Generates a formatted prompt for the interview question.
|
@@ -29,6 +30,7 @@ module Kerplunk
|
|
29
30
|
<<~QUESTION_PROMPT
|
30
31
|
==== Question No. #{index + 1}
|
31
32
|
Question Text: #{content}
|
33
|
+
Question Code Blocks (if any): #{code_blocks}
|
32
34
|
Suggested Answer: #{suggested_answers}
|
33
35
|
Transcript: #{transcript}
|
34
36
|
Category: #{category}
|