llama-cloud 0.1.21__py3-none-any.whl → 0.1.22__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 llama-cloud might be problematic. Click here for more details.
- llama_cloud/__init__.py +16 -12
- llama_cloud/client.py +3 -3
- llama_cloud/resources/__init__.py +2 -2
- llama_cloud/resources/admin/client.py +78 -0
- llama_cloud/resources/jobs/client.py +10 -2
- llama_cloud/resources/llama_extract/client.py +50 -6
- llama_cloud/resources/organizations/client.py +12 -2
- llama_cloud/resources/parsing/client.py +30 -0
- llama_cloud/resources/pipelines/client.py +8 -0
- llama_cloud/resources/retrievers/client.py +14 -0
- llama_cloud/types/__init__.py +14 -10
- llama_cloud/types/cloud_s_3_data_source.py +1 -0
- llama_cloud/types/{data_sink_definition.py → document_block.py} +6 -15
- llama_cloud/types/document_chunk_mode.py +17 -0
- llama_cloud/types/extract_config.py +4 -0
- llama_cloud/types/extract_mode.py +4 -0
- llama_cloud/types/extract_models.py +33 -0
- llama_cloud/types/llama_index_core_base_llms_types_chat_message_blocks_item.py +11 -0
- llama_cloud/types/{data_source_definition.py → llm_config_result.py} +6 -15
- llama_cloud/types/llm_config_result_llm_type.py +33 -0
- llama_cloud/types/llm_configs_response.py +33 -0
- llama_cloud/types/pipeline_create.py +1 -3
- llama_cloud/types/struct_parse_conf.py +2 -1
- llama_cloud/types/supported_llm_model_names.py +4 -4
- llama_cloud/types/user_organization_role.py +1 -0
- {llama_cloud-0.1.21.dist-info → llama_cloud-0.1.22.dist-info}/METADATA +1 -1
- {llama_cloud-0.1.21.dist-info → llama_cloud-0.1.22.dist-info}/RECORD +30 -29
- {llama_cloud-0.1.21.dist-info → llama_cloud-0.1.22.dist-info}/WHEEL +1 -1
- llama_cloud/resources/component_definitions/client.py +0 -189
- llama_cloud/types/configurable_transformation_definition.py +0 -48
- llama_cloud/types/configurable_transformation_names.py +0 -41
- llama_cloud/types/transformation_category_names.py +0 -17
- /llama_cloud/resources/{component_definitions → admin}/__init__.py +0 -0
- {llama_cloud-0.1.21.dist-info → llama_cloud-0.1.22.dist-info}/LICENSE +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
llama_cloud/__init__.py,sha256=
|
|
2
|
-
llama_cloud/client.py,sha256=
|
|
1
|
+
llama_cloud/__init__.py,sha256=dwxeZ2TI6QaKfB791DPGvzcGkg2VBV3hAqAhs_4aMcY,24113
|
|
2
|
+
llama_cloud/client.py,sha256=JGV9tNaEgSsDy8vYv7RMPXTmXwbfc9gPvuEfQHYqrq4,5651
|
|
3
3
|
llama_cloud/core/__init__.py,sha256=QJS3CJ2TYP2E1Tge0CS6Z7r8LTNzJHQVX1hD3558eP0,519
|
|
4
4
|
llama_cloud/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
5
5
|
llama_cloud/core/client_wrapper.py,sha256=xmj0jCdQ0ySzbSqHUWOkpRRy069y74I_HuXkWltcsVM,1507
|
|
@@ -9,13 +9,13 @@ llama_cloud/core/remove_none_from_dict.py,sha256=8m91FC3YuVem0Gm9_sXhJ2tGvP33owJ
|
|
|
9
9
|
llama_cloud/environment.py,sha256=feTjOebeFZMrBdnHat4RE5aHlpt-sJm4NhK4ntV1htI,167
|
|
10
10
|
llama_cloud/errors/__init__.py,sha256=pbbVUFtB9LCocA1RMWMMF_RKjsy5YkOKX5BAuE49w6g,170
|
|
11
11
|
llama_cloud/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBRdk4so_gCHjYT5PyZe6sM,313
|
|
12
|
-
llama_cloud/resources/__init__.py,sha256=
|
|
12
|
+
llama_cloud/resources/__init__.py,sha256=lggYCM9fT5FLxGeehXyAkl6WA_7VxyYwLKdWOOSAgQ4,4035
|
|
13
|
+
llama_cloud/resources/admin/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
14
|
+
llama_cloud/resources/admin/client.py,sha256=tIfM5KMJXRL0AUAm_s_fx5OzgqMUIxksjhCGuviQXQk,3080
|
|
13
15
|
llama_cloud/resources/beta/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
14
16
|
llama_cloud/resources/beta/client.py,sha256=eRB3mGmNxbhVGTtUpp-j-2APkHUoCbUckIz9coYjCsM,14666
|
|
15
17
|
llama_cloud/resources/chat_apps/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
16
18
|
llama_cloud/resources/chat_apps/client.py,sha256=orSI8rpQbUwVEToolEeiEi5Qe--suXFvfu6D9JDii5I,23595
|
|
17
|
-
llama_cloud/resources/component_definitions/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
18
|
-
llama_cloud/resources/component_definitions/client.py,sha256=YYfoXNa1qim2OdD5y4N5mvoBZKtrCuXS560mtqH_-1c,7569
|
|
19
19
|
llama_cloud/resources/data_sinks/__init__.py,sha256=ZHUjn3HbKhq_7QS1q74r2m5RGKF5lxcvF2P6pGvpcis,147
|
|
20
20
|
llama_cloud/resources/data_sinks/client.py,sha256=GpD6FhbGqkg2oUToyMG6J8hPxG_iG7W5ZJRo0qg3yzk,20639
|
|
21
21
|
llama_cloud/resources/data_sinks/types/__init__.py,sha256=M1aTcufJwiEZo9B0KmYj9PfkSd6I1ooFt9tpIRGwgg8,168
|
|
@@ -38,9 +38,9 @@ llama_cloud/resources/files/types/file_create_from_url_resource_info_value.py,sh
|
|
|
38
38
|
llama_cloud/resources/files/types/file_create_permission_info_value.py,sha256=KPCFuEaa8NiB85A5MfdXRAQ0poAUTl7Feg6BTfmdWas,209
|
|
39
39
|
llama_cloud/resources/files/types/file_create_resource_info_value.py,sha256=R7Y-CJf7fnbvIqE3xOI5XOrmPwLbVJLC7zpxMu8Zopk,201
|
|
40
40
|
llama_cloud/resources/jobs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
41
|
-
llama_cloud/resources/jobs/client.py,sha256=
|
|
41
|
+
llama_cloud/resources/jobs/client.py,sha256=tIrIVOZ6p60qTJ2dqhSrqHGGxLi0fzn9V7jJU9QS2Nw,6030
|
|
42
42
|
llama_cloud/resources/llama_extract/__init__.py,sha256=jRUugj6XARMpKZi3e2RkfTdcOSuE-Zy0IfScRLlyYMs,819
|
|
43
|
-
llama_cloud/resources/llama_extract/client.py,sha256=
|
|
43
|
+
llama_cloud/resources/llama_extract/client.py,sha256=oL5_3ugPde9Ch8QnwvRvFeTMMl0y_ST6i1hoSt2S5E4,63503
|
|
44
44
|
llama_cloud/resources/llama_extract/types/__init__.py,sha256=ZRBD-jg1qdXyiJKTxgH7zaadoDzuof1TYpjK4P5z4zA,1216
|
|
45
45
|
llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema.py,sha256=zB31hJQ8hKaIsPkfTWiX5hqsPVFMyyeWEDZ_Aq237jo,305
|
|
46
46
|
llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema_zero_value.py,sha256=xoyXH3f0Y5beMWBxmtXSz6QoB_df_-0QBsYdjBhZnGw,217
|
|
@@ -51,11 +51,11 @@ llama_cloud/resources/llama_extract/types/extract_job_create_batch_data_schema_o
|
|
|
51
51
|
llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema.py,sha256=uMqpKJdCmUNtryS2bkQTNA1AgDlWdtsBOP31iMt3zNA,346
|
|
52
52
|
llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema_zero_value.py,sha256=cUS7ez5r0Vx8T7SxwLYptZMmvpT5JoDVMyn54Q6VL-g,227
|
|
53
53
|
llama_cloud/resources/organizations/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
54
|
-
llama_cloud/resources/organizations/client.py,sha256=
|
|
54
|
+
llama_cloud/resources/organizations/client.py,sha256=56d5VcRg_3Lu_MMdfJCR8uoirBoxmj9vaQbHpwY2zWo,56243
|
|
55
55
|
llama_cloud/resources/parsing/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
56
|
-
llama_cloud/resources/parsing/client.py,sha256=
|
|
56
|
+
llama_cloud/resources/parsing/client.py,sha256=U5J2g78CWYgujfLXlLEIoqatFSPnaG1OYNanx1jm_GQ,78177
|
|
57
57
|
llama_cloud/resources/pipelines/__init__.py,sha256=Mx7p3jDZRLMltsfywSufam_4AnHvmAfsxtMHVI72e-8,1083
|
|
58
|
-
llama_cloud/resources/pipelines/client.py,sha256=
|
|
58
|
+
llama_cloud/resources/pipelines/client.py,sha256=pfHugOoBmmfawJIGw4tegLxCNQS5Pxki0aBvYn3dn0Q,129708
|
|
59
59
|
llama_cloud/resources/pipelines/types/__init__.py,sha256=jjaMc0V3K1HZLMYZ6WT4ydMtBCVy-oF5koqTCovbDws,1202
|
|
60
60
|
llama_cloud/resources/pipelines/types/pipeline_file_update_custom_metadata_value.py,sha256=trI48WLxPcAqV9207Q6-3cj1nl4EGlZpw7En56ZsPgg,217
|
|
61
61
|
llama_cloud/resources/pipelines/types/pipeline_update_embedding_config.py,sha256=c8FF64fDrBMX_2RX4uY3CjbNc0Ss_AUJ4Eqs-KeV4Wc,2874
|
|
@@ -67,8 +67,8 @@ llama_cloud/resources/reports/client.py,sha256=kHjtXVVc1Xi3T1GyBvSW5K4mTdr6xQwZA
|
|
|
67
67
|
llama_cloud/resources/reports/types/__init__.py,sha256=LfwDYrI4RcQu-o42iAe7HkcwHww2YU90lOonBPTmZIk,291
|
|
68
68
|
llama_cloud/resources/reports/types/update_report_plan_api_v_1_reports_report_id_plan_patch_request_action.py,sha256=Qh-MSeRvDBfNb5hoLELivv1pLtrYVf52WVoP7G8V34A,807
|
|
69
69
|
llama_cloud/resources/retrievers/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
70
|
-
llama_cloud/resources/retrievers/client.py,sha256=
|
|
71
|
-
llama_cloud/types/__init__.py,sha256=
|
|
70
|
+
llama_cloud/resources/retrievers/client.py,sha256=z2LhmA-cZVFzr9P6loeCZYnJbvSIk0QitFeVFp-IyZk,32126
|
|
71
|
+
llama_cloud/types/__init__.py,sha256=_aT6mWFd4wz3Bw63_HQoGr0PDdbpf0bDhDpMEypGSGU,28507
|
|
72
72
|
llama_cloud/types/advanced_mode_transform_config.py,sha256=4xCXye0_cPmVS1F8aNTx81sIaEPjQH9kiCCAIoqUzlI,1502
|
|
73
73
|
llama_cloud/types/advanced_mode_transform_config_chunking_config.py,sha256=wYbJnWLpeQDfhmDZz-wJfYzD1iGT5Jcxb9ga3mzUuvk,1983
|
|
74
74
|
llama_cloud/types/advanced_mode_transform_config_segmentation_config.py,sha256=anNGq0F5-IlbIW3kpC8OilzLJnUq5tdIcWHnRnmlYsg,1303
|
|
@@ -109,7 +109,7 @@ llama_cloud/types/cloud_one_drive_data_source.py,sha256=ryDLKD7FVvXGo5maj92CSe52
|
|
|
109
109
|
llama_cloud/types/cloud_pinecone_vector_store.py,sha256=d1jEezwE6ndNG-2izgoO_m9tG3N1ZFvmeCXI2r3miFc,1724
|
|
110
110
|
llama_cloud/types/cloud_postgres_vector_store.py,sha256=xWACT9JPqCfoBTGu68IVO9F52W2bTugFOoVQo49oi3M,1391
|
|
111
111
|
llama_cloud/types/cloud_qdrant_vector_store.py,sha256=F-gjNArzwLWmqgPcC-ZxRqSrhTFZbv5kqmIXmnLPB5o,1718
|
|
112
|
-
llama_cloud/types/cloud_s_3_data_source.py,sha256=
|
|
112
|
+
llama_cloud/types/cloud_s_3_data_source.py,sha256=tTT0us3oNatduTpuLPiOqBg-YPaIKX1HVujJwzlmmBA,1416
|
|
113
113
|
llama_cloud/types/cloud_sharepoint_data_source.py,sha256=iJtlgb4hsj8CP2IJ7TxdK1GOb3MdyKr7_jsOlY3kFiE,1609
|
|
114
114
|
llama_cloud/types/cloud_slack_data_source.py,sha256=tlsNj-hDj1gWmM0Q2A1BeyolfaPg_wfvSlJGTETknAo,1374
|
|
115
115
|
llama_cloud/types/cohere_embedding.py,sha256=wkv_fVCA1WEroGawzPFExwmiJ75gPfzeeemty7NBlsM,1579
|
|
@@ -120,23 +120,21 @@ llama_cloud/types/composite_retrieved_text_node.py,sha256=eTQ99cdZ2PASff5n4oVV1o
|
|
|
120
120
|
llama_cloud/types/composite_retrieved_text_node_with_score.py,sha256=o-HvmyjqODc68zYuobtj10_62FMBAKRLfRoTHGDdmxw,1148
|
|
121
121
|
llama_cloud/types/configurable_data_sink_names.py,sha256=0Yk9i8hcNXKCcSKpa5KwsCwy_EDeodqbny7qmF86_lM,1225
|
|
122
122
|
llama_cloud/types/configurable_data_source_names.py,sha256=mNW71sSgcVhU3kePAOUgRxeqK1Vo7F_J1xIzmYKPRq0,1971
|
|
123
|
-
llama_cloud/types/configurable_transformation_definition.py,sha256=LDOhI5IDxlLDWM_p_xwCFM7qq1y-aGA8UxN7dnplDlU,1886
|
|
124
|
-
llama_cloud/types/configurable_transformation_names.py,sha256=N_YhY8IuQxsqBteCibaQwEaY0zd6Ncb6jW69d9mjrdU,1898
|
|
125
123
|
llama_cloud/types/credit_type.py,sha256=nwSRKDWgHk_msdWitctqtyeZwj5EFd6VLto6NF2yCd4,971
|
|
126
124
|
llama_cloud/types/data_sink.py,sha256=PeexYHHoD8WkVp9WsFtfC-AIWszcgeJUprG1bwC8WsQ,1498
|
|
127
125
|
llama_cloud/types/data_sink_component.py,sha256=uvuxLY3MPDpv_bkT0y-tHSZVPRSHCkDBDHVff-036Dg,749
|
|
128
126
|
llama_cloud/types/data_sink_create.py,sha256=dAaFPCwZ5oX0Fbf7ij62dzSaYnrhj3EHmnLnYnw2KgI,1360
|
|
129
127
|
llama_cloud/types/data_sink_create_component.py,sha256=8QfNKSTJV_sQ0nJxlpfh0fBkMTSnQD1DTJR8ZMYaesI,755
|
|
130
|
-
llama_cloud/types/data_sink_definition.py,sha256=5ve_pq02s8szc34-wWobMe6BAPj_c7e9n9FFsfDqEQ0,1561
|
|
131
128
|
llama_cloud/types/data_source.py,sha256=4_lTRToLO4u9LYK66VygCPycrZuyct_aiovlxG5H2sE,1768
|
|
132
129
|
llama_cloud/types/data_source_component.py,sha256=yfXHoeHaqUMum7fIs3tZB0pOFMhDbAq7oCJtnob0gWY,1077
|
|
133
130
|
llama_cloud/types/data_source_create.py,sha256=s0bAX_GUwiRdrL-PXS9ROrvq3xpmqbqzdMa6thqL2P4,1581
|
|
134
131
|
llama_cloud/types/data_source_create_component.py,sha256=-P4FGv9Xg951n-77_bb-2_CF-33ZXcUkw52LPQNunBY,1083
|
|
135
132
|
llama_cloud/types/data_source_create_custom_metadata_value.py,sha256=ejSsQNbszYQaUWFh9r9kQpHf88qbhuRv1SI9J_MOSC0,215
|
|
136
133
|
llama_cloud/types/data_source_custom_metadata_value.py,sha256=pTZn5yjZYmuOhsLABFJOKZblZUkRqo1CqLAuP5tKji4,209
|
|
137
|
-
llama_cloud/types/data_source_definition.py,sha256=HlSlTxzYcQJOSo_2OSroAE8vAr-otDvTNBSEkA54vL8,1575
|
|
138
134
|
llama_cloud/types/data_source_update_dispatcher_config.py,sha256=Sh6HhXfEV2Z6PYhkYQucs2MxyKVpL3UPV-I4cbf--bA,1242
|
|
139
135
|
llama_cloud/types/delete_params.py,sha256=1snPrd3WO9C1bKf0WdMslE2HQMF0yYLI3U7N53cmurM,1285
|
|
136
|
+
llama_cloud/types/document_block.py,sha256=OYKd5M3LgJ0Cz0K0YNuVRoHz9HcUdVuf2Vcqku8fck4,1116
|
|
137
|
+
llama_cloud/types/document_chunk_mode.py,sha256=6qH43Q0lIob2DMU95GsmSEOs4kQxOIyUFXj_kRDnyV4,470
|
|
140
138
|
llama_cloud/types/document_ingestion_job_params.py,sha256=33xTAl-K-m1j_Ufkj7w2GaYg9EUH5Hwsjn869X-fWMk,1524
|
|
141
139
|
llama_cloud/types/edit_suggestion.py,sha256=uzXSZYJiU3FaNN-TvEd3EXdaXvjQIe7Mf4kntKkyB2I,1202
|
|
142
140
|
llama_cloud/types/edit_suggestion_blocks_item.py,sha256=ojTk4lh0IHmrWP5wLPTIlsc2jAUDoHvdjJ5sm2uMut0,236
|
|
@@ -148,12 +146,13 @@ llama_cloud/types/embedding_model_config_update_embedding_config.py,sha256=mrXFx
|
|
|
148
146
|
llama_cloud/types/eval_execution_params.py,sha256=ntVaJh5SMZMPL4QLUiihVjUlg2SKbrezvbMKGlrF66Q,1369
|
|
149
147
|
llama_cloud/types/extract_agent.py,sha256=T98IOueut4M52Qm7hqcUOcWFFDhZ-ye0OFdXgfFGtS4,1763
|
|
150
148
|
llama_cloud/types/extract_agent_data_schema_value.py,sha256=UaDQ2KjajLDccW7F4NKdfpefeTJrr1hl0c95WRETYkM,201
|
|
151
|
-
llama_cloud/types/extract_config.py,sha256=
|
|
149
|
+
llama_cloud/types/extract_config.py,sha256=tCVzcctlEaO4tx0ikAv0OyfiDDhiiynR2FYILgOCCe4,1936
|
|
152
150
|
llama_cloud/types/extract_job.py,sha256=Yx4fDdCdylAji2LPTwqflVpz1o9slpj9tTLS93-1tzU,1431
|
|
153
151
|
llama_cloud/types/extract_job_create.py,sha256=UK1mBIKyflo7e6m1MxMN95pLscj67jH_yvs8EvmBXqU,1545
|
|
154
152
|
llama_cloud/types/extract_job_create_data_schema_override.py,sha256=vuiJ2lGJjbXEnvFKzVnKyvgwhMXPg1Pb5GZne2DrB60,330
|
|
155
153
|
llama_cloud/types/extract_job_create_data_schema_override_zero_value.py,sha256=HHEYxOSQXXyBYOiUQg_qwfQtXFj-OtThMwbUDBIgZU0,223
|
|
156
|
-
llama_cloud/types/extract_mode.py,sha256=
|
|
154
|
+
llama_cloud/types/extract_mode.py,sha256=DwTMzDq3HHJop_fxQelHEE_k8UcdDz-W_v_Oj2WWXLk,931
|
|
155
|
+
llama_cloud/types/extract_models.py,sha256=qXsSXuPFiVBNsh1-4oTYAjJ_36AQJ7sOJyJ-5aNlYEE,977
|
|
157
156
|
llama_cloud/types/extract_resultset.py,sha256=Alje0YQJUiA_aKi0hQs7TAnhDmZuQ_yL9b6HCNYBFQg,1627
|
|
158
157
|
llama_cloud/types/extract_resultset_data.py,sha256=v9Ae4SxLsvYPE9crko4N16lBjsxuZpz1yrUOhnaM_VY,427
|
|
159
158
|
llama_cloud/types/extract_resultset_data_item_value.py,sha256=JwqgDIGW0irr8QWaSTIrl24FhGxTUDOXIbxoSdIjuxs,209
|
|
@@ -196,9 +195,12 @@ llama_cloud/types/l_lama_parse_transform_config.py,sha256=YQRJZvKh1Ee2FUyW_N0nqY
|
|
|
196
195
|
llama_cloud/types/legacy_parse_job_config.py,sha256=kVBdiSLraI9rKQOPf0Ci9RtbNLkco0byBJC42uE_PCI,11698
|
|
197
196
|
llama_cloud/types/llama_extract_settings.py,sha256=IQFxtKa4GtHKc9w-fLwsH0LSKDWzR9_vZ_cTFJ9cGBI,2288
|
|
198
197
|
llama_cloud/types/llama_index_core_base_llms_types_chat_message.py,sha256=NelHo-T-ebVMhRKsqE_xV8AJW4c7o6lS0uEQnPsmTwg,1365
|
|
199
|
-
llama_cloud/types/llama_index_core_base_llms_types_chat_message_blocks_item.py,sha256
|
|
198
|
+
llama_cloud/types/llama_index_core_base_llms_types_chat_message_blocks_item.py,sha256=-aL8fh-w2Xf4uQs_LHzb3q6LL_onLAcVzCR5yMI4qJw,1571
|
|
200
199
|
llama_cloud/types/llama_parse_parameters.py,sha256=DNhVZm3YQ_3xZiz7WUrwH7E6jqW2fZ7YGFsdfsYalUk,5773
|
|
201
200
|
llama_cloud/types/llama_parse_supported_file_extensions.py,sha256=B_0N3f8Aq59W9FbsH50mGBUiyWTIXQjHFl739uAyaQw,11207
|
|
201
|
+
llama_cloud/types/llm_config_result.py,sha256=rruY77YClxo6X7gUFyknmMHoBFI-sWYMsdlSUvMn83I,1127
|
|
202
|
+
llama_cloud/types/llm_config_result_llm_type.py,sha256=yrijlC2f1egNDx-tCvDVp68pFmGaJZvVE_D1vS2wA34,1032
|
|
203
|
+
llama_cloud/types/llm_configs_response.py,sha256=TQ9RLkOzdY-8k0l1NNUZNUl83dmKks0gOQvhj-4hRZs,1073
|
|
202
204
|
llama_cloud/types/llm_model_data.py,sha256=6rrycqGwlK3LZ2S-WtgmeomithdLhDCgwBBZQ5KLaso,1300
|
|
203
205
|
llama_cloud/types/llm_parameters.py,sha256=RTKYt09lm9a1MlnBfYuTP2x_Ww4byUNNc1TqIel5O1Y,1377
|
|
204
206
|
llama_cloud/types/load_files_job_config.py,sha256=R5sFgFmV__0mqLUuD7dkFoBJHG2ZLw5px9zRapvYcpE,1069
|
|
@@ -244,7 +246,7 @@ llama_cloud/types/pg_vector_hnsw_settings.py,sha256=-RE59xUgHwNEyAwRYmOQ8SHeAqkS
|
|
|
244
246
|
llama_cloud/types/pg_vector_vector_type.py,sha256=VwOohN566zw42UMlnuKTJopYJypsSnzWjCFmKRoU-bo,952
|
|
245
247
|
llama_cloud/types/pipeline.py,sha256=4m1NIqTtG2DItvW69SWW3NjZPBL848VEW69Qbt2B7uo,2728
|
|
246
248
|
llama_cloud/types/pipeline_configuration_hashes.py,sha256=7_MbOcPWV6iyMflJeXoo9vLzD04E5WM7YxYp4ls0jQs,1169
|
|
247
|
-
llama_cloud/types/pipeline_create.py,sha256=
|
|
249
|
+
llama_cloud/types/pipeline_create.py,sha256=PKchM5cxkidXVFv2qON0uVh5lv8aqsy5OrZvT5UzqTU,2496
|
|
248
250
|
llama_cloud/types/pipeline_create_embedding_config.py,sha256=PQqmVBFUyZXYKKBmVQF2zPsGp1L6rje6g3RtXEcdfc8,2811
|
|
249
251
|
llama_cloud/types/pipeline_create_transform_config.py,sha256=HP6tzLsw_pomK1Ye2PYCS_XDZK_TMgg22mz17_zYKFg,303
|
|
250
252
|
llama_cloud/types/pipeline_data_source.py,sha256=g8coq6ohp09TtqzvB3_A8Nzery3J5knIfxGWzUtozmg,2381
|
|
@@ -311,15 +313,14 @@ llama_cloud/types/semantic_chunking_config.py,sha256=dFDniTVWpRc7UcmVFvljUoyL5Zt
|
|
|
311
313
|
llama_cloud/types/sentence_chunking_config.py,sha256=NA9xidK5ICxJPkEMQZWNcsV0Hw9Co_bzRWeYe4uSh9I,1116
|
|
312
314
|
llama_cloud/types/status_enum.py,sha256=cUBIlys89E8PUzmVqqawu7qTDF0aRqBwiijOmRDPvx0,1018
|
|
313
315
|
llama_cloud/types/struct_mode.py,sha256=ROicwjXfFmgVU8_xSVxJlnFUzRNKG5VIEF1wYg9uOPU,1020
|
|
314
|
-
llama_cloud/types/struct_parse_conf.py,sha256=
|
|
316
|
+
llama_cloud/types/struct_parse_conf.py,sha256=WlL8y0IBvdzGsDtFUlEZLzoUODwmOWAJi0viS9unL18,2297
|
|
315
317
|
llama_cloud/types/supported_llm_model.py,sha256=hubSopFICVNEegbJbtbpK6zRHwFPwUNtrw_NAw_3bfg,1380
|
|
316
|
-
llama_cloud/types/supported_llm_model_names.py,sha256=
|
|
318
|
+
llama_cloud/types/supported_llm_model_names.py,sha256=NplDWGpsGoikd3By5sYhqL5IRFWBUnkz-8A3yf5pPcE,2180
|
|
317
319
|
llama_cloud/types/text_block.py,sha256=X154sQkSyposXuRcEWNp_tWcDQ-AI6q_-MfJUN5exP8,958
|
|
318
320
|
llama_cloud/types/text_node.py,sha256=Tq3QmuKC5cIHvC9wAtvhsXl1g2sACs2yJwQ0Uko8GSU,2846
|
|
319
321
|
llama_cloud/types/text_node_relationships_value.py,sha256=qmXURTk1Xg7ZDzRSSV1uDEel0AXRLohND5ioezibHY0,217
|
|
320
322
|
llama_cloud/types/text_node_with_score.py,sha256=k-KYWO_mgJBvO6xUfOD5W6v1Ku9E586_HsvDoQbLfuQ,1229
|
|
321
323
|
llama_cloud/types/token_chunking_config.py,sha256=XNvnTsNd--YOMQ_Ad8hoqhYgQftqkBHKVn6i7nJnMqs,1067
|
|
322
|
-
llama_cloud/types/transformation_category_names.py,sha256=Wb7NBB0f-tEtfEZQis-iKy71SUKmmHFcXf6XLn6g0XU,545
|
|
323
324
|
llama_cloud/types/usage_and_plan.py,sha256=bclc7TE7CTBu7RLiTHG426dziyj--I8m5NVu86I2AV4,1065
|
|
324
325
|
llama_cloud/types/usage_metric_response.py,sha256=ukvtNZLeLacv-5F0-GQ5wTBZOPUPEjAeurgYPc4s7nA,1047
|
|
325
326
|
llama_cloud/types/usage_response.py,sha256=o0u15PGNQmOOie4kJFfc4Rw0jKGLckBJdH0NCAfT8_k,1499
|
|
@@ -328,13 +329,13 @@ llama_cloud/types/user_job_record.py,sha256=mJHdokJsemXJOwM2l7fsW3X0SlwSNcy7yHbc
|
|
|
328
329
|
llama_cloud/types/user_organization.py,sha256=Ydel7grMnKiPMWJmSWhCFCm3v_n286Gk36ANtDLNLd4,1770
|
|
329
330
|
llama_cloud/types/user_organization_create.py,sha256=Zj57s9xuYVnLW2p8i4j2QORL-G1y7Ab3avXE1baERQY,1189
|
|
330
331
|
llama_cloud/types/user_organization_delete.py,sha256=IDYLKfFAXfcJfkEpA0ARbaA0JDcEBe7fTLv833DZXHs,1104
|
|
331
|
-
llama_cloud/types/user_organization_role.py,sha256=
|
|
332
|
+
llama_cloud/types/user_organization_role.py,sha256=vTM5pYG9NJpTQACn8vzSIt01Ul6jEHCVmyR3vV0isPg,1512
|
|
332
333
|
llama_cloud/types/validation_error.py,sha256=yZDLtjUHDY5w82Ra6CW0H9sLAr18R0RY1UNgJKR72DQ,1084
|
|
333
334
|
llama_cloud/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
|
334
335
|
llama_cloud/types/vertex_ai_embedding_config.py,sha256=DvQk2xMJFmo54MEXTzoM4KSADyhGm_ygmFyx6wIcQdw,1159
|
|
335
336
|
llama_cloud/types/vertex_embedding_mode.py,sha256=yY23FjuWU_DkXjBb3JoKV4SCMqel2BaIMltDqGnIowU,1217
|
|
336
337
|
llama_cloud/types/vertex_text_embedding.py,sha256=-C4fNCYfFl36ATdBMGFVPpiHIKxjk0KB1ERA2Ec20aU,1932
|
|
337
|
-
llama_cloud-0.1.
|
|
338
|
-
llama_cloud-0.1.
|
|
339
|
-
llama_cloud-0.1.
|
|
340
|
-
llama_cloud-0.1.
|
|
338
|
+
llama_cloud-0.1.22.dist-info/LICENSE,sha256=_iNqtPcw1Ue7dZKwOwgPtbegMUkWVy15hC7bffAdNmY,1067
|
|
339
|
+
llama_cloud-0.1.22.dist-info/METADATA,sha256=8oiNq-d89044LUmFV1wybkJIdF5qcK4poEPPjh6UrtQ,1194
|
|
340
|
+
llama_cloud-0.1.22.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
341
|
+
llama_cloud-0.1.22.dist-info/RECORD,,
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
import urllib.parse
|
|
5
|
-
from json.decoder import JSONDecodeError
|
|
6
|
-
|
|
7
|
-
from ...core.api_error import ApiError
|
|
8
|
-
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
9
|
-
from ...types.configurable_transformation_definition import ConfigurableTransformationDefinition
|
|
10
|
-
from ...types.data_sink_definition import DataSinkDefinition
|
|
11
|
-
from ...types.data_source_definition import DataSourceDefinition
|
|
12
|
-
|
|
13
|
-
try:
|
|
14
|
-
import pydantic
|
|
15
|
-
if pydantic.__version__.startswith("1."):
|
|
16
|
-
raise ImportError
|
|
17
|
-
import pydantic.v1 as pydantic # type: ignore
|
|
18
|
-
except ImportError:
|
|
19
|
-
import pydantic # type: ignore
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class ComponentDefinitionsClient:
|
|
23
|
-
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
24
|
-
self._client_wrapper = client_wrapper
|
|
25
|
-
|
|
26
|
-
def list_transformation_definitions(self) -> typing.List[ConfigurableTransformationDefinition]:
|
|
27
|
-
"""
|
|
28
|
-
List transformation component definitions.
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
from llama_cloud.client import LlamaCloud
|
|
32
|
-
|
|
33
|
-
client = LlamaCloud(
|
|
34
|
-
token="YOUR_TOKEN",
|
|
35
|
-
)
|
|
36
|
-
client.component_definitions.list_transformation_definitions()
|
|
37
|
-
"""
|
|
38
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
39
|
-
"GET",
|
|
40
|
-
urllib.parse.urljoin(
|
|
41
|
-
f"{self._client_wrapper.get_base_url()}/", "api/v1/component-definition/configurable-transformations"
|
|
42
|
-
),
|
|
43
|
-
headers=self._client_wrapper.get_headers(),
|
|
44
|
-
timeout=60,
|
|
45
|
-
)
|
|
46
|
-
if 200 <= _response.status_code < 300:
|
|
47
|
-
return pydantic.parse_obj_as(typing.List[ConfigurableTransformationDefinition], _response.json()) # type: ignore
|
|
48
|
-
try:
|
|
49
|
-
_response_json = _response.json()
|
|
50
|
-
except JSONDecodeError:
|
|
51
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
52
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
53
|
-
|
|
54
|
-
def list_data_source_definitions(self) -> typing.List[DataSourceDefinition]:
|
|
55
|
-
"""
|
|
56
|
-
List data source component definitions.
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
from llama_cloud.client import LlamaCloud
|
|
60
|
-
|
|
61
|
-
client = LlamaCloud(
|
|
62
|
-
token="YOUR_TOKEN",
|
|
63
|
-
)
|
|
64
|
-
client.component_definitions.list_data_source_definitions()
|
|
65
|
-
"""
|
|
66
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
67
|
-
"GET",
|
|
68
|
-
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v1/component-definition/data-sources"),
|
|
69
|
-
headers=self._client_wrapper.get_headers(),
|
|
70
|
-
timeout=60,
|
|
71
|
-
)
|
|
72
|
-
if 200 <= _response.status_code < 300:
|
|
73
|
-
return pydantic.parse_obj_as(typing.List[DataSourceDefinition], _response.json()) # type: ignore
|
|
74
|
-
try:
|
|
75
|
-
_response_json = _response.json()
|
|
76
|
-
except JSONDecodeError:
|
|
77
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
78
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
79
|
-
|
|
80
|
-
def list_data_sink_definitions(self) -> typing.List[DataSinkDefinition]:
|
|
81
|
-
"""
|
|
82
|
-
List data sink component definitions.
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
from llama_cloud.client import LlamaCloud
|
|
86
|
-
|
|
87
|
-
client = LlamaCloud(
|
|
88
|
-
token="YOUR_TOKEN",
|
|
89
|
-
)
|
|
90
|
-
client.component_definitions.list_data_sink_definitions()
|
|
91
|
-
"""
|
|
92
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
93
|
-
"GET",
|
|
94
|
-
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v1/component-definition/data-sinks"),
|
|
95
|
-
headers=self._client_wrapper.get_headers(),
|
|
96
|
-
timeout=60,
|
|
97
|
-
)
|
|
98
|
-
if 200 <= _response.status_code < 300:
|
|
99
|
-
return pydantic.parse_obj_as(typing.List[DataSinkDefinition], _response.json()) # type: ignore
|
|
100
|
-
try:
|
|
101
|
-
_response_json = _response.json()
|
|
102
|
-
except JSONDecodeError:
|
|
103
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
104
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
class AsyncComponentDefinitionsClient:
|
|
108
|
-
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
109
|
-
self._client_wrapper = client_wrapper
|
|
110
|
-
|
|
111
|
-
async def list_transformation_definitions(self) -> typing.List[ConfigurableTransformationDefinition]:
|
|
112
|
-
"""
|
|
113
|
-
List transformation component definitions.
|
|
114
|
-
|
|
115
|
-
---
|
|
116
|
-
from llama_cloud.client import AsyncLlamaCloud
|
|
117
|
-
|
|
118
|
-
client = AsyncLlamaCloud(
|
|
119
|
-
token="YOUR_TOKEN",
|
|
120
|
-
)
|
|
121
|
-
await client.component_definitions.list_transformation_definitions()
|
|
122
|
-
"""
|
|
123
|
-
_response = await self._client_wrapper.httpx_client.request(
|
|
124
|
-
"GET",
|
|
125
|
-
urllib.parse.urljoin(
|
|
126
|
-
f"{self._client_wrapper.get_base_url()}/", "api/v1/component-definition/configurable-transformations"
|
|
127
|
-
),
|
|
128
|
-
headers=self._client_wrapper.get_headers(),
|
|
129
|
-
timeout=60,
|
|
130
|
-
)
|
|
131
|
-
if 200 <= _response.status_code < 300:
|
|
132
|
-
return pydantic.parse_obj_as(typing.List[ConfigurableTransformationDefinition], _response.json()) # type: ignore
|
|
133
|
-
try:
|
|
134
|
-
_response_json = _response.json()
|
|
135
|
-
except JSONDecodeError:
|
|
136
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
137
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
138
|
-
|
|
139
|
-
async def list_data_source_definitions(self) -> typing.List[DataSourceDefinition]:
|
|
140
|
-
"""
|
|
141
|
-
List data source component definitions.
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
from llama_cloud.client import AsyncLlamaCloud
|
|
145
|
-
|
|
146
|
-
client = AsyncLlamaCloud(
|
|
147
|
-
token="YOUR_TOKEN",
|
|
148
|
-
)
|
|
149
|
-
await client.component_definitions.list_data_source_definitions()
|
|
150
|
-
"""
|
|
151
|
-
_response = await self._client_wrapper.httpx_client.request(
|
|
152
|
-
"GET",
|
|
153
|
-
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v1/component-definition/data-sources"),
|
|
154
|
-
headers=self._client_wrapper.get_headers(),
|
|
155
|
-
timeout=60,
|
|
156
|
-
)
|
|
157
|
-
if 200 <= _response.status_code < 300:
|
|
158
|
-
return pydantic.parse_obj_as(typing.List[DataSourceDefinition], _response.json()) # type: ignore
|
|
159
|
-
try:
|
|
160
|
-
_response_json = _response.json()
|
|
161
|
-
except JSONDecodeError:
|
|
162
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
163
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
164
|
-
|
|
165
|
-
async def list_data_sink_definitions(self) -> typing.List[DataSinkDefinition]:
|
|
166
|
-
"""
|
|
167
|
-
List data sink component definitions.
|
|
168
|
-
|
|
169
|
-
---
|
|
170
|
-
from llama_cloud.client import AsyncLlamaCloud
|
|
171
|
-
|
|
172
|
-
client = AsyncLlamaCloud(
|
|
173
|
-
token="YOUR_TOKEN",
|
|
174
|
-
)
|
|
175
|
-
await client.component_definitions.list_data_sink_definitions()
|
|
176
|
-
"""
|
|
177
|
-
_response = await self._client_wrapper.httpx_client.request(
|
|
178
|
-
"GET",
|
|
179
|
-
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v1/component-definition/data-sinks"),
|
|
180
|
-
headers=self._client_wrapper.get_headers(),
|
|
181
|
-
timeout=60,
|
|
182
|
-
)
|
|
183
|
-
if 200 <= _response.status_code < 300:
|
|
184
|
-
return pydantic.parse_obj_as(typing.List[DataSinkDefinition], _response.json()) # type: ignore
|
|
185
|
-
try:
|
|
186
|
-
_response_json = _response.json()
|
|
187
|
-
except JSONDecodeError:
|
|
188
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
189
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import datetime as dt
|
|
4
|
-
import typing
|
|
5
|
-
|
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
|
7
|
-
from .configurable_transformation_names import ConfigurableTransformationNames
|
|
8
|
-
from .transformation_category_names import TransformationCategoryNames
|
|
9
|
-
|
|
10
|
-
try:
|
|
11
|
-
import pydantic
|
|
12
|
-
if pydantic.__version__.startswith("1."):
|
|
13
|
-
raise ImportError
|
|
14
|
-
import pydantic.v1 as pydantic # type: ignore
|
|
15
|
-
except ImportError:
|
|
16
|
-
import pydantic # type: ignore
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class ConfigurableTransformationDefinition(pydantic.BaseModel):
|
|
20
|
-
"""
|
|
21
|
-
Schema for a transformation definition.
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
label: str = pydantic.Field(
|
|
25
|
-
description="The label field will be used to display the name of the component in the UI"
|
|
26
|
-
)
|
|
27
|
-
json_schema: typing.Dict[str, typing.Any] = pydantic.Field(
|
|
28
|
-
description="The json_schema field can be used by clients to determine how to construct the component"
|
|
29
|
-
)
|
|
30
|
-
configurable_transformation_type: ConfigurableTransformationNames = pydantic.Field(
|
|
31
|
-
description="The name field will act as the unique identifier of TransformationDefinition objects"
|
|
32
|
-
)
|
|
33
|
-
transformation_category: TransformationCategoryNames = pydantic.Field(
|
|
34
|
-
description="The transformation_category field will be used to group transformations in the UI"
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
def json(self, **kwargs: typing.Any) -> str:
|
|
38
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
39
|
-
return super().json(**kwargs_with_defaults)
|
|
40
|
-
|
|
41
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
|
42
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
43
|
-
return super().dict(**kwargs_with_defaults)
|
|
44
|
-
|
|
45
|
-
class Config:
|
|
46
|
-
frozen = True
|
|
47
|
-
smart_union = True
|
|
48
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import enum
|
|
4
|
-
import typing
|
|
5
|
-
|
|
6
|
-
T_Result = typing.TypeVar("T_Result")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class ConfigurableTransformationNames(str, enum.Enum):
|
|
10
|
-
CHARACTER_SPLITTER = "CHARACTER_SPLITTER"
|
|
11
|
-
PAGE_SPLITTER_NODE_PARSER = "PAGE_SPLITTER_NODE_PARSER"
|
|
12
|
-
CODE_NODE_PARSER = "CODE_NODE_PARSER"
|
|
13
|
-
SENTENCE_AWARE_NODE_PARSER = "SENTENCE_AWARE_NODE_PARSER"
|
|
14
|
-
TOKEN_AWARE_NODE_PARSER = "TOKEN_AWARE_NODE_PARSER"
|
|
15
|
-
MARKDOWN_NODE_PARSER = "MARKDOWN_NODE_PARSER"
|
|
16
|
-
MARKDOWN_ELEMENT_NODE_PARSER = "MARKDOWN_ELEMENT_NODE_PARSER"
|
|
17
|
-
|
|
18
|
-
def visit(
|
|
19
|
-
self,
|
|
20
|
-
character_splitter: typing.Callable[[], T_Result],
|
|
21
|
-
page_splitter_node_parser: typing.Callable[[], T_Result],
|
|
22
|
-
code_node_parser: typing.Callable[[], T_Result],
|
|
23
|
-
sentence_aware_node_parser: typing.Callable[[], T_Result],
|
|
24
|
-
token_aware_node_parser: typing.Callable[[], T_Result],
|
|
25
|
-
markdown_node_parser: typing.Callable[[], T_Result],
|
|
26
|
-
markdown_element_node_parser: typing.Callable[[], T_Result],
|
|
27
|
-
) -> T_Result:
|
|
28
|
-
if self is ConfigurableTransformationNames.CHARACTER_SPLITTER:
|
|
29
|
-
return character_splitter()
|
|
30
|
-
if self is ConfigurableTransformationNames.PAGE_SPLITTER_NODE_PARSER:
|
|
31
|
-
return page_splitter_node_parser()
|
|
32
|
-
if self is ConfigurableTransformationNames.CODE_NODE_PARSER:
|
|
33
|
-
return code_node_parser()
|
|
34
|
-
if self is ConfigurableTransformationNames.SENTENCE_AWARE_NODE_PARSER:
|
|
35
|
-
return sentence_aware_node_parser()
|
|
36
|
-
if self is ConfigurableTransformationNames.TOKEN_AWARE_NODE_PARSER:
|
|
37
|
-
return token_aware_node_parser()
|
|
38
|
-
if self is ConfigurableTransformationNames.MARKDOWN_NODE_PARSER:
|
|
39
|
-
return markdown_node_parser()
|
|
40
|
-
if self is ConfigurableTransformationNames.MARKDOWN_ELEMENT_NODE_PARSER:
|
|
41
|
-
return markdown_element_node_parser()
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import enum
|
|
4
|
-
import typing
|
|
5
|
-
|
|
6
|
-
T_Result = typing.TypeVar("T_Result")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class TransformationCategoryNames(str, enum.Enum):
|
|
10
|
-
NODE_PARSER = "NODE_PARSER"
|
|
11
|
-
EMBEDDING = "EMBEDDING"
|
|
12
|
-
|
|
13
|
-
def visit(self, node_parser: typing.Callable[[], T_Result], embedding: typing.Callable[[], T_Result]) -> T_Result:
|
|
14
|
-
if self is TransformationCategoryNames.NODE_PARSER:
|
|
15
|
-
return node_parser()
|
|
16
|
-
if self is TransformationCategoryNames.EMBEDDING:
|
|
17
|
-
return embedding()
|
|
File without changes
|
|
File without changes
|