reasoning-deployment-service 0.3.4__tar.gz → 0.3.5__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 (33) hide show
  1. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/PKG-INFO +1 -1
  2. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/pyproject.toml +1 -1
  3. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/runner.py +45 -7
  4. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service.egg-info/PKG-INFO +1 -1
  5. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/README.md +0 -0
  6. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/__init__.py +0 -0
  7. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/cli_editor/__init__.py +0 -0
  8. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/cli_editor/api_client.py +0 -0
  9. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/cli_editor/cli_runner.py +0 -0
  10. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/cli_editor/config.py +0 -0
  11. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/cli_editor/google_deps.py +0 -0
  12. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/cli_editor/reasoning_engine_creator.py +0 -0
  13. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/__init__.py +0 -0
  14. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/main.py +0 -0
  15. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/__init__.py +0 -0
  16. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/core/__init__.py +0 -0
  17. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/core/api_client.py +0 -0
  18. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/core/config.py +0 -0
  19. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/core/google_deps.py +0 -0
  20. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/core/reasoning_engine_creator.py +0 -0
  21. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/ui/__init__.py +0 -0
  22. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/ui/agent_space_view.py +0 -0
  23. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/ui/authorization_view.py +0 -0
  24. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/ui/reasoning_engine_view.py +0 -0
  25. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/ui/reasoning_engines_view.py +0 -0
  26. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/gui_editor/src/ui/ui_components.py +0 -0
  27. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service/reasoning_deployment_service.py +0 -0
  28. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service.egg-info/SOURCES.txt +0 -0
  29. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service.egg-info/dependency_links.txt +0 -0
  30. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service.egg-info/entry_points.txt +0 -0
  31. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service.egg-info/requires.txt +0 -0
  32. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/reasoning_deployment_service.egg-info/top_level.txt +0 -0
  33. {reasoning_deployment_service-0.3.4 → reasoning_deployment_service-0.3.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reasoning-deployment-service
3
- Version: 0.3.4
3
+ Version: 0.3.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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "reasoning-deployment-service"
7
- version = "0.3.4"
7
+ version = "0.3.5"
8
8
  description = "Deployment helper for Vertex AI Reasoning Engines & Agent Spaces"
9
9
  readme = "README.md"
10
10
  license = { text = "Apache-2.0" }
@@ -1,6 +1,7 @@
1
- import sys
1
+ import sys, os
2
2
  import argparse
3
3
  from pathlib import Path
4
+ from dotenv import load_dotenv
4
5
  from reasoning_deployment_service import ReasoningEngineDeploymentService
5
6
  from reasoning_deployment_service.gui_editor import GUIEditor
6
7
  from reasoning_deployment_service.cli_editor import CLIRunner
@@ -27,7 +28,7 @@ class Runner:
27
28
  # --- Load root_agent dynamically ---
28
29
  root_agent = Runner._load_agent(args.agent_path)
29
30
 
30
- # --- Check env config ---
31
+ # --- Require config files ---
31
32
  if not Path(".env.agent").exists() or not Path("aix_agent.yaml").exists():
32
33
  print("Missing .env.agent or aix_agent.yaml.")
33
34
  print("Options:\n 5) Generate placeholder config\n q) Quit")
@@ -37,6 +38,11 @@ class Runner:
37
38
  svc._check_required_files_exist()
38
39
  sys.exit(0)
39
40
 
41
+ # --- Sanity check env vars ---
42
+ if not Runner._check_proper_configuration():
43
+ print("Error: Missing required environment variables in .env.agent")
44
+ sys.exit(1)
45
+
40
46
  # --- Run mode or menu ---
41
47
  if args.mode:
42
48
  Runner._dispatch(args.mode, root_agent)
@@ -61,11 +67,12 @@ class Runner:
61
67
 
62
68
  @staticmethod
63
69
  def _load_agent(agent_path_arg: str):
64
- """Load root_agent either from --agent-path or your_agent_import.py."""
70
+ """Load root_agent either from --agent-path or your_agent_import.py, bootstrapping if needed."""
65
71
  sys.path.insert(0, str(Path.cwd())) # ensure project root on sys.path
72
+ import importlib
66
73
 
74
+ # Case 1: explicit --agent-path (power user / devs only)
67
75
  if agent_path_arg:
68
- import importlib
69
76
  if ":" in agent_path_arg:
70
77
  module_path, attr = agent_path_arg.split(":")
71
78
  else:
@@ -73,12 +80,43 @@ class Runner:
73
80
  module = importlib.import_module(module_path)
74
81
  return getattr(module, attr)
75
82
 
76
- if Path("your_agent_import.py").exists():
83
+ # Case 2: shim already exists
84
+ shim = Path("your_agent_import.py")
85
+ if shim.exists():
77
86
  from your_agent_import import root_agent
78
87
  return root_agent
79
88
 
80
- print("Error: No agent path provided and your_agent_import.py not found.")
81
- sys.exit(1)
89
+ # Case 3: bootstrap (first run)
90
+ print("No agent path configured. Let's set it up once.")
91
+ agent_dir = input("Enter the directory where your root_agent (agent.py) lives: ").strip()
92
+ agent_dir = agent_dir.rstrip("/")
93
+
94
+ if not Path(agent_dir, "agent.py").exists():
95
+ print(f"Error: {agent_dir}/agent.py not found")
96
+ sys.exit(1)
97
+
98
+ import_path = agent_dir.replace("/", ".") + ".agent"
99
+ shim.write_text(f"from {import_path} import root_agent\n")
100
+ print(f"Created {shim} pointing to {agent_dir}/agent.py")
101
+
102
+ from your_agent_import import root_agent
103
+ return root_agent
104
+
105
+
106
+ @staticmethod
107
+ def _check_proper_configuration():
108
+ """Ensure required environment variables are set in .env.agent."""
109
+ required_vars = ['PROJECT_ID', 'PROJECT_NUMBER', 'PROJECT_LOCATION', 'AGENT_SPACE_ENGINE']
110
+ load_dotenv(dotenv_path=".env.agent")
111
+
112
+ ok = True
113
+ for var in required_vars:
114
+ dev_var = f"DEV_{var}"
115
+ prod_var = f"PROD_{var}"
116
+ if not (Path(".env.agent").exists() and (os.getenv(dev_var) or os.getenv(prod_var))):
117
+ print(f"Missing: {dev_var} or {prod_var}")
118
+ ok = False
119
+ return ok
82
120
 
83
121
  @staticmethod
84
122
  def _dispatch(mode, root_agent):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reasoning-deployment-service
3
- Version: 0.3.4
3
+ Version: 0.3.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