agent-starter-pack 0.6.1__py3-none-any.whl → 0.6.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-starter-pack
3
- Version: 0.6.1
3
+ Version: 0.6.2
4
4
  Summary: CLI to bootstrap production-ready Google Cloud GenAI agent projects from templates.
5
5
  Author-email: Google LLC <agent-starter-pack@google.com>
6
6
  License: Apache-2.0
@@ -4,9 +4,9 @@ agents/adk_base/notebooks/adk_app_testing.ipynb,sha256=kWYd-ButNGemupiPDIzhlQO0e
4
4
  agents/adk_base/notebooks/evaluating_adk_agent.ipynb,sha256=OMTiT3gAFWPvE9pPL8z7tsDwOU-l8wem5wH-OXPPlvk,56805
5
5
  agents/adk_base/template/.templateconfig.yaml,sha256=d6f_11cA0m6VMUzVPXETSoCViQe5b49ImzJAlkhskHw,893
6
6
  agents/adk_base/tests/integration/test_agent.py,sha256=VypgpEWrQegJBgc58V-BlIsbqh-Hii-hwmkwcz5feFw,1969
7
- agents/adk_gemini_fullstack/README.md,sha256=C257ieCteXNqOLTKmlF2PSG1BVMr2NIX8PWz7vwYrew,7483
8
- agents/adk_gemini_fullstack/app/agent.py,sha256=4u48Sk1J8Rks5DGZjgGKPCYqgWZnrICVYD61dZU0L2U,16569
9
- agents/adk_gemini_fullstack/app/config.py,sha256=1rX_U87eH_JnFsuoSjcM7_pRmx02g575J2gFkS1ahGk,1088
7
+ agents/adk_gemini_fullstack/README.md,sha256=57Th3Mv2o0x2_6XnWMLnmZz_gNVaSY8te3--TfV9r_A,8147
8
+ agents/adk_gemini_fullstack/app/agent.py,sha256=bk67bpAge8_b-reI1VuF4PNTXFHqnD92hdVTVXslS4s,16402
9
+ agents/adk_gemini_fullstack/app/config.py,sha256=x--axECPKWW3oLANKz2_4zzHEBIU7if8iYNZRjlTNV0,1563
10
10
  agents/adk_gemini_fullstack/notebooks/adk_app_testing.ipynb,sha256=kWYd-ButNGemupiPDIzhlQO0elxWCwiea0nhmnsW8cg,9619
11
11
  agents/adk_gemini_fullstack/notebooks/evaluating_adk_agent.ipynb,sha256=OMTiT3gAFWPvE9pPL8z7tsDwOU-l8wem5wH-OXPPlvk,56805
12
12
  agents/adk_gemini_fullstack/template/.templateconfig.yaml,sha256=0vwRirGXHFw7RUVjS8umiMNu3TXvTKk9smufIOhDJn4,1658
@@ -195,8 +195,8 @@ src/resources/setup_cicd/providers.tf,sha256=Km4z6IJt7x7PLaa0kyZbBrO2m3lpuIJZFD5
195
195
  src/utils/generate_locks.py,sha256=6V1B8V2BEuevWnXUsxZVTrLjXwFRII8UfsIGrQqZxVs,4320
196
196
  src/utils/lock_utils.py,sha256=RSE6n3hBkH64xNm3Q5wrR0Pqbeo-oc7xaTOhA9yzHjk,2275
197
197
  src/utils/watch_and_rebuild.py,sha256=vP4yIiA7E_lj5sfQdJUl8TXas6V7msDg8XWUutAC05Q,6679
198
- agent_starter_pack-0.6.1.dist-info/METADATA,sha256=UvwmnqtiGy7xpht6a-VP8x8uNOJZvlkVdXFxi0Yj7eE,10454
199
- agent_starter_pack-0.6.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
200
- agent_starter_pack-0.6.1.dist-info/entry_points.txt,sha256=U7uCxR7YulIhZ0L8R8Hui0Bsy6J7oyESBeDYJYMrQjA,56
201
- agent_starter_pack-0.6.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
202
- agent_starter_pack-0.6.1.dist-info/RECORD,,
198
+ agent_starter_pack-0.6.2.dist-info/METADATA,sha256=-d0y3Ev6PpkXjlulqO676U5XhPjLB1Y-aWXaMgbJD_8,10454
199
+ agent_starter_pack-0.6.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
200
+ agent_starter_pack-0.6.2.dist-info/entry_points.txt,sha256=U7uCxR7YulIhZ0L8R8Hui0Bsy6J7oyESBeDYJYMrQjA,56
201
+ agent_starter_pack-0.6.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
202
+ agent_starter_pack-0.6.2.dist-info/RECORD,,
@@ -75,6 +75,30 @@ Your agent should now be running!
75
75
  * Backend API: `http://localhost:8000`
76
76
  * Frontend UI: `http://localhost:5173`
77
77
 
78
+ ## 🔑 Using Google AI Studio API Keys
79
+
80
+ If you prefer to use [AI Studio](https://aistudio.google.com/) API keys:
81
+
82
+ 1. Create a `.env` file in the `/app` directory with:
83
+ ```
84
+ GOOGLE_GENAI_USE_VERTEXAI=FALSE
85
+ GOOGLE_API_KEY=YOUR_AI_STUDIO_API_KEY
86
+ ```
87
+
88
+ <details>
89
+ <summary>Or export the variables directly</summary>
90
+
91
+ ```bash
92
+ export GOOGLE_GENAI_USE_VERTEXAI=FALSE
93
+ export GOOGLE_API_KEY=YOUR_AI_STUDIO_API_KEY
94
+ ```
95
+ </details>
96
+
97
+
98
+ 2. Replace `YOUR_AI_STUDIO_API_KEY` with your actual key from [AI Studio](https://aistudio.google.com/app/apikey)
99
+
100
+ 3. This setting will use your API key instead of the default Vertex AI configuration.
101
+
78
102
  ## ☁️ Deployment
79
103
 
80
104
  You can quickly deploy your agent to a **development environment** on Google Cloud. You can deploy your latest code at any time with:
@@ -14,12 +14,10 @@
14
14
 
15
15
  import datetime
16
16
  import logging
17
- import os
18
17
  import re
19
18
  from collections.abc import AsyncGenerator
20
19
  from typing import Literal
21
20
 
22
- import google.auth
23
21
  from google.adk.agents import BaseAgent, LlmAgent, LoopAgent, SequentialAgent
24
22
  from google.adk.agents.callback_context import CallbackContext
25
23
  from google.adk.agents.invocation_context import InvocationContext
@@ -32,11 +30,6 @@ from pydantic import BaseModel, Field
32
30
 
33
31
  from .config import config
34
32
 
35
- _, project_id = google.auth.default()
36
- os.environ.setdefault("GOOGLE_CLOUD_PROJECT", project_id)
37
- os.environ.setdefault("GOOGLE_CLOUD_LOCATION", "global")
38
- os.environ.setdefault("GOOGLE_GENAI_USE_VERTEXAI", "True")
39
-
40
33
 
41
34
  # --- Structured Output Models ---
42
35
  class SearchQuery(BaseModel):
@@ -263,6 +256,8 @@ research_evaluator = LlmAgent(
263
256
  Your response must be a single, raw JSON object validating against the 'Feedback' schema.
264
257
  """,
265
258
  output_schema=Feedback,
259
+ disallow_transfer_to_parent=True,
260
+ disallow_transfer_to_peers=True,
266
261
  output_key="research_evaluation",
267
262
  )
268
263
 
@@ -12,8 +12,21 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ import os
15
16
  from dataclasses import dataclass
16
17
 
18
+ import google.auth
19
+
20
+ # To use AI Studio credentials:
21
+ # 1. Create a .env file in the /app directory with:
22
+ # GOOGLE_GENAI_USE_VERTEXAI=FALSE
23
+ # GOOGLE_API_KEY=PASTE_YOUR_ACTUAL_API_KEY_HERE
24
+ # 2. This will override the default Vertex AI configuration
25
+ _, project_id = google.auth.default()
26
+ os.environ.setdefault("GOOGLE_CLOUD_PROJECT", project_id)
27
+ os.environ.setdefault("GOOGLE_CLOUD_LOCATION", "global")
28
+ os.environ.setdefault("GOOGLE_GENAI_USE_VERTEXAI", "True")
29
+
17
30
 
18
31
  @dataclass
19
32
  class ResearchConfiguration: