Skip to content

Commit

Permalink
fix: Bump version of pydantic>=2.10 in Reasoning Engine sample notebo…
Browse files Browse the repository at this point in the history
…oks (#1647)

# Description

This PR bumps the version of `pydantic` to `>=2.10` in all Reasoning
Engine sample notebooks to resolve errors when querying and/or deploying
an agent.

Fixes #1613 🦕

---------

Co-authored-by: Holt Skinner <13262395+holtskinner@users.noreply.github.com>
  • Loading branch information
koverholt and holtskinner authored Jan 23, 2025
1 parent ac31572 commit 8869f65
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"%pip install --upgrade --user --quiet \"google-cloud-aiplatform[evaluation, reasoningengine]\" \\\n",
" \"crewai\" \"crewai-tools\" \\\n",
" \"cloudpickle==3.0.0\" \\\n",
" \"pydantic==2.7.4\" \\\n",
" \"pydantic>=2.10\" \\\n",
" \"requests\""
]
},
Expand Down Expand Up @@ -782,7 +782,7 @@
" \"crewai\",\n",
" \"crewai-tools\",\n",
" \"cloudpickle==3.0.0\",\n",
" \"pydantic==2.7.4\",\n",
" \"pydantic>=2.10\",\n",
" \"requests\",\n",
" ],\n",
")"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"%pip install --upgrade --user --quiet \"google-cloud-aiplatform[evaluation, langchain, reasoningengine]\" \\\n",
" \"langchain_google_vertexai\" \\\n",
" \"cloudpickle==3.0.0\" \\\n",
" \"pydantic==2.7.4\" \\\n",
" \"pydantic>=2.10\" \\\n",
" \"requests\""
]
},
Expand Down Expand Up @@ -647,7 +647,7 @@
" \"google-cloud-aiplatform[langchain,reasoningengine]\",\n",
" \"langchain_google_vertexai\",\n",
" \"cloudpickle==3.0.0\",\n",
" \"pydantic==2.7.4\",\n",
" \"pydantic>=2.10\",\n",
" \"requests\",\n",
" ],\n",
")"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
" \"langchain_google_vertexai\" \\\n",
" \"langgraph\" \\\n",
" \"cloudpickle==3.0.0\" \\\n",
" \"pydantic==2.7.4\" \\\n",
" \"pydantic>=2.10\" \\\n",
" \"requests\""
]
},
Expand Down Expand Up @@ -774,7 +774,7 @@
" \"langchain_google_vertexai\",\n",
" \"langgraph\",\n",
" \"cloudpickle==3.0.0\",\n",
" \"pydantic==2.7.4\",\n",
" \"pydantic>=2.10\",\n",
" \"requests\",\n",
" ],\n",
")"
Expand Down
4 changes: 2 additions & 2 deletions gemini/reasoning-engine/intro_reasoning_engine.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
"%pip install --upgrade --quiet \\\n",
" \"google-cloud-aiplatform[langchain,reasoningengine]\" \\\n",
" cloudpickle==3.0.0 \\\n",
" pydantic==2.7.4 \\\n",
" \"pydantic>=2.10\" \\\n",
" requests"
]
},
Expand Down Expand Up @@ -696,7 +696,7 @@
" requirements=[\n",
" \"google-cloud-aiplatform[langchain,reasoningengine]\",\n",
" \"cloudpickle==3.0.0\",\n",
" \"pydantic==2.7.4\",\n",
" \"pydantic>=2.10\",\n",
" \"requests\",\n",
" ],\n",
")"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
"%pip install --upgrade --user --quiet \\\n",
" \"google-cloud-aiplatform[langchain,reasoningengine]\" \\\n",
" cloudpickle==3.0.0 \\\n",
" pydantic==2.7.4 \\\n",
" \"pydantic>=2.10\" \\\n",
" google-cloud-trace"
]
},
Expand Down Expand Up @@ -477,7 +477,7 @@
"agent.query(\n",
" input=\"\"\"\n",
" Classify the following ticket into a category and give me a relevant documentation link.\n",
" \n",
"\n",
" Support ticket text:\n",
" I need to update my billing information since my payment method has expired.\n",
" \"\"\"\n",
Expand Down Expand Up @@ -635,7 +635,7 @@
" requirements=[\n",
" \"google-cloud-aiplatform[langchain,reasoningengine]\",\n",
" \"cloudpickle==3.0.0\",\n",
" \"pydantic==2.7.4\",\n",
" \"pydantic>=2.10\",\n",
" ],\n",
")"
]
Expand Down Expand Up @@ -674,7 +674,7 @@
"remote_agent.query(\n",
" input=\"\"\"\n",
" Classify the following ticket into a category and route the customer accordingly:\n",
" \n",
"\n",
" Support ticket text:\n",
" I am unable to make any API calls and I need to report an outage in the system\n",
" \"\"\",\n",
Expand Down
4 changes: 2 additions & 2 deletions gemini/reasoning-engine/tutorial_google_maps_agent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
"%pip install --upgrade --quiet \\\n",
" \"google-cloud-aiplatform[langchain,reasoningengine]\" \\\n",
" cloudpickle==3.0.0 \\\n",
" pydantic==2.7.4 \\\n",
" \"pydantic>=2.10\" \\\n",
" googlemaps \\\n",
" google-cloud-storage \\\n",
" google-cloud-resource-manager \\\n",
Expand Down Expand Up @@ -769,7 +769,7 @@
" requirements=[\n",
" \"google-cloud-aiplatform[langchain,reasoningengine]\",\n",
" \"cloudpickle==3.0.0\",\n",
" \"pydantic==2.7.4\",\n",
" \"pydantic>=2.10\",\n",
" \"googlemaps\",\n",
" \"google-cloud-storage\",\n",
" \"rasterio\",\n",
Expand Down
4 changes: 2 additions & 2 deletions gemini/reasoning-engine/tutorial_langgraph.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"%pip install --upgrade --user --quiet \\\n",
" \"google-cloud-aiplatform[langchain,reasoningengine]\" \\\n",
" cloudpickle==3.0.0 \\\n",
" pydantic==2.7.4 \\\n",
" \"pydantic>=2.10\" \\\n",
" langgraph \\\n",
" httpx"
]
Expand Down Expand Up @@ -564,7 +564,7 @@
" requirements=[\n",
" \"google-cloud-aiplatform[langchain,reasoningengine]\",\n",
" \"cloudpickle==3.0.0\",\n",
" \"pydantic==2.7.4\",\n",
" \"pydantic>=2.10\",\n",
" \"langgraph\",\n",
" \"httpx\",\n",
" ],\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"%pip install --upgrade --quiet \\\n",
" \"google-cloud-aiplatform[langchain,reasoningengine]\" \\\n",
" cloudpickle==3.0.0 \\\n",
" pydantic==2.7.4 \\\n",
" \"pydantic>=2.10\" \\\n",
" langchain-google-community \\\n",
" google-cloud-discoveryengine \\\n",
" google-api-python-client"
Expand Down Expand Up @@ -643,7 +643,7 @@
" requirements=[\n",
" \"google-cloud-aiplatform[langchain,reasoningengine]\",\n",
" \"cloudpickle==3.0.0\",\n",
" \"pydantic==2.7.4\",\n",
" \"pydantic>=2.10\",\n",
" \"langchain-google-community\",\n",
" \"google-cloud-discoveryengine\",\n",
" ],\n",
Expand Down

0 comments on commit 8869f65

Please sign in to comment.