RPG-RAG / agent /src /tools /terminal_tools.py
jeffersonpojunior
changing to uv run for vllm
5f511f1
raw
history blame contribute delete
259 Bytes
import subprocess
from langchain.tools import tool
@tool
def listar_arquivos() -> str:
"""Lista arquivos da pasta atual."""
resultado = subprocess.run(
["ls"],
capture_output=True,
text=True
)
return resultado.stdout