콘텐츠로 이동

CrewAI 연동

HydraSkill로 CrewAI 에이전트에 안정적인 웹 접근을 부여하세요.

pip install hydraskill crewai crewai-tools
from crewai_tools import BaseTool
from hydraskill import ProxyClient
import requests
class ProxiedWebTool(BaseTool):
name: str = "Proxied Web Browser"
description: str = "Browse any URL with proxy protection against IP blocks"
def _run(self, url: str) -> str:
client = ProxyClient()
proxy = client.get_proxy(target=url, auto_heal=True)
response = requests.get(url, proxies=proxy.to_dict())
proxy.release()
return response.text[:5000]
# 크루(crew)에서 사용
researcher = Agent(
role="Web Researcher",
tools=[ProxiedWebTool()],
goal="Research competitor pricing without getting blocked"
)