reasoning-deployment-service 0.4.8__tar.gz → 0.5.1__tar.gz

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.

Files changed (34) hide show
  1. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/PKG-INFO +1 -1
  2. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/pyproject.toml +1 -1
  3. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/reasoning_deployment_service.py +21 -40
  4. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service.egg-info/PKG-INFO +1 -1
  5. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/README.md +0 -0
  6. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/__init__.py +0 -0
  7. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/cli_editor/__init__.py +0 -0
  8. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/cli_editor/api_client.py +0 -0
  9. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/cli_editor/cli_runner.py +0 -0
  10. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/cli_editor/config.py +0 -0
  11. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/cli_editor/google_deps.py +0 -0
  12. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/cli_editor/reasoning_engine_creator.py +0 -0
  13. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/__init__.py +0 -0
  14. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/agent_checkbox_list.py +0 -0
  15. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/main.py +0 -0
  16. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/__init__.py +0 -0
  17. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/core/__init__.py +0 -0
  18. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/core/api_client.py +0 -0
  19. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/core/config.py +0 -0
  20. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/core/google_deps.py +0 -0
  21. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/core/reasoning_engine_creator.py +0 -0
  22. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/ui/__init__.py +0 -0
  23. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/ui/agent_space_view.py +0 -0
  24. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/ui/authorization_view.py +0 -0
  25. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/ui/reasoning_engine_view.py +0 -0
  26. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/ui/reasoning_engines_view.py +0 -0
  27. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/gui_editor/src/ui/ui_components.py +0 -0
  28. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service/runner.py +0 -0
  29. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service.egg-info/SOURCES.txt +0 -0
  30. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service.egg-info/dependency_links.txt +0 -0
  31. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service.egg-info/entry_points.txt +0 -0
  32. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service.egg-info/requires.txt +0 -0
  33. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/reasoning_deployment_service.egg-info/top_level.txt +0 -0
  34. {reasoning_deployment_service-0.4.8 → reasoning_deployment_service-0.5.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reasoning-deployment-service
3
- Version: 0.4.8
3
+ Version: 0.5.1
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "reasoning-deployment-service"
7
- version = "0.4.8"
7
+ version = "0.5.1"
8
8
  description = "Deployment helper for Vertex AI Reasoning Engines & Agent Spaces"
9
9
  readme = "README.md"
10
10
  license = { text = "Apache-2.0" }
@@ -785,50 +785,29 @@ class ReasoningEngineDeploymentService:
785
785
  f"collections/default_collection/engines/{self._agent_space_engine}/"
786
786
  f"assistants/default_assistant/agents/{agent_id}"
787
787
  )
788
- headers = self._get_headers()
789
-
790
- # GET current agent
791
- resp = self._http.get(url, headers=headers, timeout=60)
792
- resp.raise_for_status()
793
- agent_data = resp.json()
794
-
795
- # Build patch payload by merging
796
- patch_payload = {}
797
-
798
- if new_display_name:
799
- patch_payload["displayName"] = new_display_name
800
- if new_description:
801
- patch_payload["description"] = new_description
802
788
 
803
- # Copy entire current adkAgentDefinition
804
- adk_def = agent_data.get("adkAgentDefinition", {}).copy()
805
-
806
- if new_reasoning_engine:
807
- adk_def.setdefault("provisionedReasoningEngine", {})[
808
- "reasoningEngine"
809
- ] = new_reasoning_engine
810
-
811
- if new_authorizations is not None:
812
- adk_def["authorizations"] = new_authorizations
813
-
814
- if adk_def:
815
- patch_payload["adkAgentDefinition"] = adk_def
789
+ agent_updates_body = {
790
+ "displayName": new_display_name,
791
+ "description": new_description,
792
+ "adk_agent_definition": {
793
+ "tool_settings": {
794
+ "tool_description": new_description
795
+ },
796
+ "provisioned_reasoning_engine":{
797
+ "reasoning_engine": new_reasoning_engine
798
+ },
799
+ "authorizations": new_authorizations
800
+ }
801
+ }
816
802
 
817
- if not patch_payload:
818
- self.info("[AGENT PATCH] Nothing to update.")
819
- return agent_data
803
+ headers = self._get_headers()
820
804
 
821
- self.info(
822
- f"[AGENT PATCH] PATCH {url} with payload={json.dumps(patch_payload, indent=2)}"
823
- )
824
- patch_resp = self._http.patch(url, headers=headers, json=patch_payload, timeout=60)
825
- try:
826
- self.info(f"[AGENT PATCH] response={json.dumps(patch_resp.json(), indent=2)}")
827
- except Exception:
828
- self.info(f"[AGENT PATCH] response_text={(patch_resp.text or '')[:1000]}")
829
- patch_resp.raise_for_status()
805
+ update_mask = ["displayName", "description", "adk_agent_definition.tool_settings.tool_description",
806
+ "adk_agent_definition.provisioned_reasoning_engine.reasoning_engine"]
807
+ params = {"update_mask": ",".join(update_mask)}
808
+ resp = self._http.patch(url, headers=headers, params=params, json=agent_updates_body, timeout=60)
830
809
 
831
- return patch_resp.json()
810
+ return resp.json()
832
811
 
833
812
 
834
813
  def one_githhub_deployment_to_go_with_skip(self):
@@ -980,6 +959,8 @@ class ReasoningEngineDeploymentService:
980
959
  self.info(f"[AGENT] POST {create_url}")
981
960
  cr = self._http.post(create_url, headers=headers, json=payload, timeout=90)
982
961
  self.info(f"[AGENT] POST status={cr.status_code}")
962
+ self.info(f"[AGENT] POST ct={cr.headers.get('content-type','')}")
963
+ self.info(f"[AGENT] POST body={(cr.text or '')[:4000]}")
983
964
  cr.raise_for_status()
984
965
  agent_name = (cr.json() or {}).get("name")
985
966
  if agent_name:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reasoning-deployment-service
3
- Version: 0.4.8
3
+ Version: 0.5.1
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