agent-starter-pack 0.1.5__py3-none-any.whl → 0.1.7__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.

Potentially problematic release.


This version of agent-starter-pack might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-starter-pack
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: CLI tool to create GCP-based AI agent projects from templates
5
5
  Author-email: Google LLC <agent-starter-pack@google.com>
6
6
  License: Apache-2.0
@@ -98,7 +98,7 @@ This starter pack covers all aspects of Agent development, from prototyping and
98
98
  This project represents the next evolution of the [e2e-gen-ai-app-starter-pack](goo.gle/e2e-gen-ai-app-starter-pack). Building on the foundation of the original, we've made significant improvements:
99
99
 
100
100
  * **Streamlined CLI:** A new command-line interface (`agent-starter-pack`) simplifies project creation, template selection, and deployment.
101
- * **Expanded Agent Options:** Support for a wider variety of agent frameworks (LangGraph, CrewAI, and the Google Agent Framework SDK) and deployment targets (including Vertex AI Agent Engine).
101
+ * **Expanded Agent Options:** Support for a wider variety of agent frameworks (LangGraph, CrewAI, and the Google GenAI SDK) and deployment targets (including Vertex AI Agent Engine).
102
102
  * **Simplified setup**: Integrated gcloud authentication and projects and region configurations
103
103
 
104
104
  ---
@@ -90,7 +90,7 @@ src/deployment_targets/cloud_run/tests/load_test/README.md,sha256=JP47idadGBiLaB
90
90
  src/deployment_targets/cloud_run/tests/load_test/load_test.py,sha256=HsxmcNKyEopeGER4QUmnjiW4Bqp6h1TXsCUkyrq6inw,3317
91
91
  src/deployment_targets/cloud_run/tests/load_test/.results/.placeholder,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
92
  src/deployment_targets/cloud_run/tests/unit/test_server.py,sha256=f3nJIw2JCcxvV2WDwq9oZv_VUVYpTCm6R2kw5ch8BRc,4379
93
- src/frontends/live_api_react/frontend/package-lock.json,sha256=rLRcK0FSGnqR7fXYprsToL6CB5vc5lON1sBVBCOtqUw,732488
93
+ src/frontends/live_api_react/frontend/package-lock.json,sha256=vkk3a4iEKYplGKbqJ02rW6uAMU4r-kcexMKCTnxjndU,732496
94
94
  src/frontends/live_api_react/frontend/package.json,sha256=6I6OonPQUUif19_bK9Drg5CucrM2GNbP9kXn1X0ppxo,1381
95
95
  src/frontends/live_api_react/frontend/tsconfig.json,sha256=cyqEhf7-Yydz-PX8_cuF8JpsyC363NDTNkrmCk0sKAo,595
96
96
  src/frontends/live_api_react/frontend/public/favicon.ico,sha256=FY9oTN01RzaJ2lZ1rCjNXsEfT1gWZJA3fPx0QMBlMCU,15086
@@ -127,14 +127,14 @@ src/frontends/live_api_react/frontend/src/utils/store-logger.ts,sha256=YxS0TjiGn
127
127
  src/frontends/live_api_react/frontend/src/utils/utils.ts,sha256=qQIhLzfyCBLecU0ksQCKIbD3cIflb0hxt0SPZGdYFEo,2457
128
128
  src/frontends/live_api_react/frontend/src/utils/worklets/audio-processing.ts,sha256=ULgnXphZUfbHkRhGoPT_670WHjzaXJwWgYU0ISQRSXI,1979
129
129
  src/frontends/live_api_react/frontend/src/utils/worklets/vol-meter.ts,sha256=DEXn9ywn7N_tqKBhQ9eUxvWCWqteyfT-Q0dwjbvjjpY,1780
130
- src/frontends/streamlit/frontend/side_bar.py,sha256=kZOTtHhr-BvzqD_pRN3h2Xu4HfFH2dcAO6XOSMBPnsA,9013
130
+ src/frontends/streamlit/frontend/side_bar.py,sha256=VeyNV2O94uicTajVYS-jMkUAUPMMrQA9o8_lYTurKKc,9025
131
131
  src/frontends/streamlit/frontend/streamlit_app.py,sha256=O-mF9-0nSL220mZSohKK6QrdSiaRsUJL1o_XeKdj8zo,9868
132
132
  src/frontends/streamlit/frontend/style/app_markdown.py,sha256=4H9GGlaOIbG_4T4QvHyTMfoeumJze7cZ2VuGIv39wFo,1050
133
133
  src/frontends/streamlit/frontend/utils/chat_utils.py,sha256=Z0OYQu-14_d9tDmH9Z4Vvi8xpSUEm9vuPZ8wmFgl4sQ,2262
134
134
  src/frontends/streamlit/frontend/utils/local_chat_history.py,sha256=9wc8L8j4tk10DBPQdV64kdZvqE1fHxC2esK8szid0l8,4741
135
135
  src/frontends/streamlit/frontend/utils/message_editing.py,sha256=YWoPe2KeWMuL3YVTm0am6MK3kzjEIYVmdkdwTQpmGdQ,2263
136
136
  src/frontends/streamlit/frontend/utils/multimodal_utils.py,sha256=v6YbCkz_YcnEo-9YvRjwBNt0SzU4M39bYxJGmKk69vE,7313
137
- src/frontends/streamlit/frontend/utils/stream_handler.py,sha256=afw-CnLx1LAsZWrQIivA0l2JVamlo2Ez88QoL5mFsN4,12091
137
+ src/frontends/streamlit/frontend/utils/stream_handler.py,sha256=MH_NqA0lLD1UpVRV2TAhtOMsUsar203JhR9T3a5Vgps,12050
138
138
  src/frontends/streamlit/frontend/utils/title_summary.py,sha256=B0cadS_KPW-tsbABauI4J681aqjEtuKFDa25e9R1WKc,3030
139
139
  src/resources/containers/data_processing/Dockerfile,sha256=uXjqDiSrr7YpoX-vtzaIJIVXZ2qeUpu1Nzju9qWZ9oI,859
140
140
  src/resources/containers/e2e-tests/Dockerfile,sha256=Q_aTyX_iaFY8j06XZkpMuggJnNO5daiLmmrvqaZHMxw,1611
@@ -151,8 +151,8 @@ src/resources/setup_cicd/providers.tf,sha256=Km4z6IJt7x7PLaa0kyZbBrO2m3lpuIJZFD5
151
151
  src/utils/generate_locks.py,sha256=xu5IAhGGBPkVQGSJX4kk7_JNDwWJUEaXAHbmaQIohbg,4386
152
152
  src/utils/lock_utils.py,sha256=_QdzQtgIbCmJ87s046_i1g966slVNmvr3bJDeHbRQSM,2419
153
153
  src/utils/watch_and_rebuild.py,sha256=IdbTLReYknTXXu5KWPz3sc7Zg5HTEMS5UVlMSnuhs5E,6067
154
- agent_starter_pack-0.1.5.dist-info/METADATA,sha256=lhkhYJnZ84HD-Xm2G2VJDJIOptv0otO2_qbsxTqf4K4,7701
155
- agent_starter_pack-0.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
156
- agent_starter_pack-0.1.5.dist-info/entry_points.txt,sha256=U7uCxR7YulIhZ0L8R8Hui0Bsy6J7oyESBeDYJYMrQjA,56
157
- agent_starter_pack-0.1.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
158
- agent_starter_pack-0.1.5.dist-info/RECORD,,
154
+ agent_starter_pack-0.1.7.dist-info/METADATA,sha256=_W3EF2_n4QfyMdLfciVLohTwUHWeiozwqE7gPI6MVrE,7691
155
+ agent_starter_pack-0.1.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
156
+ agent_starter_pack-0.1.7.dist-info/entry_points.txt,sha256=U7uCxR7YulIhZ0L8R8Hui0Bsy6J7oyESBeDYJYMrQjA,56
157
+ agent_starter_pack-0.1.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
158
+ agent_starter_pack-0.1.7.dist-info/RECORD,,
@@ -446,25 +446,25 @@
446
446
  }
447
447
  },
448
448
  "node_modules/@babel/helpers": {
449
- "version": "7.26.0",
450
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.0.tgz",
451
- "integrity": "sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==",
449
+ "version": "7.26.10",
450
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.10.tgz",
451
+ "integrity": "sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g==",
452
452
  "license": "MIT",
453
453
  "dependencies": {
454
- "@babel/template": "^7.25.9",
455
- "@babel/types": "^7.26.0"
454
+ "@babel/template": "^7.26.9",
455
+ "@babel/types": "^7.26.10"
456
456
  },
457
457
  "engines": {
458
458
  "node": ">=6.9.0"
459
459
  }
460
460
  },
461
461
  "node_modules/@babel/parser": {
462
- "version": "7.26.3",
463
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.3.tgz",
464
- "integrity": "sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==",
462
+ "version": "7.26.10",
463
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.10.tgz",
464
+ "integrity": "sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA==",
465
465
  "license": "MIT",
466
466
  "dependencies": {
467
- "@babel/types": "^7.26.3"
467
+ "@babel/types": "^7.26.10"
468
468
  },
469
469
  "bin": {
470
470
  "parser": "bin/babel-parser.js"
@@ -2039,14 +2039,14 @@
2039
2039
  }
2040
2040
  },
2041
2041
  "node_modules/@babel/template": {
2042
- "version": "7.25.9",
2043
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz",
2044
- "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==",
2042
+ "version": "7.26.9",
2043
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.26.9.tgz",
2044
+ "integrity": "sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA==",
2045
2045
  "license": "MIT",
2046
2046
  "dependencies": {
2047
- "@babel/code-frame": "^7.25.9",
2048
- "@babel/parser": "^7.25.9",
2049
- "@babel/types": "^7.25.9"
2047
+ "@babel/code-frame": "^7.26.2",
2048
+ "@babel/parser": "^7.26.9",
2049
+ "@babel/types": "^7.26.9"
2050
2050
  },
2051
2051
  "engines": {
2052
2052
  "node": ">=6.9.0"
@@ -2071,9 +2071,9 @@
2071
2071
  }
2072
2072
  },
2073
2073
  "node_modules/@babel/types": {
2074
- "version": "7.26.3",
2075
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.3.tgz",
2076
- "integrity": "sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==",
2074
+ "version": "7.26.10",
2075
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.10.tgz",
2076
+ "integrity": "sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==",
2077
2077
  "license": "MIT",
2078
2078
  "dependencies": {
2079
2079
  "@babel/helper-string-parser": "^7.25.9",
@@ -57,7 +57,7 @@ class SideBar:
57
57
  use_agent_path = self.st.selectbox(
58
58
  "Select Agent Type",
59
59
  ["Local Agent", "Remote Agent Engine ID", "Remote URL"],
60
- index=["Local Agent", "Remote Engine ID", "Remote URL"].index(
60
+ index=["Local Agent", "Remote Agent Engine ID", "Remote URL"].index(
61
61
  default_agent_type
62
62
  ),
63
63
  help="'Local Agent' uses a local implementation, 'Remote Agent Engine ID' connects to a deployed Vertex AI agent, and 'Remote URL' connects to a custom endpoint.",
@@ -73,7 +73,7 @@ class SideBar:
73
73
  self.remote_agent_engine_id = None
74
74
  self.url_input_field = None
75
75
  self.should_authenticate_request = False
76
- elif use_agent_path == "Remote Engine ID":
76
+ elif use_agent_path == "Remote Agent Engine ID":
77
77
  self.remote_agent_engine_id = self.st.text_input(
78
78
  label="Remote Agent Engine ID",
79
79
  value=os.environ.get(
@@ -159,7 +159,7 @@ class Client:
159
159
  if self.authenticate_request:
160
160
  headers["Authorization"] = f"Bearer {self.id_token}"
161
161
  with requests.post(
162
- self.url, json={"input": data}, headers=headers, stream=True, timeout=10
162
+ self.url, json=data, headers=headers, stream=True, timeout=10
163
163
  ) as response:
164
164
  for line in response.iter_lines():
165
165
  if line:
@@ -169,7 +169,7 @@ class Client:
169
169
  except json.JSONDecodeError:
170
170
  print(f"Failed to parse event: {line.decode('utf-8')}")
171
171
  elif self.agent is not None:
172
- yield from self.agent.stream_query(input=data)
172
+ yield from self.agent.stream_query(**data)
173
173
 
174
174
 
175
175
  class StreamHandler:
@@ -207,17 +207,17 @@ class EventProcessor:
207
207
  self.current_run_id: str | None = None
208
208
  self.additional_kwargs: dict[str, Any] = {}
209
209
 
210
- def process_events(self, run_id: str | None = None) -> None:
210
+ def process_events(self) -> None:
211
211
  """Process events from the stream, handling each event type appropriately."""
212
212
  messages = self.st.session_state.user_chats[
213
213
  self.st.session_state["session_id"]
214
214
  ]["messages"]
215
- self.current_run_id = run_id or str(uuid.uuid4())
215
+ self.current_run_id = str(uuid.uuid4())
216
216
  # Set run_id in session state at start of processing
217
217
  self.st.session_state["run_id"] = self.current_run_id
218
218
  stream = self.client.stream_messages(
219
219
  data={
220
- "messages": messages,
220
+ "input": {"messages": messages},
221
221
  "config": {
222
222
  "run_id": self.current_run_id,
223
223
  "metadata": {