MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / __init__

Method __init__

scrapegraphai/graphs/search_graph.py:45–54  ·  view source on GitHub ↗
(
        self, prompt: str, config: dict, schema: Optional[Type[BaseModel]] = None
    )

Source from the content-addressed store, hash-verified

43 """
44
45 def __init__(
46 self, prompt: str, config: dict, schema: Optional[Type[BaseModel]] = None
47 ):
48 self.max_results = config.get("max_results", 3)
49
50 self.copy_config = safe_deepcopy(config)
51 self.copy_schema = deepcopy(schema)
52 self.considered_urls = [] # New attribute to store URLs
53
54 super().__init__(prompt, config, schema)
55
56 def _create_graph(self) -> BaseGraph:
57 """

Callers

nothing calls this directly

Calls 2

safe_deepcopyFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected