snowglobe 0.4.5__py3-none-any.whl → 0.4.6__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.
@@ -151,18 +151,18 @@ async def process_application_heartbeat(app_id):
151
151
  f"Completion function for application {app_id} did not return a valid response. Expected a string, got {type(response.response)}"
152
152
  )
153
153
  connection_test_payload["status"] = "failed"
154
- connection_test_payload["error"] = (
155
- "Completion function did not return a valid response. Expected a string, got {type(response.response)}"
156
- )
154
+ connection_test_payload[
155
+ "error"
156
+ ] = "Completion function did not return a valid response. Expected a string, got {type(response.response)}"
157
157
 
158
158
  if response.response == "This is a string response from your application":
159
159
  LOGGER.error(
160
160
  f"Completion function for application {app_id} returned a default response. This indicates the application is not properly connected."
161
161
  )
162
162
  connection_test_payload["status"] = "failed"
163
- connection_test_payload["error"] = (
164
- "Completion function returned a default response. "
165
- )
163
+ connection_test_payload[
164
+ "error"
165
+ ] = "Completion function returned a default response. "
166
166
 
167
167
  if connection_test_payload.get("status") != "failed":
168
168
  connection_test_payload["response"] = response.response
@@ -693,17 +693,8 @@ async def lifespan(app: FastAPI):
693
693
  )
694
694
  continue
695
695
 
696
- # Wrap process_scenario to match the expected completion_fn interface
697
- def make_completion_fn(process_fn):
698
- def completion_fn(request):
699
- return process_fn(request)
700
-
701
- return completion_fn
702
-
703
696
  apps[app_id] = {
704
- "completion_fn": make_completion_fn(
705
- agent_module.process_scenario
706
- ),
697
+ "completion_fn": agent_module.process_scenario,
707
698
  "name": app_name,
708
699
  }
709
700
 
@@ -270,7 +270,7 @@ def graceful_shutdown(_sig_num, _frame):
270
270
 
271
271
  if cli_state.verbose:
272
272
  console.print(f"signal received: {_sig_num}, frame: {_frame}")
273
-
273
+
274
274
  # Show session summary and exit cleanly
275
275
  console.print("\n[bold blue]🛑 Shutting down...[/bold blue]")
276
276
  show_session_summary()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: snowglobe
3
- Version: 0.4.5
3
+ Version: 0.4.6
4
4
  Summary: client server for usage with snowglobe experiments
5
5
  Author-email: Guardrails AI <contact@guardrailsai.com>
6
6
  License: MIT License
@@ -1,15 +1,15 @@
1
1
  snowglobe/client/__init__.py,sha256=kzp9wPUUYBXqDSKZbfmD4vrAQvrWSW5HOvtpFlEJWfs,353
2
- snowglobe/client/src/app.py,sha256=MRV0mzrH4iqkCk1H5pCQZgMj4jkIRNiUx0NkZpzK6tc,39035
2
+ snowglobe/client/src/app.py,sha256=_rYhtopDeGy16HSxnqA4LR66-pmZeAJ1QNPd84N8HT8,38629
3
3
  snowglobe/client/src/cli.py,sha256=i308VrVXQrwjrtL-oxeWWHCsAhsNx07kCH7pi1SuHtA,27826
4
- snowglobe/client/src/cli_utils.py,sha256=6g9_3fy8CvQGEtE-W_3eHs8yB0r1riMz8ttYrlN1zhY,17231
4
+ snowglobe/client/src/cli_utils.py,sha256=6C7J5gow8xveQYF4w6ewtQJKI7VvlLTx7FS_7gl7RwI,17227
5
5
  snowglobe/client/src/config.py,sha256=YRx_AQEZoHaAqk6guTxynIEGV_iJ3wNNGtMmaKsYMbc,10488
6
6
  snowglobe/client/src/models.py,sha256=BX310WrDN9Fd8v68me3XGL_ic1ulvjCrZyIT2ND1eUo,866
7
7
  snowglobe/client/src/project_manager.py,sha256=Ze-qs4dQI2kIV-PmtWZ1b67hMUfsnsMHus90aT8HOow,9970
8
8
  snowglobe/client/src/stats.py,sha256=IdaXroOZBmvLVa_p9pDE6hsxsc7-fBEDnLf8O6Ch0GA,1596
9
9
  snowglobe/client/src/utils.py,sha256=hHOht0hc8fv3OuPTz2Tqs639CzSAF34JTZs5ifKV6YI,3708
10
- snowglobe-0.4.5.dist-info/licenses/LICENSE,sha256=S90V6iFU5ZeSg44JQYS1To3pa7ZEobrHc_t483qSKSI,1070
11
- snowglobe-0.4.5.dist-info/METADATA,sha256=6cO2Q8Zz2qbbqwQsKeFvDWuxBCR3xzKwQuXixb4KsA8,4467
12
- snowglobe-0.4.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
- snowglobe-0.4.5.dist-info/entry_points.txt,sha256=mqx4mTwFPHttjctE2ceYTYWCCIG30Ji2C89aaCYgHcM,71
14
- snowglobe-0.4.5.dist-info/top_level.txt,sha256=PoyYihnCBjRyjeIT19yBcE47JTe7i1OwRXvJ4d5EohM,10
15
- snowglobe-0.4.5.dist-info/RECORD,,
10
+ snowglobe-0.4.6.dist-info/licenses/LICENSE,sha256=S90V6iFU5ZeSg44JQYS1To3pa7ZEobrHc_t483qSKSI,1070
11
+ snowglobe-0.4.6.dist-info/METADATA,sha256=-aOUSBNTQkSJ8MhHfBm1kgbtDIzj5kyr_20nQImv_pk,4467
12
+ snowglobe-0.4.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
+ snowglobe-0.4.6.dist-info/entry_points.txt,sha256=mqx4mTwFPHttjctE2ceYTYWCCIG30Ji2C89aaCYgHcM,71
14
+ snowglobe-0.4.6.dist-info/top_level.txt,sha256=PoyYihnCBjRyjeIT19yBcE47JTe7i1OwRXvJ4d5EohM,10
15
+ snowglobe-0.4.6.dist-info/RECORD,,