reasoning-deployment-service 0.4.4__py3-none-any.whl → 0.4.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.
@@ -829,15 +829,20 @@ class ReasoningEngineDeploymentService:
829
829
  self.info("[AGENT PATCH] Nothing to update.")
830
830
  return agent_data
831
831
 
832
- patch_url = f"{url}?updateMask={','.join(update_mask)}"
832
+ patch_url = f"{url}"
833
833
  self.info(f"[AGENT PATCH] PATCH {patch_url} with payload={json.dumps(patch_payload, indent=2)}")
834
834
 
835
835
  patch_resp = self._http.patch(patch_url, headers=headers, json=patch_payload, timeout=60)
836
+ print(patch_resp.text)
836
837
  patch_resp.raise_for_status()
837
838
 
838
839
  return patch_resp.json()
840
+
841
+ def one_githhub_deployment_to_go_with_skip(self):
842
+ return self.one_github_deployment_to_go(skip_engine=True)
843
+
839
844
 
840
- def one_github_deployment_to_go(self):
845
+ def one_github_deployment_to_go(self, skip_engine=False):
841
846
  """
842
847
  CI-friendly deploy:
843
848
  - Engine: create or update by display_name.
@@ -870,19 +875,20 @@ class ReasoningEngineDeploymentService:
870
875
  engine_rn = self.find_engine_by_name(self._reasoning_engine_name)
871
876
  self.info(f"[ENGINE] find_engine_by_name -> {engine_rn}")
872
877
 
873
- if not engine_rn:
874
- self.info(f"[ENGINE] '{self._reasoning_engine_name}' not found. Creating...")
875
- self.create_reasoning_engine()
876
- rec_after_create = self._read_engine_deployment_record()
877
- self.info(f"[ENGINE] record after create -> {json.dumps(rec_after_create, indent=2)}")
878
- engine_rn = rec_after_create.get("reasoning_engine_id") or self.find_engine_by_name(self._reasoning_engine_name)
879
- self.info(f"[ENGINE] post-create resolution -> {engine_rn}")
878
+ if not skip_engine:
880
879
  if not engine_rn:
881
- self.error("[ENGINE] Creation did not yield a resource name.")
882
- raise RuntimeError("Engine creation failed.")
883
- else:
884
- self.info(f"[ENGINE] '{self._reasoning_engine_name}' exists. Updating...")
885
- self.update_reasoning_engine(engine_rn)
880
+ self.info(f"[ENGINE] '{self._reasoning_engine_name}' not found. Creating...")
881
+ self.create_reasoning_engine()
882
+ rec_after_create = self._read_engine_deployment_record()
883
+ self.info(f"[ENGINE] record after create -> {json.dumps(rec_after_create, indent=2)}")
884
+ engine_rn = rec_after_create.get("reasoning_engine_id") or self.find_engine_by_name(self._reasoning_engine_name)
885
+ self.info(f"[ENGINE] post-create resolution -> {engine_rn}")
886
+ if not engine_rn:
887
+ self.error("[ENGINE] Creation did not yield a resource name.")
888
+ raise RuntimeError("Engine creation failed.")
889
+ else:
890
+ self.info(f"[ENGINE] '{self._reasoning_engine_name}' exists. Updating...")
891
+ self.update_reasoning_engine(engine_rn)
886
892
 
887
893
  self.info(f"[ENGINE] final engine_rn={engine_rn}")
888
894
 
@@ -13,7 +13,7 @@ class Runner:
13
13
  parser = argparse.ArgumentParser(description="Reasoning Engine Deployment Runner")
14
14
  parser.add_argument(
15
15
  "--mode",
16
- choices=["create", "auth", "cli", "gui", "populate_files", "github_deployment"],
16
+ choices=["create", "auth", "cli", "gui", "populate_files", "github_deployment", "github_deployment_without_engine"],
17
17
  help="Operation mode to run",
18
18
  )
19
19
  parser.add_argument(
@@ -133,12 +133,14 @@ class Runner:
133
133
  svc._check_required_files_exist()
134
134
  elif mode == "github_deployment":
135
135
  svc.one_github_deployment_to_go()
136
+ elif mode == "github_deployment_without_engine":
137
+ svc.one_githhub_deployment_to_go_with_skip()
136
138
 
137
139
  @staticmethod
138
140
  def _menu(root_agent):
139
141
  print("Choose an operation:\n1) Create/Update\n2) Auth only\n3) CLI\n4) GUI\nq) Quit")
140
142
  choice = input("Enter choice: ").strip().lower()
141
- mapping = {"1": "create", "2": "auth", "3": "cli", "4": "gui", "5": "github_deployment"}
143
+ mapping = {"1": "create", "2": "auth", "3": "cli", "4": "gui", "5": "github_deployment", "6": "github_deployment_without_engine"}
142
144
  if choice == "q":
143
145
  sys.exit(0)
144
146
  Runner._dispatch(mapping.get(choice, ""), root_agent)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reasoning-deployment-service
3
- Version: 0.4.4
3
+ Version: 0.4.7
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=IEYDkhjZa0xE2uxTqsF5n5DHPhagHpnbeicHycrdkjk,43897
3
- reasoning_deployment_service/runner.py,sha256=Y_SPGp26eoXRr8Ql6ugRF7jNYq3OwaytFIivuym6ICA,5428
2
+ reasoning_deployment_service/reasoning_deployment_service.py,sha256=bPIVOYScVtyDI2YkgdVgEXZq6onREtGG6yECEPjD9Dw,44118
3
+ reasoning_deployment_service/runner.py,sha256=qWN0t66lQ1G4ht48gIHSF2JvedcheHRu8PmUz5TaKTI,5619
4
4
  reasoning_deployment_service/cli_editor/__init__.py,sha256=bN8NPkw8riB92pj2lAwJZuEMOQIO_RRuge0ehnJTW1I,118
5
5
  reasoning_deployment_service/cli_editor/api_client.py,sha256=Kzx5iYp0MmowggrSmPLE7I2kt1-8xvdGBAgde9a1gCY,33681
6
6
  reasoning_deployment_service/cli_editor/cli_runner.py,sha256=1KkHtgAhVZ7VHQj7o76JibLHnr7NMUB-tieDX_KrAcY,18239
@@ -22,8 +22,8 @@ reasoning_deployment_service/gui_editor/src/ui/authorization_view.py,sha256=BoNc
22
22
  reasoning_deployment_service/gui_editor/src/ui/reasoning_engine_view.py,sha256=tCvSPEf4dW0NRdAqfs3yT5Pa873gYeLzCMMIt2r2T4o,14644
23
23
  reasoning_deployment_service/gui_editor/src/ui/reasoning_engines_view.py,sha256=IRjFlBbY98usAZa0roOonjvWQOsF6NBW4bBg_k8KnKI,7860
24
24
  reasoning_deployment_service/gui_editor/src/ui/ui_components.py,sha256=HdQHy-oSZ3GobQ3FNdH7y_w3ANbFiuf2rMoflAmff0A,55366
25
- reasoning_deployment_service-0.4.4.dist-info/METADATA,sha256=kB2YwVjqXGrfOw2J2u8G50qeV89W0coPI8r1K5Ucg6s,5302
26
- reasoning_deployment_service-0.4.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- reasoning_deployment_service-0.4.4.dist-info/entry_points.txt,sha256=onGKjR5ONTtRv3aqEtK863iw9Ty1kLcjfZlsplkRZrA,84
28
- reasoning_deployment_service-0.4.4.dist-info/top_level.txt,sha256=GKuQS1xHUYLZbatw9DmcYdBxxLhWhhGkV4FmFxgKdp0,29
29
- reasoning_deployment_service-0.4.4.dist-info/RECORD,,
25
+ reasoning_deployment_service-0.4.7.dist-info/METADATA,sha256=C8SaO5R8_FxbZEFQEHVYTB69eneDz0gC_AG1E4PRLGs,5302
26
+ reasoning_deployment_service-0.4.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ reasoning_deployment_service-0.4.7.dist-info/entry_points.txt,sha256=onGKjR5ONTtRv3aqEtK863iw9Ty1kLcjfZlsplkRZrA,84
28
+ reasoning_deployment_service-0.4.7.dist-info/top_level.txt,sha256=GKuQS1xHUYLZbatw9DmcYdBxxLhWhhGkV4FmFxgKdp0,29
29
+ reasoning_deployment_service-0.4.7.dist-info/RECORD,,