{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": []
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "language_info": {
      "name": "python"
    }
  },
  "cells": [
    {
      "cell_type": "code",
      "execution_count": 1,
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "collapsed": true,
        "id": "EEGJhWv26iCb",
        "outputId": "57ae2f22-e99e-4f56-e917-18edad2978b0"
      },
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "Requirement already satisfied: langchain in /usr/local/lib/python3.12/dist-packages (1.3.1)\n",
            "Collecting langchain_google_genai\n",
            "  Downloading langchain_google_genai-4.2.4-py3-none-any.whl.metadata (2.7 kB)\n",
            "Requirement already satisfied: langchain-core<2.0.0,>=1.4.0 in /usr/local/lib/python3.12/dist-packages (from langchain) (1.4.0)\n",
            "Requirement already satisfied: langgraph<1.3.0,>=1.2.0 in /usr/local/lib/python3.12/dist-packages (from langchain) (1.2.1)\n",
            "Requirement already satisfied: pydantic<3.0.0,>=2.7.4 in /usr/local/lib/python3.12/dist-packages (from langchain) (2.12.3)\n",
            "Collecting filetype<2.0.0,>=1.2.0 (from langchain_google_genai)\n",
            "  Downloading filetype-1.2.0-py2.py3-none-any.whl.metadata (6.5 kB)\n",
            "Requirement already satisfied: google-genai<3.0.0,>=1.65.0 in /usr/local/lib/python3.12/dist-packages (from langchain_google_genai) (1.68.0)\n",
            "Requirement already satisfied: anyio<5.0.0,>=4.8.0 in /usr/local/lib/python3.12/dist-packages (from google-genai<3.0.0,>=1.65.0->langchain_google_genai) (4.13.0)\n",
            "Requirement already satisfied: google-auth<3.0.0,>=2.47.0 in /usr/local/lib/python3.12/dist-packages (from google-auth[requests]<3.0.0,>=2.47.0->google-genai<3.0.0,>=1.65.0->langchain_google_genai) (2.47.0)\n",
            "Requirement already satisfied: httpx<1.0.0,>=0.28.1 in /usr/local/lib/python3.12/dist-packages (from google-genai<3.0.0,>=1.65.0->langchain_google_genai) (0.28.1)\n",
            "Requirement already satisfied: requests<3.0.0,>=2.28.1 in /usr/local/lib/python3.12/dist-packages (from google-genai<3.0.0,>=1.65.0->langchain_google_genai) (2.32.4)\n",
            "Requirement already satisfied: tenacity<9.2.0,>=8.2.3 in /usr/local/lib/python3.12/dist-packages (from google-genai<3.0.0,>=1.65.0->langchain_google_genai) (9.1.4)\n",
            "Requirement already satisfied: websockets<17.0,>=13.0.0 in /usr/local/lib/python3.12/dist-packages (from google-genai<3.0.0,>=1.65.0->langchain_google_genai) (15.0.1)\n",
            "Requirement already satisfied: typing-extensions<5.0.0,>=4.14.0 in /usr/local/lib/python3.12/dist-packages (from google-genai<3.0.0,>=1.65.0->langchain_google_genai) (4.15.0)\n",
            "Requirement already satisfied: distro<2,>=1.7.0 in /usr/local/lib/python3.12/dist-packages (from google-genai<3.0.0,>=1.65.0->langchain_google_genai) (1.9.0)\n",
            "Requirement already satisfied: sniffio in /usr/local/lib/python3.12/dist-packages (from google-genai<3.0.0,>=1.65.0->langchain_google_genai) (1.3.1)\n",
            "Requirement already satisfied: jsonpatch<2.0.0,>=1.33.0 in /usr/local/lib/python3.12/dist-packages (from langchain-core<2.0.0,>=1.4.0->langchain) (1.33)\n",
            "Requirement already satisfied: langchain-protocol>=0.0.14 in /usr/local/lib/python3.12/dist-packages (from langchain-core<2.0.0,>=1.4.0->langchain) (0.0.15)\n",
            "Requirement already satisfied: langsmith<1.0.0,>=0.3.45 in /usr/local/lib/python3.12/dist-packages (from langchain-core<2.0.0,>=1.4.0->langchain) (0.8.5)\n",
            "Requirement already satisfied: packaging>=23.2.0 in /usr/local/lib/python3.12/dist-packages (from langchain-core<2.0.0,>=1.4.0->langchain) (26.2)\n",
            "Requirement already satisfied: pyyaml<7.0.0,>=5.3.0 in /usr/local/lib/python3.12/dist-packages (from langchain-core<2.0.0,>=1.4.0->langchain) (6.0.3)\n",
            "Requirement already satisfied: uuid-utils<1.0,>=0.12.0 in /usr/local/lib/python3.12/dist-packages (from langchain-core<2.0.0,>=1.4.0->langchain) (0.16.0)\n",
            "Requirement already satisfied: langgraph-checkpoint<5.0.0,>=4.1.0 in /usr/local/lib/python3.12/dist-packages (from langgraph<1.3.0,>=1.2.0->langchain) (4.1.0)\n",
            "Requirement already satisfied: langgraph-prebuilt<1.2.0,>=1.1.0 in /usr/local/lib/python3.12/dist-packages (from langgraph<1.3.0,>=1.2.0->langchain) (1.1.0)\n",
            "Requirement already satisfied: langgraph-sdk<0.4.0,>=0.3.0 in /usr/local/lib/python3.12/dist-packages (from langgraph<1.3.0,>=1.2.0->langchain) (0.3.14)\n",
            "Requirement already satisfied: xxhash>=3.5.0 in /usr/local/lib/python3.12/dist-packages (from langgraph<1.3.0,>=1.2.0->langchain) (3.7.0)\n",
            "Requirement already satisfied: annotated-types>=0.6.0 in /usr/local/lib/python3.12/dist-packages (from pydantic<3.0.0,>=2.7.4->langchain) (0.7.0)\n",
            "Requirement already satisfied: pydantic-core==2.41.4 in /usr/local/lib/python3.12/dist-packages (from pydantic<3.0.0,>=2.7.4->langchain) (2.41.4)\n",
            "Requirement already satisfied: typing-inspection>=0.4.2 in /usr/local/lib/python3.12/dist-packages (from pydantic<3.0.0,>=2.7.4->langchain) (0.4.2)\n",
            "Requirement already satisfied: idna>=2.8 in /usr/local/lib/python3.12/dist-packages (from anyio<5.0.0,>=4.8.0->google-genai<3.0.0,>=1.65.0->langchain_google_genai) (3.15)\n",
            "Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.12/dist-packages (from google-auth<3.0.0,>=2.47.0->google-auth[requests]<3.0.0,>=2.47.0->google-genai<3.0.0,>=1.65.0->langchain_google_genai) (0.4.2)\n",
            "Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.12/dist-packages (from google-auth<3.0.0,>=2.47.0->google-auth[requests]<3.0.0,>=2.47.0->google-genai<3.0.0,>=1.65.0->langchain_google_genai) (4.9.1)\n",
            "Requirement already satisfied: certifi in /usr/local/lib/python3.12/dist-packages (from httpx<1.0.0,>=0.28.1->google-genai<3.0.0,>=1.65.0->langchain_google_genai) (2026.5.20)\n",
            "Requirement already satisfied: httpcore==1.* in /usr/local/lib/python3.12/dist-packages (from httpx<1.0.0,>=0.28.1->google-genai<3.0.0,>=1.65.0->langchain_google_genai) (1.0.9)\n",
            "Requirement already satisfied: h11>=0.16 in /usr/local/lib/python3.12/dist-packages (from httpcore==1.*->httpx<1.0.0,>=0.28.1->google-genai<3.0.0,>=1.65.0->langchain_google_genai) (0.16.0)\n",
            "Requirement already satisfied: jsonpointer>=1.9 in /usr/local/lib/python3.12/dist-packages (from jsonpatch<2.0.0,>=1.33.0->langchain-core<2.0.0,>=1.4.0->langchain) (3.1.1)\n",
            "Requirement already satisfied: ormsgpack>=1.12.0 in /usr/local/lib/python3.12/dist-packages (from langgraph-checkpoint<5.0.0,>=4.1.0->langgraph<1.3.0,>=1.2.0->langchain) (1.12.2)\n",
            "Requirement already satisfied: orjson>=3.11.5 in /usr/local/lib/python3.12/dist-packages (from langgraph-sdk<0.4.0,>=0.3.0->langgraph<1.3.0,>=1.2.0->langchain) (3.11.9)\n",
            "Requirement already satisfied: requests-toolbelt>=1.0.0 in /usr/local/lib/python3.12/dist-packages (from langsmith<1.0.0,>=0.3.45->langchain-core<2.0.0,>=1.4.0->langchain) (1.0.0)\n",
            "Requirement already satisfied: zstandard>=0.23.0 in /usr/local/lib/python3.12/dist-packages (from langsmith<1.0.0,>=0.3.45->langchain-core<2.0.0,>=1.4.0->langchain) (0.25.0)\n",
            "Requirement already satisfied: charset_normalizer<4,>=2 in /usr/local/lib/python3.12/dist-packages (from requests<3.0.0,>=2.28.1->google-genai<3.0.0,>=1.65.0->langchain_google_genai) (3.4.7)\n",
            "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.12/dist-packages (from requests<3.0.0,>=2.28.1->google-genai<3.0.0,>=1.65.0->langchain_google_genai) (2.5.0)\n",
            "Requirement already satisfied: pyasn1<0.7.0,>=0.6.1 in /usr/local/lib/python3.12/dist-packages (from pyasn1-modules>=0.2.1->google-auth<3.0.0,>=2.47.0->google-auth[requests]<3.0.0,>=2.47.0->google-genai<3.0.0,>=1.65.0->langchain_google_genai) (0.6.3)\n",
            "Downloading langchain_google_genai-4.2.4-py3-none-any.whl (68 kB)\n",
            "\u001b[2K   \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m68.8/68.8 kB\u001b[0m \u001b[31m4.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
            "\u001b[?25hDownloading filetype-1.2.0-py2.py3-none-any.whl (19 kB)\n",
            "Installing collected packages: filetype, langchain_google_genai\n",
            "Successfully installed filetype-1.2.0 langchain_google_genai-4.2.4\n"
          ]
        }
      ],
      "source": [
        "!pip install langchain langchain_google_genai"
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "from langchain_google_genai import ChatGoogleGenerativeAI\n",
        "from langchain_core.prompts import PromptTemplate\n",
        "from langchain_core.output_parsers import StrOutputParser"
      ],
      "metadata": {
        "id": "k-gq4ULJ687j"
      },
      "execution_count": 2,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "api_key = \"Your Gemini API Key here\""
      ],
      "metadata": {
        "id": "rxfIrPvjJbq1"
      },
      "execution_count": 12,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "llm = ChatGoogleGenerativeAI(\n",
        "    model = \"gemini-2.5-flash\",\n",
        "    google_api_key = api_key\n",
        ")\n"
      ],
      "metadata": {
        "id": "6gENBjZx69Ag"
      },
      "execution_count": 4,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "prompt = \"Suggest me a skill that is in demand?\"\n",
        "response = llm.invoke(prompt)\n",
        "print(\" Suggested Skill:\\n\", response)"
      ],
      "metadata": {
        "id": "JksQghKq69DA",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "9f77816a-6531-48a9-c85e-9ec3daf0c684"
      },
      "execution_count": 5,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            " Suggested Skill:\n",
            " content=\"That's a great question! The job market is constantly evolving, but several skills consistently rank high in demand due to technological advancements and changing business needs.\\n\\nInstead of just one, here are a few top contenders, categorized for clarity, so you can pick one that aligns with your interests:\\n\\n---\\n\\n### **High-Demand Skills (with examples and why they're in demand):**\\n\\n**1. Artificial Intelligence (AI) & Machine Learning (ML)**\\n*   **What it is:** The ability to design, develop, and implement systems that can learn from data, make predictions, automate tasks, and solve complex problems. This includes deep learning, natural language processing (NLP), computer vision, and predictive analytics.\\n*   **Why it's in demand:** AI is transforming every industry, from healthcare and finance to retail and entertainment. Companies need experts to build intelligent systems, automate processes, personalize user experiences, and extract insights from vast amounts of data.\\n*   **How to learn:** Python programming (libraries like TensorFlow, PyTorch, Scikit-learn), mathematics (linear algebra, calculus, statistics), data structures and algorithms.\\n\\n**2. Cloud Computing (AWS, Azure, GCP)**\\n*   **What it is:** Expertise in designing, deploying, managing, and securing applications and infrastructure on cloud platforms like Amazon Web Services (AWS), Microsoft Azure, or Google Cloud Platform (GCP). This includes understanding services like compute, storage, networking, databases, and security.\\n*   **Why it's in demand:** Most businesses are migrating to or already operating in the cloud to reduce costs, increase scalability, improve reliability, and enable remote work. Cloud architects, engineers, and administrators are crucial for this transition and ongoing management.\\n*   **How to learn:** Specific cloud platform certifications (e.g., AWS Certified Solutions Architect, Azure Administrator Associate), networking fundamentals, Linux command line.\\n\\n**3. Cybersecurity**\\n*   **What it is:** Protecting computer systems, networks, and data from digital attacks, damage, or unauthorized access. This involves threat detection, risk assessment, incident response, ethical hacking, and implementing security protocols.\\n*   **Why it's in demand:** With increasing cyber threats and data breaches, every organization needs robust cybersecurity measures. The demand for security analysts, engineers, and architects far outstrips supply.\\n*   **How to learn:** Networking fundamentals, operating systems (Linux, Windows), ethical hacking tools, security certifications (e.g., CompTIA Security+, CISSP).\\n\\n**4. Data Analysis & Data Science**\\n*   **What it is:** The ability to collect, process, analyze, and interpret large datasets to extract meaningful insights, identify trends, and inform business decisions. Data Science takes it a step further, often involving predictive modeling and machine learning.\\n*   **Why it's in demand:** Data is the new oil. Companies are drowning in data but need skilled professionals to make sense of it, optimize operations, understand customer behavior, and drive growth.\\n*   **How to learn:** SQL, Python (Pandas, NumPy, Matplotlib), R, statistical analysis, data visualization tools (Tableau, Power BI), Excel.\\n\\n**5. Digital Marketing (SEO, SEM, Content Marketing, Social Media Marketing)**\\n*   **What it is:** Promoting products or services using digital channels and technologies. This encompasses search engine optimization (SEO), search engine marketing (SEM/PPC), content creation, social media strategy, email marketing, and analytics.\\n*   **Why it's in demand:** In today's digital-first world, businesses rely heavily on online presence to reach customers, build brands, and drive sales. Effective digital marketers are key to business growth.\\n*   **How to learn:** Google Analytics & Ads certifications, SEO tools (SEMrush, Ahrefs), content creation tools, social media platform knowledge, understanding of marketing funnels.\\n\\n**6. User Experience (UX) / User Interface (UI) Design**\\n*   **What it is:** UX design focuses on making products (websites, apps, software) easy, efficient, and enjoyable to use. UI design focuses on the visual look and interactivity of the product.\\n*   **Why it's in demand:** A great user experience is critical for customer satisfaction, retention, and conversion. Companies understand that intuitive and aesthetically pleasing products are essential for success.\\n*   **How to learn:** Design principles, user research methods, wireframing/prototyping tools (Figma, Sketch, Adobe XD), understanding of front-end development concepts.\\n\\n**7. Project Management (especially Agile/Scrum)**\\n*   **What it is:** The ability to plan, execute, and close projects successfully, often involving managing teams, resources, timelines, and budgets. Agile and Scrum methodologies are particularly in demand for software development and other fast-paced environments.\\n*   **Why it's in demand:** As businesses undertake more complex initiatives, skilled project managers are essential to ensure projects are delivered on time, within budget, and meet objectives.\\n*   **How to learn:** PMP certification, Scrum Master certification (CSM), Jira/Asana/Trello, communication and leadership skills.\\n\\n---\\n\\n### **Which one should YOU pick?**\\n\\nConsider these factors:\\n\\n*   **Your Interests:** What genuinely excites you? You'll be more motivated to learn and excel if you enjoy the subject matter.\\n*   **Your Aptitudes:** Are you more analytical, creative, technical, or people-oriented?\\n*   **Your Background:** Do you have any foundational skills (e.g., math, writing, basic coding) that could give you a head start?\\n*   **Market Research:** Look at job postings in your desired location or industry to see which skills are most frequently requested.\\n\\nMy personal suggestion, if you're looking for a broad, impactful, and consistently growing field, would be **Data Analysis & Science** or **Artificial Intelligence & Machine Learning**. Both require a blend of technical and analytical skills and are at the forefront of innovation.\" additional_kwargs={} response_metadata={'finish_reason': 'STOP', 'model_name': 'gemini-2.5-flash', 'safety_ratings': [], 'model_provider': 'google_genai'} id='lc_run--019e8c2a-9b7e-73c2-ac5c-28b84d8fb915-0' tool_calls=[] invalid_tool_calls=[] usage_metadata={'input_tokens': 10, 'output_tokens': 2499, 'total_tokens': 2509, 'input_token_details': {'cache_read': 0}, 'output_token_details': {'reasoning': 1234}}\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "template = \"Give me 3 career skills that are in high demand in {year}.\"\n",
        "prompt_template = PromptTemplate.from_template(template)"
      ],
      "metadata": {
        "id": "8hHMl5u769Fc"
      },
      "execution_count": 6,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "parser = StrOutputParser()"
      ],
      "metadata": {
        "id": "dpd8ediW69HY"
      },
      "execution_count": 7,
      "outputs": []
    },
    {
      "cell_type": "code",
      "source": [
        "chain = prompt_template | llm | parser\n",
        "\n",
        "response = chain.invoke({\"year\": \"2026\"})\n",
        "print(\"\\n Career Skills in 2026:\\n\", response)"
      ],
      "metadata": {
        "id": "92WzCO4X69Jo",
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "outputId": "9de27154-9d9e-42be-b924-2c0ca2db95bb"
      },
      "execution_count": 11,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "\n",
            " Career Skills in 2026:\n",
            " By 2026, the acceleration of AI, automation, and ongoing digital transformation will make certain skills even more critical. Here are 3 career skills that will be in high demand:\n",
            "\n",
            "1.  **AI Literacy & Data-Driven Decision Making:**\n",
            "    *   **Why it's in demand:** As AI tools become more integrated into daily workflows, nearly every role will require an understanding of how to effectively use, prompt, interpret, and leverage AI. This isn't just about being an AI developer, but about understanding its capabilities and limitations, using AI to analyze data, identify trends, and make more informed strategic decisions.\n",
            "    *   **What it entails:** Understanding various AI applications (generative AI, predictive AI), ethical considerations of AI, prompt engineering, data interpretation, critical evaluation of AI-generated content, and the ability to translate data insights into actionable business strategies.\n",
            "\n",
            "2.  **Complex Problem-Solving & Critical Thinking:**\n",
            "    *   **Why it's in demand:** While AI can assist with routine problem-solving, the ability to tackle novel, ambiguous, and multi-faceted problems that lack clear solutions will become even more valuable. This involves thinking creatively, evaluating information (including AI-generated data) critically, identifying root causes, and developing innovative solutions, often with ethical considerations.\n",
            "    *   **What it entails:** Analytical reasoning, logical thinking, root cause analysis, scenario planning, ethical reasoning, creativity, lateral thinking, and the ability to synthesize information from diverse sources to navigate complex challenges.\n",
            "\n",
            "3.  **Digital Fluency & Adaptability:**\n",
            "    *   **Why it's in demand:** The pace of technological change won't slow down. Businesses will constantly adopt new software, platforms, and digital tools. The ability to quickly learn new digital environments, adapt to evolving workflows, and leverage new technologies to improve efficiency and innovation will be crucial across all sectors.\n",
            "    *   **What it entails:** Rapid learning of new software and digital platforms, understanding of digital ecosystems, cybersecurity awareness, agile mindset, willingness to embrace change, and the ability to integrate new technologies into existing processes to drive efficiency and innovation.\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [],
      "metadata": {
        "id": "dXg_LUrH69M7"
      },
      "execution_count": null,
      "outputs": []
    }
  ]
}