deeprails 1.3.0__py3-none-any.whl → 1.4.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.

Potentially problematic release.


This version of deeprails might be problematic. Click here for more details.

deeprails/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "deeprails"
4
- __version__ = "1.3.0" # x-release-please-version
4
+ __version__ = "1.4.0" # x-release-please-version
@@ -199,8 +199,8 @@ class DefendResource(SyncAPIResource):
199
199
  model_input: defend_submit_event_params.ModelInput,
200
200
  model_output: str,
201
201
  model_used: str,
202
- nametag: str,
203
202
  run_mode: Literal["precision_plus", "precision", "smart", "economy"],
203
+ nametag: str | Omit = omit,
204
204
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
205
205
  # The extra values given here take precedence over values defined on the client or passed to this method.
206
206
  extra_headers: Headers | None = None,
@@ -221,13 +221,13 @@ class DefendResource(SyncAPIResource):
221
221
 
222
222
  model_used: Model ID used to generate the output, like `gpt-4o` or `o3`.
223
223
 
224
- nametag: An optional, user-defined tag for the event.
225
-
226
224
  run_mode: Run mode for the workflow event. The run mode allows the user to optimize for
227
225
  speed, accuracy, and cost by determining which models are used to evaluate the
228
226
  event. Available run modes include `precision_plus`, `precision`, `smart`, and
229
227
  `economy`. Defaults to `smart`.
230
228
 
229
+ nametag: An optional, user-defined tag for the event.
230
+
231
231
  extra_headers: Send extra headers
232
232
 
233
233
  extra_query: Add additional query parameters to the request
@@ -245,8 +245,8 @@ class DefendResource(SyncAPIResource):
245
245
  "model_input": model_input,
246
246
  "model_output": model_output,
247
247
  "model_used": model_used,
248
- "nametag": nametag,
249
248
  "run_mode": run_mode,
249
+ "nametag": nametag,
250
250
  },
251
251
  defend_submit_event_params.DefendSubmitEventParams,
252
252
  ),
@@ -477,8 +477,8 @@ class AsyncDefendResource(AsyncAPIResource):
477
477
  model_input: defend_submit_event_params.ModelInput,
478
478
  model_output: str,
479
479
  model_used: str,
480
- nametag: str,
481
480
  run_mode: Literal["precision_plus", "precision", "smart", "economy"],
481
+ nametag: str | Omit = omit,
482
482
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
483
483
  # The extra values given here take precedence over values defined on the client or passed to this method.
484
484
  extra_headers: Headers | None = None,
@@ -499,13 +499,13 @@ class AsyncDefendResource(AsyncAPIResource):
499
499
 
500
500
  model_used: Model ID used to generate the output, like `gpt-4o` or `o3`.
501
501
 
502
- nametag: An optional, user-defined tag for the event.
503
-
504
502
  run_mode: Run mode for the workflow event. The run mode allows the user to optimize for
505
503
  speed, accuracy, and cost by determining which models are used to evaluate the
506
504
  event. Available run modes include `precision_plus`, `precision`, `smart`, and
507
505
  `economy`. Defaults to `smart`.
508
506
 
507
+ nametag: An optional, user-defined tag for the event.
508
+
509
509
  extra_headers: Send extra headers
510
510
 
511
511
  extra_query: Add additional query parameters to the request
@@ -523,8 +523,8 @@ class AsyncDefendResource(AsyncAPIResource):
523
523
  "model_input": model_input,
524
524
  "model_output": model_output,
525
525
  "model_used": model_used,
526
- "nametag": nametag,
527
526
  "run_mode": run_mode,
527
+ "nametag": nametag,
528
528
  },
529
529
  defend_submit_event_params.DefendSubmitEventParams,
530
530
  ),
@@ -22,9 +22,6 @@ class DefendSubmitEventParams(TypedDict, total=False):
22
22
  model_used: Required[str]
23
23
  """Model ID used to generate the output, like `gpt-4o` or `o3`."""
24
24
 
25
- nametag: Required[str]
26
- """An optional, user-defined tag for the event."""
27
-
28
25
  run_mode: Required[Literal["precision_plus", "precision", "smart", "economy"]]
29
26
  """Run mode for the workflow event.
30
27
 
@@ -34,6 +31,9 @@ class DefendSubmitEventParams(TypedDict, total=False):
34
31
  `smart`.
35
32
  """
36
33
 
34
+ nametag: str
35
+ """An optional, user-defined tag for the event."""
36
+
37
37
 
38
38
  class ModelInputTyped(TypedDict, total=False):
39
39
  user_prompt: Required[str]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: deeprails
3
- Version: 1.3.0
3
+ Version: 1.4.0
4
4
  Summary: The official Python library for the deeprails API
5
5
  Project-URL: Homepage, https://docs.deeprails.com/
6
6
  Project-URL: Repository, https://github.com/deeprails/deeprails-sdk-python
@@ -176,7 +176,6 @@ workflow_event_response = client.defend.submit_event(
176
176
  model_input={"user_prompt": "user_prompt"},
177
177
  model_output="model_output",
178
178
  model_used="model_used",
179
- nametag="nametag",
180
179
  run_mode="precision_plus",
181
180
  )
182
181
  print(workflow_event_response.model_input)
@@ -11,7 +11,7 @@ deeprails/_resource.py,sha256=7RXX5KZr4j0TIE66vnduHp7p9Yf9X0FyDDECuvRHARg,1118
11
11
  deeprails/_response.py,sha256=yj0HJDU91WPpiczwi6CBOLAl_bqf4I_I96vWMAwx6Fg,28806
12
12
  deeprails/_streaming.py,sha256=hCp5bK9dyw2TyrVL69m-6qGC-QtGYwhXmFzITCWPgAs,10112
13
13
  deeprails/_types.py,sha256=XR3mad9NsGqZsjrd1VVJ657-4O4kwyw9Qzg4M3i6Vh0,7239
14
- deeprails/_version.py,sha256=UBtYgrLutf4L77e2ehcHfFtHcPj8ogYpr0Ivh-3zYyI,161
14
+ deeprails/_version.py,sha256=nMhAqvtoJeGjBNmKA2YxYmQHli9dlJv7NRk8ULgsvMo,161
15
15
  deeprails/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  deeprails/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
17
  deeprails/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
@@ -27,14 +27,14 @@ deeprails/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4
27
27
  deeprails/_utils/_utils.py,sha256=0dDqauUbVZEXV0NVl7Bwu904Wwo5eyFCZpQThhFNhyA,12253
28
28
  deeprails/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
29
29
  deeprails/resources/__init__.py,sha256=ha0jL9Et8fHzPdkTa7ecihYapOC4I6O-PHf2X9igprE,1491
30
- deeprails/resources/defend.py,sha256=bSF5DI4OSdV_MHBjY_s7hTiSuhffiloDlJnTf-w1VHk,27538
30
+ deeprails/resources/defend.py,sha256=_11GJ0jphqPP7RRPceLHfzyaLf-Mcmi29tinsA0F_cM,27566
31
31
  deeprails/resources/evaluate.py,sha256=_jAPyR1ULkz8yrU3nOtwJstdRIoCuwDiT1leAYPQCUY,12907
32
32
  deeprails/resources/monitor.py,sha256=hF-aLOS2whKsE-EVdNIj6hPY-YGKpo8xWoAwwCq4B34,22415
33
33
  deeprails/types/__init__.py,sha256=tLO-5DMMKt-F4qQYht3F-RFgLbthP-8a36853IhNoGI,1267
34
34
  deeprails/types/api_response.py,sha256=eHEQeL677tvm1RK0A_S03EAoprQbJzmHspiKrtjKRt4,1232
35
35
  deeprails/types/defend_create_workflow_params.py,sha256=EWYlSeoojWf8pp7VawZh8IbShHWsd0iZfdKq6qlh8OA,2076
36
36
  deeprails/types/defend_response.py,sha256=u508zff61fbo7DqotbJLEoYzYg2VUDWbFScx8Ec8EGA,1617
37
- deeprails/types/defend_submit_event_params.py,sha256=51Z7rviuE-wvU4otESmB6mIkZyRD5VGLARpMV6m4ITI,1386
37
+ deeprails/types/defend_submit_event_params.py,sha256=PAmzDkpzaOZjCxGy0c_UTZDvb57N7uhG7NZm5ICRcIg,1376
38
38
  deeprails/types/defend_update_workflow_params.py,sha256=QH2k7EDMLub3mW1lPV5SUoKDHW_T2arSo-RGHLterwo,373
39
39
  deeprails/types/evaluate_create_params.py,sha256=8P3jDuSgGRfGSdgq50Zq9J709ZltRZw29hI8R3MoS84,1828
40
40
  deeprails/types/evaluation.py,sha256=cLFQtazZyAEOVGkGqQ_VUmCFE8WMS2pBzUPLQ9MioOA,3787
@@ -45,7 +45,7 @@ deeprails/types/monitor_submit_event_params.py,sha256=q8Mq24McRr1WdXQ8L1YunKqLBb
45
45
  deeprails/types/monitor_submit_event_response.py,sha256=qlraxIJaclNSR_JOizMPj9gOiz-0x7lIChSX3DmFllM,867
46
46
  deeprails/types/monitor_update_params.py,sha256=gJyFFxT_u_iWABknuKnLpPl9r-VPfCcGtOAmh6sPwUw,550
47
47
  deeprails/types/workflow_event_response.py,sha256=mIzOCnYJg4TDSq_tG_0WfA0_Gmc9-0q-befyookfUFM,867
48
- deeprails-1.3.0.dist-info/METADATA,sha256=d5a673E4yKIF1v5_HExzyx_hCLb7S3e4MSFmqJUQVVQ,11863
49
- deeprails-1.3.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
50
- deeprails-1.3.0.dist-info/licenses/LICENSE,sha256=rFTxPcYE516UQLju2SCY1r2pSDDfodL0-ZvxF_fgueg,11339
51
- deeprails-1.3.0.dist-info/RECORD,,
48
+ deeprails-1.4.0.dist-info/METADATA,sha256=XK3jbhDy18tMUqJk5AJZyNQqB2rQ3kEwHTmdp8Jmkog,11840
49
+ deeprails-1.4.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
50
+ deeprails-1.4.0.dist-info/licenses/LICENSE,sha256=rFTxPcYE516UQLju2SCY1r2pSDDfodL0-ZvxF_fgueg,11339
51
+ deeprails-1.4.0.dist-info/RECORD,,