Skip to content

Commit 86ba6e4

Browse files
committed
remove pydantic warnings
Signed-off-by: rawkintrevo <trevor.d.grant@gmail.com>
1 parent f6f9073 commit 86ba6e4

3 files changed

Lines changed: 2 additions & 21 deletions

File tree

examples/Google_Search.ipynb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,7 @@
8585
"output_type": "stream",
8686
"name": "stderr",
8787
"text": [
88-
"/usr/local/lib/python3.11/dist-packages/gofannon/google_search/google_search.py:1: LangChainDeprecationWarning: As of langchain-core 0.3.0, LangChain uses pydantic v2 internally. The langchain.pydantic_v1 module was a compatibility shim for pydantic v1, and should no longer be used. Please update the code to import from Pydantic directly.\n",
89-
"\n",
90-
"For example, replace imports like: `from langchain.pydantic_v1 import BaseModel`\n",
91-
"with: `from pydantic import BaseModel`\n",
92-
"or the v1 compatibility namespace if you are working in a code base that has not been fully upgraded to pydantic 2 yet. \tfrom pydantic.v1 import BaseModel\n",
93-
"\n",
94-
" from ..base import BaseTool\n"
88+
9589
]
9690
}
9791
]

examples/Ollama_Example.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,6 @@
220220
"output_type": "stream",
221221
"name": "stderr",
222222
"text": [
223-
"/usr/local/lib/python3.11/dist-packages/gofannon/orchestration/__init__.py:4: LangChainDeprecationWarning: As of langchain-core 0.3.0, LangChain uses pydantic v2 internally. The langchain.pydantic_v1 module was a compatibility shim for pydantic v1, and should no longer be used. Please update the code to import from Pydantic directly.\n",
224-
"\n",
225-
"For example, replace imports like: `from langchain.pydantic_v1 import BaseModel`\n",
226-
"with: `from pydantic import BaseModel`\n",
227-
"or the v1 compatibility namespace if you are working in a code base that has not been fully upgraded to pydantic 2 yet. \tfrom pydantic.v1 import BaseModel\n",
228-
"\n",
229-
" from ..base import WorkflowContext, ToolResult\n",
230223
"2025-02-06 17:44:08,659 - gofannon.basic_math.exponents.Exponents - DEBUG - Initialized Exponents tool\n",
231224
"2025-02-06 17:44:08,661 - gofannon.basic_math.multiplication.Multiplication - DEBUG - Initialized Multiplication tool\n",
232225
"2025-02-06 17:44:08,665 - gofannon.basic_math.division.Division - DEBUG - Initialized Division tool\n",

examples/smolagents+gofannon_quickstart.ipynb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,7 @@
123123
"output_type": "stream",
124124
"name": "stderr",
125125
"text": [
126-
"/usr/local/lib/python3.11/dist-packages/gofannon/base/__init__.py:11: LangChainDeprecationWarning: As of langchain-core 0.3.0, LangChain uses pydantic v2 internally. The langchain.pydantic_v1 module was a compatibility shim for pydantic v1, and should no longer be used. Please update the code to import from Pydantic directly.\n",
127-
"\n",
128-
"For example, replace imports like: `from langchain.pydantic_v1 import BaseModel`\n",
129-
"with: `from pydantic import BaseModel`\n",
130-
"or the v1 compatibility namespace if you are working in a code base that has not been fully upgraded to pydantic 2 yet. \tfrom pydantic.v1 import BaseModel\n",
131-
"\n",
132-
" from .langchain import LangchainMixin\n"
126+
133127
]
134128
}
135129
]

0 commit comments

Comments
 (0)