reasoning-deployment-service 0.4.7__tar.gz → 0.4.9__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.
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/PKG-INFO +1 -1
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/pyproject.toml +1 -1
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/reasoning_deployment_service.py +26 -52
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service.egg-info/PKG-INFO +1 -1
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/README.md +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/__init__.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/cli_editor/__init__.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/cli_editor/api_client.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/cli_editor/cli_runner.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/cli_editor/config.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/cli_editor/google_deps.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/cli_editor/reasoning_engine_creator.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/__init__.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/agent_checkbox_list.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/main.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/__init__.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/core/__init__.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/core/api_client.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/core/config.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/core/google_deps.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/core/reasoning_engine_creator.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/ui/__init__.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/ui/agent_space_view.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/ui/authorization_view.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/ui/reasoning_engine_view.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/ui/reasoning_engines_view.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/gui_editor/src/ui/ui_components.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service/runner.py +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service.egg-info/SOURCES.txt +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service.egg-info/dependency_links.txt +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service.egg-info/entry_points.txt +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service.egg-info/requires.txt +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/reasoning_deployment_service.egg-info/top_level.txt +0 -0
- {reasoning_deployment_service-0.4.7 → reasoning_deployment_service-0.4.9}/setup.cfg +0 -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.
|
|
7
|
+
version = "0.4.9"
|
|
8
8
|
description = "Deployment helper for Vertex AI Reasoning Engines & Agent Spaces"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "Apache-2.0" }
|
|
@@ -776,67 +776,39 @@ class ReasoningEngineDeploymentService:
|
|
|
776
776
|
new_authorizations: Optional[list[str]] = None,
|
|
777
777
|
) -> dict:
|
|
778
778
|
"""
|
|
779
|
-
|
|
779
|
+
Safely patch metadata (displayName, description) and linkage fields
|
|
780
780
|
(reasoningEngine, authorizations) for an existing Agent Space agent.
|
|
781
|
+
Preserves all other required adkAgentDefinition fields.
|
|
781
782
|
"""
|
|
782
783
|
url = (
|
|
783
784
|
f"{DISCOVERY_ENGINE_URL}/projects/{self._project_id}/locations/global/"
|
|
784
785
|
f"collections/default_collection/engines/{self._agent_space_engine}/"
|
|
785
786
|
f"assistants/default_assistant/agents/{agent_id}"
|
|
786
787
|
)
|
|
788
|
+
|
|
789
|
+
agent_updates_body = {
|
|
790
|
+
"displayName": new_display_name,
|
|
791
|
+
"description": "edit test",
|
|
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
|
+
}
|
|
802
|
+
|
|
787
803
|
headers = self._get_headers()
|
|
788
804
|
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
if new_display_name:
|
|
798
|
-
patch_payload["displayName"] = new_display_name
|
|
799
|
-
if new_description:
|
|
800
|
-
patch_payload["description"] = new_description
|
|
801
|
-
|
|
802
|
-
adk_def = agent_data.get("adkAgentDefinition", {})
|
|
803
|
-
patch_adk_def = {}
|
|
804
|
-
|
|
805
|
-
if new_reasoning_engine:
|
|
806
|
-
patch_adk_def.setdefault("provisionedReasoningEngine", {})[
|
|
807
|
-
"reasoningEngine"
|
|
808
|
-
] = new_reasoning_engine
|
|
809
|
-
|
|
810
|
-
if new_authorizations is not None:
|
|
811
|
-
patch_adk_def["authorizations"] = new_authorizations
|
|
812
|
-
|
|
813
|
-
if patch_adk_def:
|
|
814
|
-
patch_payload["adkAgentDefinition"] = patch_adk_def
|
|
815
|
-
|
|
816
|
-
# Build updateMask
|
|
817
|
-
update_mask = []
|
|
818
|
-
if "displayName" in patch_payload:
|
|
819
|
-
update_mask.append("display_name")
|
|
820
|
-
if "description" in patch_payload:
|
|
821
|
-
update_mask.append("description")
|
|
822
|
-
if "adkAgentDefinition" in patch_payload:
|
|
823
|
-
if "provisionedReasoningEngine" in patch_payload["adkAgentDefinition"]:
|
|
824
|
-
update_mask.append("adk_agent_definition.provisioned_reasoning_engine")
|
|
825
|
-
if "authorizations" in patch_payload["adkAgentDefinition"]:
|
|
826
|
-
update_mask.append("adk_agent_definition.authorizations")
|
|
827
|
-
|
|
828
|
-
if not update_mask:
|
|
829
|
-
self.info("[AGENT PATCH] Nothing to update.")
|
|
830
|
-
return agent_data
|
|
831
|
-
|
|
832
|
-
patch_url = f"{url}"
|
|
833
|
-
self.info(f"[AGENT PATCH] PATCH {patch_url} with payload={json.dumps(patch_payload, indent=2)}")
|
|
834
|
-
|
|
835
|
-
patch_resp = self._http.patch(patch_url, headers=headers, json=patch_payload, timeout=60)
|
|
836
|
-
print(patch_resp.text)
|
|
837
|
-
patch_resp.raise_for_status()
|
|
838
|
-
|
|
839
|
-
return patch_resp.json()
|
|
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)
|
|
809
|
+
|
|
810
|
+
return resp.json()
|
|
811
|
+
|
|
840
812
|
|
|
841
813
|
def one_githhub_deployment_to_go_with_skip(self):
|
|
842
814
|
return self.one_github_deployment_to_go(skip_engine=True)
|
|
@@ -987,6 +959,8 @@ class ReasoningEngineDeploymentService:
|
|
|
987
959
|
self.info(f"[AGENT] POST {create_url}")
|
|
988
960
|
cr = self._http.post(create_url, headers=headers, json=payload, timeout=90)
|
|
989
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]}")
|
|
990
964
|
cr.raise_for_status()
|
|
991
965
|
agent_name = (cr.json() or {}).get("name")
|
|
992
966
|
if agent_name:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|