vellum-ai 0.0.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.
Files changed (61) hide show
  1. vellum/__init__.py +98 -0
  2. vellum/client.py +203 -0
  3. vellum/core/__init__.py +8 -0
  4. vellum/core/api_error.py +15 -0
  5. vellum/core/datetime_utils.py +28 -0
  6. vellum/core/jsonable_encoder.py +94 -0
  7. vellum/core/remove_none_from_headers.py +11 -0
  8. vellum/environment.py +17 -0
  9. vellum/py.typed +0 -0
  10. vellum/resources/__init__.py +5 -0
  11. vellum/resources/documents/__init__.py +2 -0
  12. vellum/resources/documents/client.py +135 -0
  13. vellum/resources/model_versions/__init__.py +2 -0
  14. vellum/resources/model_versions/client.py +53 -0
  15. vellum/types/__init__.py +91 -0
  16. vellum/types/block_type_enum.py +29 -0
  17. vellum/types/chat_role_enum.py +25 -0
  18. vellum/types/document.py +30 -0
  19. vellum/types/document_document_to_document_index.py +31 -0
  20. vellum/types/enriched_normalized_completion.py +39 -0
  21. vellum/types/finish_reason_enum.py +25 -0
  22. vellum/types/generate_error_response.py +24 -0
  23. vellum/types/generate_options_request.py +27 -0
  24. vellum/types/generate_request_request.py +31 -0
  25. vellum/types/generate_response.py +39 -0
  26. vellum/types/generate_result.py +35 -0
  27. vellum/types/generate_result_data.py +27 -0
  28. vellum/types/generate_result_error.py +24 -0
  29. vellum/types/indexing_state_enum.py +33 -0
  30. vellum/types/logprobs_enum.py +17 -0
  31. vellum/types/model_type_enum.py +17 -0
  32. vellum/types/model_version_build_config.py +34 -0
  33. vellum/types/model_version_exec_config_parameters.py +31 -0
  34. vellum/types/model_version_exec_config_read.py +35 -0
  35. vellum/types/model_version_read.py +43 -0
  36. vellum/types/model_version_read_status_enum.py +29 -0
  37. vellum/types/model_version_sandbox_snapshot.py +25 -0
  38. vellum/types/normalized_log_probs.py +26 -0
  39. vellum/types/normalized_token_log_probs.py +27 -0
  40. vellum/types/paginated_slim_document_list.py +28 -0
  41. vellum/types/processing_state_enum.py +29 -0
  42. vellum/types/prompt_template_block.py +27 -0
  43. vellum/types/prompt_template_block_data.py +26 -0
  44. vellum/types/prompt_template_block_properties.py +28 -0
  45. vellum/types/provider_enum.py +37 -0
  46. vellum/types/search_error_response.py +24 -0
  47. vellum/types/search_filters_request.py +26 -0
  48. vellum/types/search_request_options_request.py +36 -0
  49. vellum/types/search_response.py +27 -0
  50. vellum/types/search_result.py +30 -0
  51. vellum/types/search_result_merging_request.py +24 -0
  52. vellum/types/search_weights_request.py +25 -0
  53. vellum/types/slim_document.py +44 -0
  54. vellum/types/slim_document_status_enum.py +14 -0
  55. vellum/types/submit_completion_actual_request.py +46 -0
  56. vellum/types/submit_completion_actuals_error_response.py +24 -0
  57. vellum/types/upload_document_error_response.py +24 -0
  58. vellum/types/upload_document_response.py +24 -0
  59. vellum_ai-0.0.1.dist-info/METADATA +15 -0
  60. vellum_ai-0.0.1.dist-info/RECORD +61 -0
  61. vellum_ai-0.0.1.dist-info/WHEEL +4 -0
@@ -0,0 +1,46 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ import pydantic
7
+
8
+ from ..core.datetime_utils import serialize_datetime
9
+
10
+
11
+ class SubmitCompletionActualRequest(pydantic.BaseModel):
12
+ id: typing.Optional[str] = pydantic.Field(
13
+ description=(
14
+ "The Vellum-generated ID of a previously generated completion. Must provide either this or external_id.\n"
15
+ )
16
+ )
17
+ external_id: typing.Optional[str] = pydantic.Field(
18
+ description=(
19
+ "The external ID that was originally provided when generating the completion that you'd now like to submit actuals for. Must provide either this or id.\n"
20
+ )
21
+ )
22
+ text: typing.Optional[str] = pydantic.Field(
23
+ description=("Text representing what the completion _should_ have been.\n")
24
+ )
25
+ quality: typing.Optional[float] = pydantic.Field(
26
+ description=(
27
+ "A number between 0 and 1 representing the quality of the completion. 0 is the worst, 1 is the best.\n"
28
+ )
29
+ )
30
+ timestamp: typing.Optional[str] = pydantic.Field(
31
+ description=(
32
+ "Optionally provide the timestamp representing when this feedback was collected. Used for reporting purposes.\n"
33
+ )
34
+ )
35
+
36
+ def json(self, **kwargs: typing.Any) -> str:
37
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
38
+ return super().json(**kwargs_with_defaults)
39
+
40
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
41
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
42
+ return super().dict(**kwargs_with_defaults)
43
+
44
+ class Config:
45
+ frozen = True
46
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -0,0 +1,24 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ import pydantic
7
+
8
+ from ..core.datetime_utils import serialize_datetime
9
+
10
+
11
+ class SubmitCompletionActualsErrorResponse(pydantic.BaseModel):
12
+ detail: str
13
+
14
+ def json(self, **kwargs: typing.Any) -> str:
15
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
16
+ return super().json(**kwargs_with_defaults)
17
+
18
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
19
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
20
+ return super().dict(**kwargs_with_defaults)
21
+
22
+ class Config:
23
+ frozen = True
24
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -0,0 +1,24 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ import pydantic
7
+
8
+ from ..core.datetime_utils import serialize_datetime
9
+
10
+
11
+ class UploadDocumentErrorResponse(pydantic.BaseModel):
12
+ detail: str
13
+
14
+ def json(self, **kwargs: typing.Any) -> str:
15
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
16
+ return super().json(**kwargs_with_defaults)
17
+
18
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
19
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
20
+ return super().dict(**kwargs_with_defaults)
21
+
22
+ class Config:
23
+ frozen = True
24
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -0,0 +1,24 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ import pydantic
7
+
8
+ from ..core.datetime_utils import serialize_datetime
9
+
10
+
11
+ class UploadDocumentResponse(pydantic.BaseModel):
12
+ document_id: str = pydantic.Field(description=("The ID of the newly created document.\n"))
13
+
14
+ def json(self, **kwargs: typing.Any) -> str:
15
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
16
+ return super().json(**kwargs_with_defaults)
17
+
18
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
19
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
20
+ return super().dict(**kwargs_with_defaults)
21
+
22
+ class Config:
23
+ frozen = True
24
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.1
2
+ Name: vellum-ai
3
+ Version: 0.0.1
4
+ Summary:
5
+ Requires-Python: >=3.7,<4.0
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Programming Language :: Python :: 3.7
8
+ Classifier: Programming Language :: Python :: 3.8
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Requires-Dist: backports-cached_property (==1.0.2)
13
+ Requires-Dist: httpx (==0.23.3)
14
+ Requires-Dist: pydantic (>=1.9.2,<2.0.0)
15
+ Requires-Dist: types-backports (==0.1.3)
@@ -0,0 +1,61 @@
1
+ vellum/__init__.py,sha256=RvdrlGAPisQhLMZUnWqWVlETX0PvtgAlCD_GOqYOKqg,2633
2
+ vellum/client.py,sha256=w-4MUhGGtA-HjzYCToLD7rIxxnrStNiQqGgg2xQ7vhk,8624
3
+ vellum/core/__init__.py,sha256=qQP1ec3_wC4q9KA3hqDEqyllC-z5Bza2NPQbADBq5f8,348
4
+ vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
5
+ vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
6
+ vellum/core/jsonable_encoder.py,sha256=AeNrmvw0nPYAgY-pTRFvI6LOVZ6qbPTd0lryiTPpLDU,3507
7
+ vellum/core/remove_none_from_headers.py,sha256=paKMgUVWJW133a_5y5lV00bhOuZOgZqWrON_oGNuzCA,385
8
+ vellum/environment.py,sha256=bcAFjoE9XXd7tiysYS90Os669IJmUMZS2JZ_ZQn0Dpg,498
9
+ vellum/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ vellum/resources/__init__.py,sha256=KPILPXuXnfsEL1nez9bsXIZ6gfuSe6DalXx85PZfRfs,148
11
+ vellum/resources/documents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
12
+ vellum/resources/documents/client.py,sha256=EXbbUjN2jaWRGW4J2IdmjH-5BNlkq-SwtAf-3lLk6C0,5513
13
+ vellum/resources/model_versions/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
14
+ vellum/resources/model_versions/client.py,sha256=Bpwu78K0Er02ETVvw3XjrLt6BesjYxEm5kI-n_--qfE,2226
15
+ vellum/types/__init__.py,sha256=nYWL-wKnwOYxsxYCZQcMTSuF69oNZLfdIVmuoeVOcMA,3825
16
+ vellum/types/block_type_enum.py,sha256=Jr0YgxT9tOxRGojxGsCusFUO6oWeXz_Dg-JAc1asO5I,830
17
+ vellum/types/chat_role_enum.py,sha256=yGbamOvxhscT0mmUT-xAN0Styn8YK2vnSrcbjtcCgfc,633
18
+ vellum/types/document.py,sha256=mZ5myXGaS_vZue-2tQ-dfhUY3UAPmfjm0lgunYSo3Fg,1117
19
+ vellum/types/document_document_to_document_index.py,sha256=suxuz5vKNN4AXrLphvAtLHUtaxLRUjEmr3Q-OhE0Jj4,1268
20
+ vellum/types/enriched_normalized_completion.py,sha256=Niy-5oP7WjiyI0LNqe-WbD2GU2pTJx887eKb1x2NVDY,1714
21
+ vellum/types/finish_reason_enum.py,sha256=4uKkrYTc7VdvwGHaEztsqT13udDmK4pOOReFNt9WMYg,639
22
+ vellum/types/generate_error_response.py,sha256=u5zOFiVS8zqwb1s9OZVUmHj6_y_niGmOa_FJrNWI4ew,831
23
+ vellum/types/generate_options_request.py,sha256=R5BIcrisI07z4LYhgC42eXDvNcfeGOYQQ0DVVuWS150,929
24
+ vellum/types/generate_request_request.py,sha256=ZHWpm68Q3RcWR0maimrSDGbkEN6BqUyljxkCZtVUZnU,1193
25
+ vellum/types/generate_response.py,sha256=oT2DslzpO7DBmEA7vY0KpjEViCeJjqlvpxrLJUmwDIA,1246
26
+ vellum/types/generate_result.py,sha256=9KF1AmLWki2qBeuvG2k5sq_ePrnPVTI0LoAfmLwkgVg,1326
27
+ vellum/types/generate_result_data.py,sha256=XS4ZWLu2c8hTCS3tcdl78mX67Yn1Wdq_Extlo9WLK4s,992
28
+ vellum/types/generate_result_error.py,sha256=BG1pSzGGVZYFyjVt25DJaddf-9wDJzeCERSiqinTr3w,840
29
+ vellum/types/indexing_state_enum.py,sha256=dLRQkqokoCPFbyh_v8bXpqDryi9pM12gX-3PHs-LyK4,1012
30
+ vellum/types/logprobs_enum.py,sha256=o4L-17p7RqbKwze98INX3IK5nHIqLYcb_WWmDShONAA,435
31
+ vellum/types/model_type_enum.py,sha256=pgLHLHMx-cgr711MXj7vLCeTLLm51oXQrXwDa4R8jeI,483
32
+ vellum/types/model_version_build_config.py,sha256=2jE9B6Qd-jW5xIXHS5y03bFMQhGTu44k0qkh1MSOcxI,1241
33
+ vellum/types/model_version_exec_config_parameters.py,sha256=dve1F_xCvhvM9wjd8Qtc_wveu_AOWzY8uiVjEzICl34,1004
34
+ vellum/types/model_version_exec_config_read.py,sha256=H1VFTbr4vXNRNO3Szah4Es1yyFR3QHR6cjEuRUrWmp0,1421
35
+ vellum/types/model_version_read.py,sha256=eNfwy0fbwVpUsMrMjOt4pGX48UrbSv7BjQUDgcqbj9w,2056
36
+ vellum/types/model_version_read_status_enum.py,sha256=NUnVvCV2zIIK8u0KrFYjFUhjQw4tznxEm-mvZxJwtS4,895
37
+ vellum/types/model_version_sandbox_snapshot.py,sha256=I3vy1S-EhwfhxZ6e6ThM1ZsRYj504YAOWZ7se3oldgI,934
38
+ vellum/types/normalized_log_probs.py,sha256=cIUBNaK7CCK6ikRmzxG-uzCzEwk6KJWhvbInYh7douQ,873
39
+ vellum/types/normalized_token_log_probs.py,sha256=QkDb8HlTmhP7qnlIpU3NVYGp4QzTHgZpIKdUvHtg8L8,840
40
+ vellum/types/paginated_slim_document_list.py,sha256=YfSKrQLehmWOBHL8gMLzXsc7hdvfau9MWhRXl9jfNwA,939
41
+ vellum/types/processing_state_enum.py,sha256=PEfC315g5K2bfTHnKmtYC5zZG7oXTPog0llFTTyJfuQ,835
42
+ vellum/types/prompt_template_block.py,sha256=dwpGP5ym6hJ4anwt8AdHUScc4biNdmWNIKlgWxzuKa8,934
43
+ vellum/types/prompt_template_block_data.py,sha256=ah0PBJch96eciYomf_DRY-o9rpQ5_hrnhGdpTuk5ap0,860
44
+ vellum/types/prompt_template_block_properties.py,sha256=lfM5YgbbApARlcny1-uUl05o63gMxQF05AIg9mIy9B8,977
45
+ vellum/types/provider_enum.py,sha256=QlArBmbWwOsRs1oCOnNHRG5dfgTG2n7Xz3CtKOiEAxc,1039
46
+ vellum/types/search_error_response.py,sha256=RosaqTUb9MdCk-DbkRqAWBC8n8IW7izOAM15Hu5thWw,829
47
+ vellum/types/search_filters_request.py,sha256=z5_gPQR-geMpkb_AaA1rDhjcwHDUtIosR2lXHPPV1I4,881
48
+ vellum/types/search_request_options_request.py,sha256=SyJH_ffuSEAGFpEflfz7570Ms35uY1SZQCQ-q_3l9xY,1486
49
+ vellum/types/search_response.py,sha256=-DCVgiAU6t7rtlPh9Wmw5mHmYzOJeI0IY9sNS-aNI1E,952
50
+ vellum/types/search_result.py,sha256=9NwesuGMlqkAGiyoAjnolHcIhQxMNrzuSHQL6jQv2xo,1157
51
+ vellum/types/search_result_merging_request.py,sha256=i_2C0jPdodqDkqAWUq1g_XW_SVP0EmEFJGK2NQNsdug,834
52
+ vellum/types/search_weights_request.py,sha256=tEthjhlOFlxieZAtIEKew9-ocdi5MqpBGr2_McyaUOc,961
53
+ vellum/types/slim_document.py,sha256=vdYhtc83BuEbCOw2EC7ZHRFxmz2KO739AO6R3q8IbtU,2009
54
+ vellum/types/slim_document_status_enum.py,sha256=Owtfg1hfAGkjpzX_x1kFBrPYzNTws3QXv6S-VHfmssg,351
55
+ vellum/types/submit_completion_actual_request.py,sha256=0Nz3wlrFcCKI63Z9H6KDV-bPAm79rYh9buatt1cnwe8,1778
56
+ vellum/types/submit_completion_actuals_error_response.py,sha256=8ZNcGD7l4crYQoKn4LTdMKbRVGHs3v-M3ER9lTkKzmM,772
57
+ vellum/types/upload_document_error_response.py,sha256=VNSsUbd0TSCKnlBohoKv1h3AJDJeicH-q3kjkXpxKG4,763
58
+ vellum/types/upload_document_response.py,sha256=aUy76XJX6LpcXywOfP2ysW0YbGLkXJgLzMoDV2jW02E,837
59
+ vellum_ai-0.0.1.dist-info/METADATA,sha256=ysDB--0HeKy59Czhl9rocWGBngkCq-O5JLBUe0UXhDs,556
60
+ vellum_ai-0.0.1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
61
+ vellum_ai-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 1.5.2
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any