agno 2.3.17__py3-none-any.whl → 2.3.18__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.
@@ -25,6 +25,7 @@ from agno.utils.log import log_debug, log_error, log_info, log_warning
25
25
  from agno.utils.tokens import count_schema_tokens, count_text_tokens, count_tool_tokens
26
26
 
27
27
  try:
28
+ from google.oauth2.service_account import Credentials
28
29
  from google import genai
29
30
  from google.genai import Client as GeminiClient
30
31
  from google.genai.errors import ClientError, ServerError
@@ -66,6 +67,7 @@ class Gemini(Model):
66
67
  - Set `vertexai` to `True` to use the Vertex AI API.
67
68
  - Set your `project_id` (or set `GOOGLE_CLOUD_PROJECT` environment variable) and `location` (optional).
68
69
  - Set `http_options` (optional) to configure the HTTP options.
70
+ - Set `credentials` (optional) to use the Google Cloud credentials.
69
71
 
70
72
  Based on https://googleapis.github.io/python-genai/
71
73
  """
@@ -110,6 +112,7 @@ class Gemini(Model):
110
112
  request_params: Optional[Dict[str, Any]] = None
111
113
 
112
114
  # Client parameters
115
+ credentials: Optional[Credentials] = None
113
116
  api_key: Optional[str] = None
114
117
  vertexai: bool = False
115
118
  project_id: Optional[str] = None
@@ -158,6 +161,8 @@ class Gemini(Model):
158
161
  log_error("GOOGLE_CLOUD_LOCATION not set. Please set the GOOGLE_CLOUD_LOCATION environment variable.")
159
162
  client_params["project"] = project_id
160
163
  client_params["location"] = location
164
+ if self.credentials:
165
+ client_params["credentials"] = self.credentials
161
166
 
162
167
  client_params = {k: v for k, v in client_params.items() if v is not None}
163
168
 
agno/os/app.py CHANGED
@@ -300,12 +300,14 @@ class AgentOS:
300
300
  def _reprovision_routers(self, app: FastAPI) -> None:
301
301
  """Re-provision all routes for the AgentOS."""
302
302
  updated_routers = [
303
+ get_home_router(self),
303
304
  get_session_router(dbs=self.dbs),
305
+ get_memory_router(dbs=self.dbs),
306
+ get_eval_router(dbs=self.dbs, agents=self.agents, teams=self.teams),
304
307
  get_metrics_router(dbs=self.dbs),
305
308
  get_knowledge_router(knowledge_instances=self.knowledge_instances),
306
309
  get_traces_router(dbs=self.dbs),
307
- get_memory_router(dbs=self.dbs),
308
- get_eval_router(dbs=self.dbs, agents=self.agents, teams=self.teams),
310
+ get_database_router(self, settings=self.settings),
309
311
  ]
310
312
 
311
313
  # Clear all previously existing routes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agno
3
- Version: 2.3.17
3
+ Version: 2.3.18
4
4
  Summary: Agno: a lightweight library for building Multi-Agent Systems
5
5
  Author-email: Ashpreet Bedi <ashpreet@agno.com>
6
6
  Project-URL: homepage, https://agno.com
@@ -219,7 +219,7 @@ agno/models/deepseek/deepseek.py,sha256=vIxeA8ou-1_hlj2adF4VxbHhMKlMjcb6QUGVk_SB
219
219
  agno/models/fireworks/__init__.py,sha256=qIDjKUnwmrnwfa9B2Y3ybRyuUsF7Pzw6_bVq4N6M0Cg,86
220
220
  agno/models/fireworks/fireworks.py,sha256=0pCtb8UmPAJZTKpwFXKO-HLNZ-qK2zu3P8P5qxySRF8,1648
221
221
  agno/models/google/__init__.py,sha256=bEOSroFJ4__38XaCgBUWiOe_Qga66ZRm_gis__yIMmc,74
222
- agno/models/google/gemini.py,sha256=sVBQtc_2iSmFsTsueDhdJVkUc7p6x0Xgk1l5nYyreps,81666
222
+ agno/models/google/gemini.py,sha256=dR5sBrpqWs4ccRAJHfZy2AtUsAlI-3NArSmEWte-exg,81939
223
223
  agno/models/google/utils.py,sha256=6X5yFZ8q9OL8FRnI-1Fa4iHHCx7PENFQ4uIBX34FilY,721
224
224
  agno/models/groq/__init__.py,sha256=gODf5IA4yJKlwTEYsUywmA-dsiQVyL2_yWMc8VncdVU,66
225
225
  agno/models/groq/groq.py,sha256=1xBkn8OmXFFXMcrhkxodsurgOuk1u_GVwq8GOHDSPTU,24185
@@ -278,7 +278,7 @@ agno/models/vllm/vllm.py,sha256=qaWgYcmegJZL52ZjmuIoryBpZ9LpOvYHFY-AYxVirA4,2806
278
278
  agno/models/xai/__init__.py,sha256=ukcCxnCHxTtkJNA2bAMTX4MhCv1wJcbiq8ZIfYczIxs,55
279
279
  agno/models/xai/xai.py,sha256=i7QoRiVdmoQ1E8Zw_e60qQgF85geZXWRPtEKioIInSU,4796
280
280
  agno/os/__init__.py,sha256=h8oQu7vhD5RZf09jkyM_Kt1Kdq_d5kFB9gJju8QPwcY,55
281
- agno/os/app.py,sha256=HwOWieHJ_zN52F_oo6Jli4ADTaLHdcRO1h9FwhO76GI,45661
281
+ agno/os/app.py,sha256=wg0SlcVdYtYMmSRlgznkihL3K9CSt82Xc-zvvUpOURc,45759
282
282
  agno/os/auth.py,sha256=3-0FUvj5o5e0qOl1ixEJ8NLdchpr8AroKaK_4pojp7w,11291
283
283
  agno/os/config.py,sha256=z0wNd576_qsQGsQWsMRIZzjknDVEPlKWF_pHE6VBUyY,3538
284
284
  agno/os/managers.py,sha256=j7Y07yEsW03iKEy1itb3sq3PXcJS3ipJbK4rTqk6_Ow,13086
@@ -618,8 +618,8 @@ agno/workflow/step.py,sha256=voTmWWihLKDAMeLgYoie96KLCiVpxPFrZoFHEMhA6QM,75046
618
618
  agno/workflow/steps.py,sha256=rbfue2M4qYEkgHueojCY1-cB4i1MFjO-jX6uTxyoKwk,27118
619
619
  agno/workflow/types.py,sha256=t4304WCKB19QFdV3ixXZICcU8wtBza4EBCIz5Ve6MSQ,18035
620
620
  agno/workflow/workflow.py,sha256=rhSqepsIsVBPrNEOMNM70CPJYMl54-hFtwwfmhybGaU,195597
621
- agno-2.3.17.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
622
- agno-2.3.17.dist-info/METADATA,sha256=XXouWutGJG5MmWT2sH3moCH52aHUlWg547f6aZom4lA,31588
623
- agno-2.3.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
624
- agno-2.3.17.dist-info/top_level.txt,sha256=MKyeuVesTyOKIXUhc-d_tPa2Hrh0oTA4LM0izowpx70,5
625
- agno-2.3.17.dist-info/RECORD,,
621
+ agno-2.3.18.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
622
+ agno-2.3.18.dist-info/METADATA,sha256=r371SHk7G5QZ1pQoTWxv-9o_s2HWclyg2zc9MCujdfg,31588
623
+ agno-2.3.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
624
+ agno-2.3.18.dist-info/top_level.txt,sha256=MKyeuVesTyOKIXUhc-d_tPa2Hrh0oTA4LM0izowpx70,5
625
+ agno-2.3.18.dist-info/RECORD,,
File without changes