Skip to content

Instantly share code, notes, and snippets.

View dstnat's full-sized avatar

dstnat

  • NGN-TELEROBOTICS
  • DENTRO DE BASH
  • X @dstnat
View GitHub Profile
@dstnat
dstnat / agent.py
Last active July 21, 2025 22:51
Agente de Ciberseguridad con LangChain y Ollama
import os
import re
import paramiko
import json
from typing import Union, List, Dict
from langchain_community.llms import Ollama
from langchain_community.tools import tool
from langchain.agents import AgentExecutor, create_react_agent
from langchain_core.prompts import PromptTemplate