kerplunk-ai-prompts 0.1.25 → 0.1.26

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: e35a7d7ca0a9bdfb4cf82483aad37fc15965376b22739a93e5d061b3516b47d1
4
- data.tar.gz: f35e162269e93eaf78b0440c8bcc4a4fae1b14972f2411622f41da33d993879e
3
+ metadata.gz: 1ba83f1cdedbee256ac579565c9313e0a81375f5bfdee3171067b203b87cd2ca
4
+ data.tar.gz: 58102ace1df9df70b06aa974cce79f649d4a1a98e7f1a661ff7cfbe7d402a786
5
5
  SHA512:
6
- metadata.gz: 5ea9a36433cba211706357dd1c9825ccf4e5293a22d3f7fbd2a61420326d83c87bf95b854576e41b0592b9835200f8fd58f05d6399f895fc9741588acf510289
7
- data.tar.gz: 44806c5f26ae5654575e71416bc96bb92358942213f90aec0bcbb2c83a08e70a394b9bc1ab852100dab7e5515a629a7ae48ee512fd5201eea50876c3789c9c95
6
+ metadata.gz: 8c26e8f50de5edd5bec173f0fa937baccc6c696478267718eceee410802dba85d4db555edd799156f1e1898ed056d9e86c8100c0362d43d851f702107393902e
7
+ data.tar.gz: 06efedcb08ec1bc87d74e25ebec1be1b0b4ad814d2260431cd57f3770ce104718cfb044519c5c89e8d5d1c137530aabd1b3f4638b582c264a919b9e67be5a8ed
@@ -11,8 +11,9 @@ module Kerplunk
11
11
  # @param question_type [String] the type/category of the interview question
12
12
  # @param transcript [String] the transcript of the candidate's response
13
13
  # @param suggested_answers [String] the suggested answers for the question
14
+ # @param user_input [String] the user's input for the question
14
15
  # @return [String] the generated prompt
15
- def self.generate_prompt(question, question_type, transcript, suggested_answers = nil)
16
+ def self.generate_prompt(question, question_type, transcript, suggested_answers = nil, user_input = nil)
16
17
  raise ArgumentError, "question is required" if question.nil? || question.empty?
17
18
  raise ArgumentError, "question_type is required" if question_type.nil? || question_type.empty?
18
19
 
@@ -37,12 +38,14 @@ module Kerplunk
37
38
  ],
38
39
  "score": 4.5#{(question_type.downcase == "yes/no") ? ',
39
40
  "answer": "Yes" or "No"' : ""}
41
+ "user_input": "#{user_input}"
40
42
  }
41
43
 
42
44
  Please remember that the question category is #{question_type} and the question is:
43
45
  #{question}
44
46
 
45
47
  This is the transcript of the Interview Answers:
48
+ #{user_input}
46
49
  #{transcript}
47
50
  PROMPT
48
51
  end
@@ -3,7 +3,7 @@
3
3
  module Kerplunk
4
4
  module AI
5
5
  module Prompts
6
- VERSION = "0.1.25"
6
+ VERSION = "0.1.26"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kerplunk-ai-prompts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Schutt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-23 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A collection of AI prompt templates for use in Kerplunk
14
14
  email: