Skip to content

Commit 096b665

Browse files
committed
fix(searchgraph): used shallow copy to serialize obj
1 parent 24d56af commit 096b665

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ examples/graph_examples/ScrapeGraphAI_generated_graph
3131
examples/**/result.csv
3232
examples/**/result.json
3333
main.py
34+
*.python-version
35+
*.lock
3436

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ authors = [
1010
{ name = "Lorenzo Padoan", email = "[email protected]" }
1111
]
1212
dependencies = [
13-
# python = ">=3.9, <3.12"
1413
"langchain==0.1.15",
1514
"langchain-openai==0.1.6",
1615
"langchain-google-genai==1.0.3",

scrapegraphai/graphs/omni_search_graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
OmniSearchGraph Module
33
"""
44

5-
from copy import deepcopy
5+
from copy import copy
66

77
from .base_graph import BaseGraph
88
from ..nodes import (
@@ -43,7 +43,7 @@ class OmniSearchGraph(AbstractGraph):
4343
def __init__(self, prompt: str, config: dict):
4444

4545
self.max_results = config.get("max_results", 3)
46-
self.copy_config = deepcopy(config)
46+
self.copy_config = copy(config)
4747

4848
super().__init__(prompt, config)
4949

scrapegraphai/graphs/search_graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SearchGraph Module
33
"""
44

5-
from copy import deepcopy
5+
from copy import copy
66

77
from .base_graph import BaseGraph
88
from ..nodes import (
@@ -42,7 +42,7 @@ class SearchGraph(AbstractGraph):
4242
def __init__(self, prompt: str, config: dict):
4343

4444
self.max_results = config.get("max_results", 3)
45-
self.copy_config = deepcopy(config)
45+
self.copy_config = copy(config)
4646

4747
super().__init__(prompt, config)
4848

0 commit comments

Comments
 (0)