# python3 -m pip install --user virtualenv # python3 -m venv venv # source venv/bin/activate # pip install langgraph langchain langchain-community langchain-ollama # source venv/bin/activate from typing import TypedDict, List from urllib import response #from asyncio import tools from langgraph.graph import START, StateGraph, END from langchain_core.prompts import ChatPromptTemplate from langchain_core.messages import HumanMessage, SystemMessage from langchain_core.tools import tool from langgraph.prebuilt import ToolNode import requests, json, re, string from html.parser import HTMLParser from langchain_ollama import ChatOllama import operator from typing_extensions import TypedDict, Annotated class HTMLCrawler(HTMLParser): def __init__(self): super().__init__() self.skip_content = False # Skip content inside