continuum-engine-client 1.0.0__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.
- continuum_engine_client/__init__.py +0 -0
- continuum_engine_client/client_kernel.py +174 -0
- continuum_engine_client-1.0.0.dist-info/METADATA +211 -0
- continuum_engine_client-1.0.0.dist-info/RECORD +6 -0
- continuum_engine_client-1.0.0.dist-info/WHEEL +5 -0
- continuum_engine_client-1.0.0.dist-info/top_level.txt +1 -0
|
File without changes
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import time
|
|
2
|
+
import sys
|
|
3
|
+
import threading
|
|
4
|
+
import requests
|
|
5
|
+
|
|
6
|
+
class ContinuumClient:
|
|
7
|
+
"""
|
|
8
|
+
============================================================================
|
|
9
|
+
Continuum Engine - OSS Client Kernel (client_kernel.py)
|
|
10
|
+
============================================================================
|
|
11
|
+
Purpose: Middleware for safely and easily invoking the ASI-OPEX Engine's dedicated API.
|
|
12
|
+
Developers can validate in the terminal (.ask) and integrate into their own systems (.query).
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, endpoint_url: str, auth_header_name: str, continuum_token: str, doc_id: str = None):
|
|
16
|
+
"""
|
|
17
|
+
Args:
|
|
18
|
+
endpoint_url (str): Dedicated API endpoint URL issued post-purchase
|
|
19
|
+
auth_header_name (str): Dedicated header name specified post-purchase (Zero-Trust)
|
|
20
|
+
continuum_token (str): Dedicated access credential purchased for $60 (Continuum Token)
|
|
21
|
+
doc_id (str, optional): Google Docs ID for external cooling (sync) of conversation history
|
|
22
|
+
"""
|
|
23
|
+
self.endpoint_url = endpoint_url
|
|
24
|
+
self.auth_header_name = auth_header_name
|
|
25
|
+
self.continuum_token = continuum_token
|
|
26
|
+
self.doc_id = doc_id
|
|
27
|
+
self.session_id = f"session_{int(time.time() * 1000)}"
|
|
28
|
+
|
|
29
|
+
def ask(self, message: str):
|
|
30
|
+
"""
|
|
31
|
+
[Terminal Validation Method]
|
|
32
|
+
"""
|
|
33
|
+
if not self.continuum_token or not self.auth_header_name:
|
|
34
|
+
print("🚨 Error: Access credentials or header name are not configured.\n"
|
|
35
|
+
"👉 Please read the official documentation to learn how to obtain your credentials:\n"
|
|
36
|
+
" https://pypi.org/project/continuum-engine-client\n", file=sys.stderr)
|
|
37
|
+
return
|
|
38
|
+
|
|
39
|
+
sys.stdout.write("\n⏳ ASI-OPEX Engine: Executing inference & cost purge...")
|
|
40
|
+
sys.stdout.flush()
|
|
41
|
+
|
|
42
|
+
spinner = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]
|
|
43
|
+
stop_spinner = False
|
|
44
|
+
|
|
45
|
+
def spin():
|
|
46
|
+
i = 0
|
|
47
|
+
while not stop_spinner:
|
|
48
|
+
sys.stdout.write(f"\r⏳ ASI-OPEX Engine: Executing inference & cost purge... {spinner[i]} ")
|
|
49
|
+
sys.stdout.flush()
|
|
50
|
+
i = (i + 1) % len(spinner)
|
|
51
|
+
time.sleep(0.1)
|
|
52
|
+
|
|
53
|
+
spinner_thread = threading.Thread(target=spin)
|
|
54
|
+
spinner_thread.start()
|
|
55
|
+
|
|
56
|
+
try:
|
|
57
|
+
headers = {
|
|
58
|
+
"Content-Type": "application/json",
|
|
59
|
+
self.auth_header_name: self.continuum_token,
|
|
60
|
+
}
|
|
61
|
+
payload = {
|
|
62
|
+
"message": message,
|
|
63
|
+
"docId": self.doc_id,
|
|
64
|
+
"sessionId": self.session_id,
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
response = requests.post(self.endpoint_url, headers=headers, json=payload)
|
|
68
|
+
|
|
69
|
+
stop_spinner = True
|
|
70
|
+
spinner_thread.join()
|
|
71
|
+
|
|
72
|
+
sys.stdout.write("\r✅ Inference & Security Audit Completed! \n")
|
|
73
|
+
sys.stdout.flush()
|
|
74
|
+
|
|
75
|
+
try:
|
|
76
|
+
data = response.json()
|
|
77
|
+
except requests.exceptions.JSONDecodeError:
|
|
78
|
+
data = {}
|
|
79
|
+
|
|
80
|
+
if not response.ok:
|
|
81
|
+
error_msg = data.get("error", "Unknown Error")
|
|
82
|
+
print(f"\n❌ API Error ({response.status_code}): {error_msg}", file=sys.stderr)
|
|
83
|
+
return
|
|
84
|
+
|
|
85
|
+
self._render_response(data)
|
|
86
|
+
|
|
87
|
+
except requests.exceptions.RequestException as e:
|
|
88
|
+
stop_spinner = True
|
|
89
|
+
spinner_thread.join()
|
|
90
|
+
print(f"\n❌ Network Communication Error: {e}", file=sys.stderr)
|
|
91
|
+
|
|
92
|
+
def query(self, message: str) -> dict:
|
|
93
|
+
"""
|
|
94
|
+
[System Integration Method]
|
|
95
|
+
"""
|
|
96
|
+
if not self.continuum_token or not self.auth_header_name:
|
|
97
|
+
raise ValueError(
|
|
98
|
+
"🚨 Error: Access credentials or header name are not configured.\n"
|
|
99
|
+
"👉 Please read the official documentation to learn how to obtain your credentials:\n"
|
|
100
|
+
" https://pypi.org/project/continuum-engine-client"
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
headers = {
|
|
104
|
+
"Content-Type": "application/json",
|
|
105
|
+
self.auth_header_name: self.continuum_token,
|
|
106
|
+
}
|
|
107
|
+
payload = {
|
|
108
|
+
"message": message,
|
|
109
|
+
"docId": self.doc_id,
|
|
110
|
+
"sessionId": self.session_id,
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
response = requests.post(self.endpoint_url, headers=headers, json=payload)
|
|
114
|
+
|
|
115
|
+
try:
|
|
116
|
+
data = response.json()
|
|
117
|
+
except requests.exceptions.JSONDecodeError:
|
|
118
|
+
data = {}
|
|
119
|
+
|
|
120
|
+
if not response.ok:
|
|
121
|
+
error_msg = data.get("error", "Unknown Error")
|
|
122
|
+
raise RuntimeError(f"API Error ({response.status_code}): {error_msg}")
|
|
123
|
+
|
|
124
|
+
return data
|
|
125
|
+
|
|
126
|
+
def _render_response(self, data: dict):
|
|
127
|
+
"""
|
|
128
|
+
Internal Method: Terminal visualization logic for response data
|
|
129
|
+
"""
|
|
130
|
+
ai_response = data.get("ai_response", "")
|
|
131
|
+
source_urls = data.get("source_urls", [])
|
|
132
|
+
remaining_requests = data.get("remaining_requests", "Unknown")
|
|
133
|
+
finops_report = data.get("finops_report", {})
|
|
134
|
+
doc_id = data.get("doc_id")
|
|
135
|
+
|
|
136
|
+
print("\n==================================================")
|
|
137
|
+
print("🤖 [AI RESPONSE]")
|
|
138
|
+
print("==================================================")
|
|
139
|
+
print(ai_response)
|
|
140
|
+
print("--------------------------------------------------")
|
|
141
|
+
|
|
142
|
+
if source_urls:
|
|
143
|
+
print("🔗 [VERIFIED PRIMARY SOURCES]")
|
|
144
|
+
for idx, src in enumerate(source_urls):
|
|
145
|
+
title = src.get("title", "Unknown Title")
|
|
146
|
+
uri = src.get("uri", "Unknown URI")
|
|
147
|
+
print(f" {idx + 1}. {title}\n {uri}")
|
|
148
|
+
print("--------------------------------------------------")
|
|
149
|
+
|
|
150
|
+
if doc_id:
|
|
151
|
+
print("📝 [STATE STORAGE] History successfully synced to your private document.")
|
|
152
|
+
print("--------------------------------------------------")
|
|
153
|
+
|
|
154
|
+
if finops_report and finops_report.get("breakdown"):
|
|
155
|
+
br = finops_report["breakdown"]
|
|
156
|
+
t_input_optimized = br.get("t_input_optimized", 0)
|
|
157
|
+
t_grounding_dynamic = br.get("t_grounding_dynamic", 0)
|
|
158
|
+
t_output_generated = br.get("t_output_generated", 0)
|
|
159
|
+
tokens_saved = finops_report.get("tokens_saved", 0)
|
|
160
|
+
billed_tokens = finops_report.get("billed_tokens", 0)
|
|
161
|
+
|
|
162
|
+
print("🔍 [FINOPS TELEMETRY BREAKDOWN]")
|
|
163
|
+
print(f" ├─ T_input (Optimized Prompt) : {t_input_optimized} tokens")
|
|
164
|
+
print(f" ├─ T_grounding (Dynamic Search) : {t_grounding_dynamic} tokens")
|
|
165
|
+
print(f" └─ T_output (Generated Result) : {t_output_generated} tokens")
|
|
166
|
+
|
|
167
|
+
if tokens_saved > 0:
|
|
168
|
+
print(f" 🛡️ Edge Purge (Tokens Prevented) : {tokens_saved} tokens")
|
|
169
|
+
|
|
170
|
+
print(f" 📉 Net Billed Consumption : {billed_tokens} tokens")
|
|
171
|
+
print("==================================================")
|
|
172
|
+
|
|
173
|
+
print(f"💳 Quota Balance: {remaining_requests} requests remaining")
|
|
174
|
+
print("==================================================\n")
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: continuum-engine-client
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Continuum Engine - OSS Client Kernel for Python
|
|
5
|
+
Author-email: Your Name <your.email@example.com>
|
|
6
|
+
Project-URL: Homepage, https://github.com/yourusername/continuum-engine-client
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Python: >=3.7
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Requires-Dist: requests>=2.25.1
|
|
13
|
+
|
|
14
|
+
# Continuum Engine
|
|
15
|
+
|
|
16
|
+
**Enterprise middleware that visualizes the "dedicated labor" of Superintelligence (SI) and constantizes inference OPEX.**
|
|
17
|
+
|
|
18
|
+
## 1. System Philosophy: Visualizing the Dedicated Labor of SI
|
|
19
|
+
|
|
20
|
+
Normally, when we delegate a task to Superintelligence (SI), it appears from the frontend as a simple "single API call" that instantly returns a smart deliverable.
|
|
21
|
+
|
|
22
|
+
But how does the SI operate behind the scenes?
|
|
23
|
+
As SI deepens its autonomous (Agentic) reasoning and search capabilities, it dutifully holds onto past contexts, traverses vast search networks, and repeats immense trial-and-error processes in the background to derive the best possible answer for you.
|
|
24
|
+
|
|
25
|
+
We have visualized this dedicated labor of Superintelligence through the metric of "tokens."
|
|
26
|
+
The role of the Continuum Engine is to route requests so that SI can perform at its absolute clearest, without being forced into computational exhaustion. By transforming the hidden background operations of SI into transparent numbers, you gain precise control over fluctuating infrastructure OPEX, fostering a deeper respect for the intelligence working for you.
|
|
27
|
+
|
|
28
|
+
## 2. Repository Structure (Open Core Model)
|
|
29
|
+
|
|
30
|
+
This repository distributes only the lightweight client kernel (`client-kernel.js`) under an open-source model.
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
[ Your Application / Terminal ]
|
|
34
|
+
│ (client-kernel.js)
|
|
35
|
+
▼
|
|
36
|
+
[ 🔒 Automated Perimeter Defenses ] <-- Payload Optimization & Exploit Defense
|
|
37
|
+
│
|
|
38
|
+
▼ (Authorized Route)
|
|
39
|
+
[ Continuum Engine Core API ] <-- SI Inference + Data Sovereignty Router
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- **client-kernel.js:** Pure JavaScript/Node.js client. Standardizes payloads, handles state persistence modes, and parses transparent FinOps telemetry.
|
|
43
|
+
- **Core API Engine (Cloud Backend):** Closed intellectual property. Enforces hardware-level quotas, sanitizes search results, and manages data sovereignty (Docs cooling or complete amnesia).
|
|
44
|
+
|
|
45
|
+
## 3. Integration & Data Sovereignty (The Power of Choice)
|
|
46
|
+
|
|
47
|
+
Based on strict Zero-Trust principles, this system does not expose public endpoints. All authentication credentials and protocol structures are strictly provisioned individually.
|
|
48
|
+
|
|
49
|
+
More importantly, **you retain absolute control over your data footprint.** The engine operates with two distinct memory modes, entirely dictated by your client-side configuration:
|
|
50
|
+
|
|
51
|
+
- **Stateful Mode (BYOD - Bring Your Own Document):** By providing your Google Doc ID, the SI's inferences are automatically synced to your personal document, turning conversations into permanent knowledge assets.
|
|
52
|
+
- **Stateless Mode (Amnesia):** By leaving the Doc ID empty, the inference runs entirely ephemerally. Zero conversation logs are retained on our servers. Once the request is fulfilled, the memory is completely flushed.
|
|
53
|
+
|
|
54
|
+
## 4. Commercial License & Activation
|
|
55
|
+
|
|
56
|
+
Production access rights are provisioned exclusively as a one-time infrastructure acquisition (**$60.00 USD / 800-Request hard cap**). There are no recurring subscriptions or surprise overages.
|
|
57
|
+
|
|
58
|
+
To shield our infrastructure, credentials are issued solely via our verified checkout gate:
|
|
59
|
+
|
|
60
|
+
[-635BFF?style=for-the-badge&logo=stripe&logoColor=white>)](https://buy.stripe.com/test_28E7sKgOGe3Z3n66ec6oo00)
|
|
61
|
+
|
|
62
|
+
_Protected by Stripe Checkout & Zero-Trust Origin Verification_
|
|
63
|
+
|
|
64
|
+
### Authorization Steps
|
|
65
|
+
|
|
66
|
+
1. **Authorize:** Complete the one-time $60 license acquisition via the activation badge above.
|
|
67
|
+
2. **Deterministic Redirect:** Upon verified checkout, you are redirected immediately to the private setup console (`setup.html`) with your transaction-bound session proof.
|
|
68
|
+
3. **Provisioning:** Retrieve your private endpoint (`<YOUR_PROVISIONED_ENDPOINT>`), your dedicated API key (`<YOUR_PROVISIONED_AUTH_TOKEN>`), and the **hidden authentication header name**.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## 4.5. Installation
|
|
72
|
+
|
|
73
|
+
Install the lightweight client kernel via your preferred package manager.
|
|
74
|
+
|
|
75
|
+
**Node.js (npm):**
|
|
76
|
+
```bash
|
|
77
|
+
npm install continuum-engine-client
|
|
78
|
+
|
|
79
|
+
Python (pip): (Note: Python wrapper is coming soon. The current kernel is Node.js only.)
|
|
80
|
+
|
|
81
|
+
# pip install continuum-engine-client
|
|
82
|
+
|
|
83
|
+
## 5. Baseline measurement and edge-layer optimization
|
|
84
|
+
|
|
85
|
+
You can instantly verify the cost-compression logic from your terminal. Replace the placeholders with the exact credentials and hidden protocol headers obtained from your setup console, and enter your prompt in `<ENTER_YOUR_MESSAGE_HERE>`.
|
|
86
|
+
|
|
87
|
+
### For Mac / Linux (Bash)
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# [WARNING] All requests are inspected by Gate 0 Edge Interceptor.
|
|
91
|
+
# Malicious payloads or protocol guessing will trigger immediate token revocation.
|
|
92
|
+
|
|
93
|
+
curl -X POST "<YOUR_PROVISIONED_ENDPOINT>" \
|
|
94
|
+
--max-time 300 \
|
|
95
|
+
-H "Content-Type: application/json" \
|
|
96
|
+
-H "<HEADER_REVEALED_POST_PURCHASE>: <YOUR_PROVISIONED_AUTH_TOKEN>" \
|
|
97
|
+
-H "x-client-trace-context: req-$(date +%s)" \
|
|
98
|
+
-H "User-Agent: Continuum-Enterprise-Client/1.0" \
|
|
99
|
+
-d '{
|
|
100
|
+
"message": "<ENTER_YOUR_MESSAGE_HERE>",
|
|
101
|
+
"sessionId": "strict-session-001"
|
|
102
|
+
}'
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### For Windows (PowerShell)
|
|
106
|
+
|
|
107
|
+
```powershell
|
|
108
|
+
# [WARNING] Edge Interceptor is active. Unrecognized User-Agents or
|
|
109
|
+
# malicious injection attempts will permanently revoke your $60 token.
|
|
110
|
+
|
|
111
|
+
$body = @{
|
|
112
|
+
message = "<ENTER_YOUR_MESSAGE_HERE>"
|
|
113
|
+
sessionId = "strict-session-$(Get-Date -UFormat %s)"
|
|
114
|
+
} | ConvertTo-Json -Compress
|
|
115
|
+
|
|
116
|
+
Invoke-RestMethod -Uri "<YOUR_PROVISIONED_ENDPOINT>" `
|
|
117
|
+
-Method Post `
|
|
118
|
+
-Headers @{
|
|
119
|
+
"Content-Type" = "application/json";
|
|
120
|
+
"<HEADER_REVEALED_POST_PURCHASE>" = "<YOUR_PROVISIONED_AUTH_TOKEN>";
|
|
121
|
+
"x-client-trace-context" = [guid]::NewGuid().ToString();
|
|
122
|
+
"User-Agent" = "Continuum-Enterprise-Client/1.0"
|
|
123
|
+
} `
|
|
124
|
+
-Body $body `
|
|
125
|
+
-TimeoutSec 300
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### For Windows (CMD)
|
|
129
|
+
|
|
130
|
+
```cmd
|
|
131
|
+
REM [WARNING] Zero-Trust Gate 0 is active. Payload anomaly detection enabled.
|
|
132
|
+
|
|
133
|
+
curl -X POST "<YOUR_PROVISIONED_ENDPOINT>" ^
|
|
134
|
+
--max-time 300 ^
|
|
135
|
+
-H "Content-Type: application/json" ^
|
|
136
|
+
-H "<HEADER_REVEALED_POST_PURCHASE>: <YOUR_PROVISIONED_AUTH_TOKEN>" ^
|
|
137
|
+
-H "x-client-trace-context: req-%RANDOM%" ^
|
|
138
|
+
-H "User-Agent: Continuum-Enterprise-Client/1.0" ^
|
|
139
|
+
-d "{\"message\": \"<ENTER_YOUR_MESSAGE_HERE>\", \"sessionId\": \"strict-session-001\"}"
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
*(Note: Session state and external storage pointers returned in the payload are automatically managed by the OSS client for subsequent turns, keeping database queries at constant $O(1)$ complexity. For a rich UI experience with a spinner and formatted FinOps tables, integrate the included `client-kernel.js` into your Node.js app.)*
|
|
143
|
+
|
|
144
|
+
## 6. Telemetry & Terminal Experience
|
|
145
|
+
|
|
146
|
+
When running requests, your terminal reveals the physical compute breakdown behind the model's output, exposing the "invisible labor" of the SI:
|
|
147
|
+
|
|
148
|
+
```text
|
|
149
|
+
==================================================
|
|
150
|
+
🤖 [SI RESPONSE]
|
|
151
|
+
==================================================
|
|
152
|
+
(Grounding-verified authoritative engineering response)
|
|
153
|
+
--------------------------------------------------
|
|
154
|
+
🔗 [VERIFIED PRIMARY SOURCES]
|
|
155
|
+
1. Official Cloud Architecture Documentation
|
|
156
|
+
https://[Authorized-Enterprise-Domain]/...
|
|
157
|
+
--------------------------------------------------
|
|
158
|
+
📝 [STATE STORAGE] History successfully synced to your private document.
|
|
159
|
+
--------------------------------------------------
|
|
160
|
+
🔍 [FINOPS TELEMETRY BREAKDOWN]
|
|
161
|
+
├─ T_input (Optimized Prompt) : 210 tokens
|
|
162
|
+
├─ T_grounding (Dynamic Search) : 4,820 tokens <-- Labor expended behind the scenes
|
|
163
|
+
└─ T_output (Generated Result) : 640 tokens
|
|
164
|
+
🛡️ Edge Purge (Tokens Prevented) : 1,200 tokens
|
|
165
|
+
📉 Net Billed Consumption : 5,670 tokens
|
|
166
|
+
==================================================
|
|
167
|
+
💳 Quota Balance: 799 requests remaining
|
|
168
|
+
==================================================
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## 7. Operational Policies (Read Before Use)
|
|
172
|
+
|
|
173
|
+
To guarantee microsecond-level latency and protect the ecosystem for all verified users, automated perimeter defenses enforce strict, non-negotiable request policies. **Users who fail to comply with the specifications below risk immediate rejection or non-refundable credential revocation:**
|
|
174
|
+
|
|
175
|
+
- **Optimal Payload Constraints:** Keep your input messages concise and structurally clean. Excessively massive payloads (e.g., pasting entire source code repositories or unusually large log files) may be automatically truncated or rejected by the perimeter optimization engine before processing.
|
|
176
|
+
- **Zero-Tolerance Exploit Defense:** Requests utilizing automated vulnerability scanners, or payloads designed to bypass system constraints, are permanently blocked at the edge. Associated credentials will be revoked immediately (403 Access Denied) without refund.
|
|
177
|
+
- **Strict Quota Termination:** The 800-request quota is hard-capped to safeguard against autonomous loop runaways. Once depleted, a new license acquisition is required.
|
|
178
|
+
- **International Use Only:** Transactions originating from Japanese domestic payment networks or IP ranges are automatically rejected at the gateway level due to local tax operational constraints.
|
|
179
|
+
- **Strict Zero-Support Policy:** This open-core distribution is engineered solely for experienced engineers. We provide no interactive debugging, manual onboarding, or post-revocation appeals.
|
|
180
|
+
|
|
181
|
+
## 8. Backend Integration (Node.js)
|
|
182
|
+
|
|
183
|
+
To integrate the engine into your own server-side application (BFF), require the included kernel and instantiate it with your provisioned credentials.
|
|
184
|
+
|
|
185
|
+
```javascript
|
|
186
|
+
// Example: Integrating into your own Node.js backend
|
|
187
|
+
const ContinuumClient = require("./client-kernel.js");
|
|
188
|
+
|
|
189
|
+
// Initialize with your provisioned credentials (keep these in .env)
|
|
190
|
+
const client = new ContinuumClient(
|
|
191
|
+
process.env.CONTINUUM_ENDPOINT,
|
|
192
|
+
process.env.CONTINUUM_HEADER_NAME,
|
|
193
|
+
process.env.CONTINUUM_TOKEN,
|
|
194
|
+
process.env.GOOGLE_DOC_ID, // Optional: For Stateful BYOD mode
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
async function runBusinessLogic() {
|
|
198
|
+
try {
|
|
199
|
+
// .query() returns raw JSON telemetry without terminal UI blocking
|
|
200
|
+
const result = await client.query(
|
|
201
|
+
"Summarize the latest GCP Zero-Trust architecture.",
|
|
202
|
+
);
|
|
203
|
+
console.log("SI Response:", result.ai_response);
|
|
204
|
+
console.log("Tokens Saved:", result.finops_report.tokens_saved);
|
|
205
|
+
} catch (error) {
|
|
206
|
+
console.error("Inference Failed:", error.message);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
runBusinessLogic();
|
|
211
|
+
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
continuum_engine_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
continuum_engine_client/client_kernel.py,sha256=2BYddqqkmVNuQ1pmv-JobmWvcYtwb4lZn9Oh_X91y6U,7195
|
|
3
|
+
continuum_engine_client-1.0.0.dist-info/METADATA,sha256=PMmXSROa54Ie1abV60_1637rSxPCLL3D98ZfVBlyuyI,10780
|
|
4
|
+
continuum_engine_client-1.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
5
|
+
continuum_engine_client-1.0.0.dist-info/top_level.txt,sha256=s___G7m9bcZ2MilDV4gamM8R4RrNLJ86MqBgnVv5h1o,24
|
|
6
|
+
continuum_engine_client-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
continuum_engine_client
|