MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / __init__

Method __init__

backend/app/agents/scraping_agent.py:29–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27
28class ScrapingAgent:
29 def __init__(self):
30 self.llm = get_llm()
31 self.llm_with_tools = self.llm.bind_tools(SCRAPING_TOOLS)
32 self.scraping_service = ScrapingService(settings.SCRAPEGRAPH_API_KEY)
33 self.graph = self._build_graph()
34
35 def _build_graph(self) -> StateGraph:
36 graph = StateGraph(AgentState)

Callers

nothing calls this directly

Calls 3

_build_graphMethod · 0.95
get_llmFunction · 0.90
ScrapingServiceClass · 0.90

Tested by

no test coverage detected