agent-starter-pack 0.1.1__py3-none-any.whl → 0.1.3__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.1
3
+ Version: 0.1.3
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
@@ -24,7 +24,7 @@ Description-Content-Type: text/markdown
24
24
 
25
25
  # 🚀 Agent Starter Pack
26
26
 
27
- [1-Minute Video Overview](https://youtu.be/jHt-ZVD660g) | [Documentation](./docs/README.md)
27
+ ![Version](https://img.shields.io/pypi/v/agent-starter-pack?color=blue) [![1-Minute Video Overview](https://img.shields.io/badge/1--Minute%20Overview-gray)](https://youtu.be/jHt-ZVD660g) [![Docs](https://img.shields.io/badge/Documentation-gray)](./docs/README.md)
28
28
 
29
29
 
30
30
  The `agent-starter-pack` is a collection of production-ready Generative AI Agent templates built for Google Cloud. <br>
@@ -21,7 +21,7 @@ agents/langgraph_base_react/template/.templateconfig.yaml,sha256=NpQRZbXtCOeX0Xi
21
21
  agents/langgraph_base_react/tests/integration/test_agent.py,sha256=wg2Y8V4l7dh7rhWy7Z8zioDW5ILRsz7RZJ-mz0AhK3U,1619
22
22
  agents/multimodal_live_api/README.md,sha256=t19QIXtYX8OuHy4po8dD875hDp0E5kRJOxaxGJ-i2zQ,2741
23
23
  agents/multimodal_live_api/app/agent.py,sha256=WFB7lvDiImvNyWFlds_f5TtzyrbwcquJe6JyJo8HGSs,2690
24
- agents/multimodal_live_api/app/server.py,sha256=LdJcBRcUEqjAPk2pwsxwLx8wMULUzvMNDYZf_dx4yl0,7063
24
+ agents/multimodal_live_api/app/server.py,sha256=hO-iM-3FYUulccey4rLaJXtm0lkl_UtqkBUvi-_qiFA,7069
25
25
  agents/multimodal_live_api/app/templates.py,sha256=HgA4QGIle4Q-Nr6xAAXk1pTX7eNbZqlQUD9_fbCvDWA,3301
26
26
  agents/multimodal_live_api/app/vector_store.py,sha256=AYRSNpfevbVTt-nnWna_dp2pn4T7o1nz9-9wOoWaxsA,2045
27
27
  agents/multimodal_live_api/template/.templateconfig.yaml,sha256=gkXZxV15yY6OpJ64VWRhWlCtPhJxyacrv_e2kY3-Wo0,1082
@@ -128,13 +128,13 @@ src/frontends/live_api_react/frontend/src/utils/utils.ts,sha256=qQIhLzfyCBLecU0k
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
130
  src/frontends/streamlit/frontend/side_bar.py,sha256=HWMu8TRz7GZUMIoppUdAGO57IvhzTbO-P8HJLFIhTtc,8827
131
- src/frontends/streamlit/frontend/streamlit_app.py,sha256=xHvoj4QtpicMuueg6xNd693m5JNRWjGW32DjCBRg5fc,9747
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=Gl_HqRQ4sFiHG-kPGFbr2u4WLus676L2dkMz46Bq0fc,11574
137
+ src/frontends/streamlit/frontend/utils/stream_handler.py,sha256=PZxffzmJqj_u_5DDx8TFuXFl9C756-oK_m6VAhlo4rg,11971
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/locks/uv-agentic_rag_vertexai_search-agent_engine.lock,sha256=6muWlgt4dduqGDiGUvTg-d2zzY5rgW9zP9DbDnt3krc,474353
@@ -150,8 +150,8 @@ src/resources/setup_cicd/providers.tf,sha256=Km4z6IJt7x7PLaa0kyZbBrO2m3lpuIJZFD5
150
150
  src/utils/generate_locks.py,sha256=xu5IAhGGBPkVQGSJX4kk7_JNDwWJUEaXAHbmaQIohbg,4386
151
151
  src/utils/lock_utils.py,sha256=_QdzQtgIbCmJ87s046_i1g966slVNmvr3bJDeHbRQSM,2419
152
152
  src/utils/watch_and_rebuild.py,sha256=IdbTLReYknTXXu5KWPz3sc7Zg5HTEMS5UVlMSnuhs5E,6067
153
- agent_starter_pack-0.1.1.dist-info/METADATA,sha256=a4cAAywmy2SWA9LSeOc3LD5ND-CKoeBxXJNGnf_UOZE,7404
154
- agent_starter_pack-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
155
- agent_starter_pack-0.1.1.dist-info/entry_points.txt,sha256=U7uCxR7YulIhZ0L8R8Hui0Bsy6J7oyESBeDYJYMrQjA,56
156
- agent_starter_pack-0.1.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
157
- agent_starter_pack-0.1.1.dist-info/RECORD,,
153
+ agent_starter_pack-0.1.3.dist-info/METADATA,sha256=P9ZI9yGUBDyMMhvXQfilFSdjhxCmgZ3E24EAY5kn2QY,7576
154
+ agent_starter_pack-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
155
+ agent_starter_pack-0.1.3.dist-info/entry_points.txt,sha256=U7uCxR7YulIhZ0L8R8Hui0Bsy6J7oyESBeDYJYMrQjA,56
156
+ agent_starter_pack-0.1.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
157
+ agent_starter_pack-0.1.3.dist-info/RECORD,,
@@ -111,7 +111,7 @@ class GeminiSession:
111
111
  ]
112
112
  )
113
113
  logging.debug(f"Tool response: {tool_response}")
114
- await session.send(tool_response)
114
+ await session.send(input=tool_response)
115
115
 
116
116
  async def receive_from_gemini(self) -> None:
117
117
  """Listen for and process messages from Gemini.
@@ -239,8 +239,10 @@ def display_feedback(side_bar: SideBar) -> None:
239
239
  )
240
240
  if feedback is not None:
241
241
  client = Client(
242
- agent_callable_path=side_bar.agent_callable_path,
243
242
  remote_agent_engine_id=side_bar.remote_agent_engine_id,
243
+ agent_callable_path=side_bar.agent_callable_path,
244
+ url=side_bar.url_input_field,
245
+ authenticate_request=side_bar.should_authenticate_request,
244
246
  )
245
247
  client.log_feedback(
246
248
  feedback_dict=feedback,
@@ -124,9 +124,20 @@ class Client:
124
124
  headers = {
125
125
  "Content-Type": "application/json",
126
126
  }
127
- if self.authenticate_request:
128
- headers["Authorization"] = f"Bearer {self.id_token}"
129
- requests.post(url, data=json.dumps(feedback_dict), headers=headers, timeout=10)
127
+ if self.url:
128
+ url = urljoin(self.url, "feedback")
129
+ headers = {
130
+ "Content-Type": "application/json",
131
+ }
132
+ if self.authenticate_request:
133
+ headers["Authorization"] = f"Bearer {self.id_token}"
134
+ requests.post(
135
+ url, data=json.dumps(feedback_dict), headers=headers, timeout=10
136
+ )
137
+ elif self.agent is not None:
138
+ self.agent.register_feedback(feedback=feedback_dict)
139
+ else:
140
+ raise ValueError("No agent or URL configured for feedback logging")
130
141
 
131
142
  def stream_messages(
132
143
  self, data: dict[str, Any]