reasoning-deployment-service 0.7.2__py3-none-any.whl → 0.7.5__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 reasoning-deployment-service might be problematic. Click here for more details.

@@ -296,9 +296,9 @@ class ReasoningEngineDeploymentService:
296
296
  try:
297
297
  config = config['defaults']
298
298
  deployment_service_version = config.get('deployment_service')
299
-
300
- if float(deployment_service_version) >= 0.7:
301
- raise RuntimeError(f"Unsupported deployment_service version: {deployment_service_version}. Expected minimum '0.7'")
299
+ version = float(deployment_service_version)
300
+ if version < 0.7:
301
+ raise RuntimeError(f"Unsupported deployment_service version: {version}. Expected minimum '0.7'")
302
302
 
303
303
  authorization = config['authorization']
304
304
  gemini_enterprise = config['gemini_enterprise']
@@ -314,7 +314,9 @@ class ReasoningEngineDeploymentService:
314
314
  gemini_enterprise_tool_description = gemini_enterprise.get('tool_description')
315
315
  gemini_enterprise_engine_id = gemini_enterprise.get('target_deployment_engine_id')
316
316
 
317
- self._target_deployment_engine_id = gemini_enterprise_engine_id
317
+ print(gemini_enterprise)
318
+
319
+ self._agent_space_engine = gemini_enterprise_engine_id or os.getenv(f"{self.deployment_env}_AGENT_SPACE_ENGINE")
318
320
  self._required_scopes = authorization.get('scopes', [])
319
321
  self._agent_folder = "agent"
320
322
  self._reasoning_engine_name = reasoning_engine_name
@@ -327,7 +329,7 @@ class ReasoningEngineDeploymentService:
327
329
  raise RuntimeError(f"Missing required key in agent.yaml: {e}")
328
330
 
329
331
  def _load_deployment_environment_variables(self, deployment_environment: str):
330
- required_vars = ['PROJECT_ID', 'PROJECT_NUMBER', 'PROJECT_LOCATION', 'STAGING_BUCKET', 'AGENT_SPACE_ENGINE']
332
+ required_vars = ['PROJECT_ID', 'PROJECT_NUMBER', 'PROJECT_LOCATION', 'STAGING_BUCKET']
331
333
 
332
334
  for var in required_vars:
333
335
  env_var = f"{deployment_environment}_{var}"
@@ -336,6 +338,9 @@ class ReasoningEngineDeploymentService:
336
338
 
337
339
  setattr(self, f"_{var.lower()}", os.getenv(env_var))
338
340
 
341
+ if not self._agent_space_engine:
342
+ raise RuntimeError(f"Missing AGENT_SPACE_ENGINE for deployment environment {deployment_environment}.")
343
+
339
344
  if self._use_authorization:
340
345
  required_auth_vars = ['OAUTH_CLIENT_ID', 'OAUTH_CLIENT_SECRET']
341
346
 
@@ -105,7 +105,7 @@ class Runner:
105
105
  @staticmethod
106
106
  def _check_proper_configuration():
107
107
  """Ensure required environment variables are set in .env.agent."""
108
- required_vars = ['PROJECT_ID', 'PROJECT_NUMBER', 'PROJECT_LOCATION', 'AGENT_SPACE_ENGINE']
108
+ required_vars = ['PROJECT_ID', 'PROJECT_NUMBER', 'PROJECT_LOCATION']
109
109
  load_dotenv(dotenv_path=".env.agent")
110
110
 
111
111
  ok = True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reasoning-deployment-service
3
- Version: 0.7.2
3
+ Version: 0.7.5
4
4
  Summary: Deployment helper for Vertex AI Reasoning Engines & Agent Spaces
5
5
  Author-email: Sergio Estrada <sergio.estrada@accenture.com>
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  reasoning_deployment_service/__init__.py,sha256=xDuKt9gGviQiTV6vXBdkBvygnlAOIrwnUjVaMGZy0L4,670
2
- reasoning_deployment_service/reasoning_deployment_service.py,sha256=Wotzj8bEuDuV2fPaIGBMQGy8MRd8RSCC1QLwb5TZuew,43543
3
- reasoning_deployment_service/runner.py,sha256=qWN0t66lQ1G4ht48gIHSF2JvedcheHRu8PmUz5TaKTI,5619
2
+ reasoning_deployment_service/reasoning_deployment_service.py,sha256=s_I6PYzTDhsmncnj0I5A1B3s3judboBJssz1FTZ62Ko,43774
3
+ reasoning_deployment_service/runner.py,sha256=A88IhRPPAWtqedWPWOVne3Lg16uXhXuqARKGD5ORsWc,5597
4
4
  reasoning_deployment_service/cli_editor/__init__.py,sha256=bN8NPkw8riB92pj2lAwJZuEMOQIO_RRuge0ehnJTW1I,118
5
5
  reasoning_deployment_service/cli_editor/api_client.py,sha256=bcuV0kEHxyNobqJ1k2Iwp73EaFjuOWa4XJ77MRrWQr0,33106
6
6
  reasoning_deployment_service/cli_editor/cli_runner.py,sha256=1KkHtgAhVZ7VHQj7o76JibLHnr7NMUB-tieDX_KrAcY,18239
@@ -21,8 +21,8 @@ reasoning_deployment_service/gui_editor/src/ui/authorization_view.py,sha256=BoNc
21
21
  reasoning_deployment_service/gui_editor/src/ui/reasoning_engine_view.py,sha256=T_kBop74wHv8W7tk9aY17ty44rLu8Dc-vRZdRvhmeH0,13317
22
22
  reasoning_deployment_service/gui_editor/src/ui/reasoning_engines_view.py,sha256=IRjFlBbY98usAZa0roOonjvWQOsF6NBW4bBg_k8KnKI,7860
23
23
  reasoning_deployment_service/gui_editor/src/ui/ui_components.py,sha256=HdQHy-oSZ3GobQ3FNdH7y_w3ANbFiuf2rMoflAmff0A,55366
24
- reasoning_deployment_service-0.7.2.dist-info/METADATA,sha256=kSaZPhGkT191mS50-JWw5NAk85MsBa8weuMeSti_ZAU,5302
25
- reasoning_deployment_service-0.7.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
- reasoning_deployment_service-0.7.2.dist-info/entry_points.txt,sha256=onGKjR5ONTtRv3aqEtK863iw9Ty1kLcjfZlsplkRZrA,84
27
- reasoning_deployment_service-0.7.2.dist-info/top_level.txt,sha256=GKuQS1xHUYLZbatw9DmcYdBxxLhWhhGkV4FmFxgKdp0,29
28
- reasoning_deployment_service-0.7.2.dist-info/RECORD,,
24
+ reasoning_deployment_service-0.7.5.dist-info/METADATA,sha256=ZrVyhbEK7_QcEISP5966g529gOFC8TTS8edDs9Ug6zg,5302
25
+ reasoning_deployment_service-0.7.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
+ reasoning_deployment_service-0.7.5.dist-info/entry_points.txt,sha256=onGKjR5ONTtRv3aqEtK863iw9Ty1kLcjfZlsplkRZrA,84
27
+ reasoning_deployment_service-0.7.5.dist-info/top_level.txt,sha256=GKuQS1xHUYLZbatw9DmcYdBxxLhWhhGkV4FmFxgKdp0,29
28
+ reasoning_deployment_service-0.7.5.dist-info/RECORD,,