Skip to content

Commit 8af0aa4

Browse files
committed
Remove PatchedVertexAI since the upstream bug is fixed
1 parent 4c02974 commit 8af0aa4

File tree

5 files changed

+1574
-1613
lines changed

5 files changed

+1574
-1613
lines changed

samples/langgraph-sql-agent/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from opentelemetry import trace
2727
from sqlalchemy import create_engine
2828

29-
from patched_vertexai import PatchedChatVertexAI
29+
from langchain_google_vertexai import ChatVertexAI
3030
from utils import ask_prompt, console, print_markdown, render_messages
3131

3232
SYSTEM_PROMPT = SystemMessage(
@@ -71,7 +71,7 @@
7171

7272

7373
def run_agent(*, model_name: str, recursion_limit: int = 50) -> None:
74-
model = PatchedChatVertexAI(model=model_name)
74+
model = ChatVertexAI(model=model_name)
7575
checkpointer = InMemorySaver()
7676

7777
# Ephemeral sqlite database per run

samples/langgraph-sql-agent/patched_vertexai.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

samples/langgraph-sql-agent/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ readme = "README.md"
2020
requires-python = ">=3.12"
2121
dependencies = [
2222
"langchain-community>=0.3.16",
23-
"langchain-google-vertexai>=2.0.7",
24-
"langgraph>=0.4.3",
23+
"langchain-google-vertexai>=2.0.27",
24+
"langgraph>=0.5.1",
2525
"opentelemetry-exporter-gcp-logging>=1.9.0a0",
2626
"opentelemetry-exporter-gcp-monitoring>=1.9.0a0",
2727
"opentelemetry-exporter-otlp-proto-grpc>=1.33.0",

0 commit comments

Comments
 (0)