Sujithanumala commited on
Commit
8ea30cd
·
verified ·
1 Parent(s): cf33545

Update resume_tools.py

Browse files
Files changed (1) hide show
  1. resume_tools.py +36 -0
resume_tools.py CHANGED
@@ -237,7 +237,43 @@ def achievements(achievements : List[str]) -> str:
237
  response_message = "Created a file in your pc"
238
  return response_message
239
 
 
 
 
 
240
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  def create_resume_agent(prompt: str):
242
  try:
243
  model = LiteLLMModel(model_id="gemini/gemini-2.0-flash-exp",
 
237
  response_message = "Created a file in your pc"
238
  return response_message
239
 
240
+ @tool
241
+ def skills(Programming_languages : List[str], Technologies : List[str], other_skills: dict) -> str:
242
+ """
243
+ Generates an technical skills section for the candidate.It includes programming langugage the candidate is aware of, frameworks, developer tools, technologies. It generates a string which will be processed in the further steps.
244
 
245
+ Args:
246
+ Programming_languages (list of strings): contains a list of all the programming languages the candidate is aware of and the new job is expecting. (eg. Python,java,js, HTML, CSS)
247
+ Technologies (list of strings): contains a list of all the technologies which are relevant to the Job description as well as the technologies which the candidate is aware of.
248
+ other_skills (dict): Contains a list of keyworded arguments specifying more about the skills. Each key is the heading like ML Framworks, Developer tools,etc and the values are a list of strings containing the details. Here is an example (eg. kwargs = {"Frameworks": ["React", "Node.js", "Express.js", "UIKit", "SwiftUI", ".NET Core"],"ML Frameworks & tools":[ TensorFlow, PyTorch, Hugging Face, LangChain, Llama Index, JAX, ML Flow, Chroma DB, CrewAI, Numpy,Databricks, Pandas, Hadoop, Pyspark, scikit-learn]})
249
+ Returns:
250
+ str: Instruction for the next steps
251
+ """
252
+
253
+ skills_latex = r"""
254
+
255
+ \section{Technical Skills}
256
+ \begin{itemize}[leftmargin=0.15in, label={}]
257
+ \small{\item{
258
+ \textbf{Languages}{: """ + ", ".join(Programming_languages) + r"""} \\
259
+ \textbf{Technologies}{: """ + ", ".join(Technologies) + r"""}
260
+ """
261
+
262
+ for category, items in other_skills.items():
263
+ skills_latex += rf""" \\
264
+ \textbf{{{category}}}{{{": " + ", ".join(items)}}}
265
+ """
266
+
267
+ skills_latex += r"""
268
+ }}
269
+ \end{itemize}
270
+ """
271
+ global CURRENT_RESUME_LATEX
272
+ CURRENT_RESUME_LATEX += skills_latex
273
+ response_message = "Now call the achievements_latex"
274
+ return response_message
275
+
276
+
277
  def create_resume_agent(prompt: str):
278
  try:
279
  model = LiteLLMModel(model_id="gemini/gemini-2.0-flash-exp",