reasoning-deployment-service 0.2.8__py3-none-any.whl → 0.3.1__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reasoning-deployment-service
3
- Version: 0.2.8
3
+ Version: 0.3.1
4
4
  Summary: Deployment helper for Vertex AI Reasoning Engines & Agent Spaces
5
5
  Author: AxG-AI-Exchange-GenAI-Initiative
6
6
  Author-email: Sergio Estrada <sergio.estrada@accenture.com>
@@ -1,4 +1,3 @@
1
- examples/programmatic_usage.py,sha256=tfJKPhz3BG8bjK1woiczbRJp6Z1YXN6BLcPF5fO2MxA,4800
2
1
  reasoning_deployment_service/__init__.py,sha256=xDuKt9gGviQiTV6vXBdkBvygnlAOIrwnUjVaMGZy0L4,670
3
2
  reasoning_deployment_service/reasoning_deployment_service.py,sha256=0QHU2IqqojwFI2wPJ0izrskiHiwBfxdBEB9I_YxYbSA,29133
4
3
  reasoning_deployment_service/cli_editor/__init__.py,sha256=bN8NPkw8riB92pj2lAwJZuEMOQIO_RRuge0ehnJTW1I,118
@@ -23,7 +22,7 @@ reasoning_deployment_service/gui_editor/src/ui/authorization_view.py,sha256=uiyN
23
22
  reasoning_deployment_service/gui_editor/src/ui/reasoning_engine_view.py,sha256=tCvSPEf4dW0NRdAqfs3yT5Pa873gYeLzCMMIt2r2T4o,14644
24
23
  reasoning_deployment_service/gui_editor/src/ui/reasoning_engines_view.py,sha256=IRjFlBbY98usAZa0roOonjvWQOsF6NBW4bBg_k8KnKI,7860
25
24
  reasoning_deployment_service/gui_editor/src/ui/ui_components.py,sha256=HdQHy-oSZ3GobQ3FNdH7y_w3ANbFiuf2rMoflAmff0A,55366
26
- reasoning_deployment_service-0.2.8.dist-info/METADATA,sha256=5UZrpELC02n3AJeDShk14zQ3rqnO7xrL50WcqrCwBdA,4534
27
- reasoning_deployment_service-0.2.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- reasoning_deployment_service-0.2.8.dist-info/top_level.txt,sha256=9pxE8mfd3G_ajdKYLqCtTJvpxhz4lhEqPDkb_2AS9ZQ,38
29
- reasoning_deployment_service-0.2.8.dist-info/RECORD,,
25
+ reasoning_deployment_service-0.3.1.dist-info/METADATA,sha256=VgkjFxLaR6Bn3Sn86i3oTX7Yo2zbl1pKZXmarSNC6qA,4534
26
+ reasoning_deployment_service-0.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ reasoning_deployment_service-0.3.1.dist-info/top_level.txt,sha256=GKuQS1xHUYLZbatw9DmcYdBxxLhWhhGkV4FmFxgKdp0,29
28
+ reasoning_deployment_service-0.3.1.dist-info/RECORD,,
@@ -1,154 +0,0 @@
1
- #!/usr/bin/env python3
2
- """
3
- Example: Programmatic usage of reasoning deployment service components
4
- """
5
-
6
- import os
7
- import threading
8
- import time
9
-
10
- def example_cli_usage():
11
- """Example of starting CLI editor programmatically."""
12
- print("📋 CLI Editor Example:")
13
- print("-" * 30)
14
-
15
- try:
16
- from reasoning_deployment_service.cli_editor import CLIRunner
17
-
18
- # Create CLI runner
19
- cli = CLIRunner()
20
-
21
- # Note: cli.run() is interactive and will block
22
- # For demo purposes, we'll just show it's available
23
- print("✅ CLI Runner created successfully")
24
- print("💡 To run: cli.run()")
25
- print("🔄 This will start an interactive CLI session")
26
-
27
- return cli
28
-
29
- except Exception as e:
30
- print(f"❌ Error with CLI: {e}")
31
- return None
32
-
33
- def example_gui_usage():
34
- """Example of starting GUI editor programmatically."""
35
- print("\n🖼️ GUI Editor Example:")
36
- print("-" * 30)
37
-
38
- try:
39
- from reasoning_deployment_service.gui_editor import GUIEditor
40
-
41
- # Note: We don't actually create the GUI to avoid issues in headless environments
42
- print("✅ GUI Editor class available")
43
- print("💡 To run: app = GUIEditor(); app.mainloop()")
44
- print("🔄 This will start the tkinter GUI application")
45
-
46
- return GUIEditor
47
-
48
- except Exception as e:
49
- print(f"❌ Error with GUI: {e}")
50
- return None
51
-
52
- def example_core_deployment():
53
- """Example of using core deployment service."""
54
- print("\n⚙️ Core Deployment Service Example:")
55
- print("-" * 40)
56
-
57
- try:
58
- from reasoning_deployment_service import ReasoningEngineDeploymentService
59
-
60
- print("✅ Core deployment service available")
61
- print("💡 Usage:")
62
- print(" service = ReasoningEngineDeploymentService(agent, 'DEV')")
63
- print(" service.one_deployment_with_everything_on_it()")
64
-
65
- return ReasoningEngineDeploymentService
66
-
67
- except Exception as e:
68
- print(f"❌ Error with core service: {e}")
69
- return None
70
-
71
- def example_integrated_workflow():
72
- """Example of an integrated workflow."""
73
- print("\n🔗 Integrated Workflow Example:")
74
- print("-" * 35)
75
-
76
- print("""
77
- def integrated_agent_workflow():
78
- # 1. Deploy your agent
79
- from reasoning_deployment_service import ReasoningEngineDeploymentService
80
- from google.adk.agents import BaseAgent
81
-
82
- class MyAgent(BaseAgent):
83
- def invoke(self, input_text: str) -> str:
84
- return f"Agent response: {input_text}"
85
-
86
- agent = MyAgent()
87
- service = ReasoningEngineDeploymentService(agent, "DEV")
88
- service.one_deployment_with_everything_on_it()
89
-
90
- # 2. Launch management interface
91
- choice = input("Choose interface (cli/gui): ")
92
-
93
- if choice == "cli":
94
- from reasoning_deployment_service.cli_editor import CLIRunner
95
- cli = CLIRunner()
96
- cli.run()
97
- elif choice == "gui":
98
- from reasoning_deployment_service.gui_editor import GUIEditor
99
- app = GUIEditor()
100
- app.mainloop()
101
- """)
102
-
103
- def check_environment():
104
- """Check if environment is properly configured."""
105
- print("\n🔍 Environment Check:")
106
- print("-" * 20)
107
-
108
- required_vars = [
109
- "DEV_PROJECT_ID", "DEV_PROJECT_NUMBER",
110
- "DEV_PROJECT_LOCATION", "DEV_STAGING_BUCKET"
111
- ]
112
-
113
- missing = []
114
- for var in required_vars:
115
- if not os.getenv(var):
116
- missing.append(var)
117
-
118
- if missing:
119
- print(f"⚠️ Missing environment variables: {missing}")
120
- print("💡 Set these in your .env file before using the services")
121
- return False
122
- else:
123
- print("✅ Environment variables look good!")
124
- return True
125
-
126
- def main():
127
- """Main example function."""
128
- print("🚀 Reasoning Deployment Service - Programmatic Usage Examples")
129
- print("=" * 65)
130
-
131
- # Check environment
132
- env_ok = check_environment()
133
-
134
- # Show component examples
135
- cli = example_cli_usage()
136
- gui_class = example_gui_usage()
137
- core = example_core_deployment()
138
- example_integrated_workflow()
139
-
140
- # Summary
141
- print("\n📝 Summary:")
142
- print("-" * 12)
143
- print(f"✅ CLI Editor: {'Available' if cli else 'Not available'}")
144
- print(f"✅ GUI Editor: {'Available' if gui_class else 'Not available'}")
145
- print(f"✅ Core Service: {'Available' if core else 'Not available'}")
146
- print(f"✅ Environment: {'Configured' if env_ok else 'Needs setup'}")
147
-
148
- if cli and gui_class and core:
149
- print("\n🎉 All components are ready for programmatic use!")
150
- else:
151
- print("\n⚠️ Some components may need additional setup or dependencies.")
152
-
153
- if __name__ == "__main__":
154
- main()