Skip to content

Commit 04f31ee

Browse files
DeanChensjSita04
andauthored
chore: Update param name of fast_api_app based on ADK change (#409)
* Fix * chore: Update param name of fast_api_app * Revert "Fix" This reverts commit da78ebf. --------- Co-authored-by: Sita Lakshmi Sangameswaran <[email protected]>
1 parent 60f3e61 commit 04f31ee

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/deploy/cloud-run.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ export GOOGLE_GENAI_USE_VERTEXAI=True
152152

153153
# Get the directory where main.py is located
154154
AGENT_DIR = os.path.dirname(os.path.abspath(__file__))
155-
# Example session DB URL (e.g., SQLite)
156-
SESSION_DB_URL = "sqlite:///./sessions.db"
155+
# Example session service URI (e.g., SQLite)
156+
SESSION_SERVICE_URI = "sqlite:///./sessions.db"
157157
# Example allowed origins for CORS
158158
ALLOWED_ORIGINS = ["http://localhost", "http://localhost:8080", "*"]
159159
# Set web=True if you intend to serve a web interface, False otherwise
@@ -163,7 +163,7 @@ export GOOGLE_GENAI_USE_VERTEXAI=True
163163
# Ensure the agent directory name ('capital_agent') matches your agent folder
164164
app = get_fast_api_app(
165165
agents_dir=AGENT_DIR,
166-
session_service_uri=SESSION_DB_URL,
166+
session_service_uri=SESSION_SERVICE_URI,
167167
allow_origins=ALLOWED_ORIGINS,
168168
web=SERVE_WEB_INTERFACE,
169169
)

docs/deploy/gke.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ Create the following files (`main.py`, `requirements.txt`, `Dockerfile`) in the
109109

110110
# Get the directory where main.py is located
111111
AGENT_DIR = os.path.dirname(os.path.abspath(__file__))
112-
# Example session DB URL (e.g., SQLite)
113-
SESSION_DB_URL = "sqlite:///./sessions.db"
112+
# Example session service URI (e.g., SQLite)
113+
SESSION_SERVICE_URI = "sqlite:///./sessions.db"
114114
# Example allowed origins for CORS
115115
ALLOWED_ORIGINS = ["http://localhost", "http://localhost:8080", "*"]
116116
# Set web=True if you intend to serve a web interface, False otherwise
@@ -120,7 +120,7 @@ Create the following files (`main.py`, `requirements.txt`, `Dockerfile`) in the
120120
# Ensure the agent directory name ('capital_agent') matches your agent folder
121121
app: FastAPI = get_fast_api_app(
122122
agents_dir=AGENT_DIR,
123-
session_db_url=SESSION_DB_URL,
123+
session_service_uri=SESSION_SERVICE_URI,
124124
allow_origins=ALLOWED_ORIGINS,
125125
web=SERVE_WEB_INTERFACE,
126126
)

0 commit comments

Comments
 (0)