kerplunk-ai-prompts 0.1.11 → 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: 429a48a7b9212a6c29c37a60019db0716aa7499d4ce5448ba2ddfc2805a7e244
4
- data.tar.gz: 31ec2c9d8b10f08b2d9924300d717dd1edc406611f40d87d09ef53ec2e957ce2
3
+ metadata.gz: 6ac99ceca7efaeb2a6406d5a5b5e402ca04099a1f090ea82a5d5086c0172d6a2
4
+ data.tar.gz: 7a9274cacff188034cdb123bc8dad29a486069f4d84c8359077890229cc809ee
5
5
  SHA512:
6
- metadata.gz: add46b829fe79c1f5d708a9290964aed2f8496231b73e5664c75fa2f54f4abbc1849b45e5013487384534bfa5f3f15ef07b5e6869a45958d53d5d87ec1f3af9d
7
- data.tar.gz: d9705b7b3d6cc5529a982901832694261600c0e28643d9dacbabce7d87c91f99055a78ceee24243573598d0844b28dd7d0e5ea116b380cd90e2d79c6f03b4f74
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}
@@ -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 = ', { "question": "question6", "code_blocks": [{ "content": "<source code>", "language": "<language>" }] }'
19
+ generate_coding_question_example = ', { "content": "question6", "code_blocks": [{ "content": "<source code>", "language": "<language>" }] }'
20
20
  end
21
21
 
22
22
  <<~PROMPT
@@ -3,7 +3,7 @@
3
3
  module Kerplunk
4
4
  module AI
5
5
  module Prompts
6
- VERSION = "0.1.11"
6
+ VERSION = "0.1.13"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kerplunk-ai-prompts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Schutt