Skip to content

Commit 9ffd847

Browse files
committed
fix: restore credential wiring in AGUI GoogleADK template
The template was missing load_model() call and bedrock-agentcore dep, so GOOGLE_API_KEY was never set from the AgentCore credential. Both dev mode and deployed agents failed with "No API key provided."
1 parent c8c275f commit 9ffd847

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,9 +2009,13 @@ Thumbs.db
20092009
`;
20102010
20112011
exports[`Assets Directory Snapshots > Python framework assets > python/python/agui/googleadk/base/main.py should match snapshot 1`] = `
2012-
"import uvicorn
2012+
"import os
2013+
import uvicorn
20132014
from google.adk.agents import LlmAgent
20142015
from ag_ui_adk import ADKAgent, AGUIToolset, create_adk_app
2016+
from model.load import load_model
2017+
2018+
load_model()
20152019
20162020
agent = LlmAgent(
20172021
name="{{ name }}",
@@ -2103,6 +2107,7 @@ requires-python = ">=3.10"
21032107
dependencies = [
21042108
"ag-ui-adk >= 0.6.0",
21052109
"ag-ui-protocol >= 0.1.10",
2110+
"bedrock-agentcore >= 1.0.3",
21062111
"fastapi >= 0.115.12",
21072112
"google-adk >= 1.16.0",
21082113
"google-genai >= 1.0.0",

src/assets/python/agui/googleadk/base/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
import os
12
import uvicorn
23
from google.adk.agents import LlmAgent
34
from ag_ui_adk import ADKAgent, AGUIToolset, create_adk_app
5+
from model.load import load_model
6+
7+
load_model()
48

59
agent = LlmAgent(
610
name="{{ name }}",

src/assets/python/agui/googleadk/base/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ requires-python = ">=3.10"
1111
dependencies = [
1212
"ag-ui-adk >= 0.6.0",
1313
"ag-ui-protocol >= 0.1.10",
14+
"bedrock-agentcore >= 1.0.3",
1415
"fastapi >= 0.115.12",
1516
"google-adk >= 1.16.0",
1617
"google-genai >= 1.0.0",

0 commit comments

Comments
 (0)