Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/langgraph-sql-agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from opentelemetry import trace
from sqlalchemy import create_engine

from patched_vertexai import PatchedChatVertexAI
from langchain_google_vertexai import ChatVertexAI
from utils import ask_prompt, console, print_markdown, render_messages

SYSTEM_PROMPT = SystemMessage(
Expand Down Expand Up @@ -71,7 +71,7 @@


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

# Ephemeral sqlite database per run
Expand Down
59 changes: 0 additions & 59 deletions samples/langgraph-sql-agent/patched_vertexai.py

This file was deleted.

4 changes: 2 additions & 2 deletions samples/langgraph-sql-agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"langchain-community>=0.3.16",
"langchain-google-vertexai>=2.0.7",
"langgraph>=0.4.3",
"langchain-google-vertexai>=2.0.27",
"langgraph>=0.5.1",
"opentelemetry-exporter-gcp-logging>=1.9.0a0",
"opentelemetry-exporter-gcp-monitoring>=1.9.0a0",
"opentelemetry-exporter-otlp-proto-grpc>=1.33.0",
Expand Down
Loading