structifyai 1.138.10__py3-none-any.whl → 1.176.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 (418) hide show
  1. structify/__init__.py +3 -1
  2. structify/_base_client.py +152 -23
  3. structify/_client.py +1127 -228
  4. structify/_compat.py +48 -48
  5. structify/_models.py +102 -59
  6. structify/_qs.py +7 -7
  7. structify/_streaming.py +12 -12
  8. structify/_types.py +30 -13
  9. structify/_utils/__init__.py +8 -2
  10. structify/_utils/_compat.py +45 -0
  11. structify/_utils/_datetime_parse.py +136 -0
  12. structify/_utils/_sync.py +3 -31
  13. structify/_utils/_transform.py +13 -3
  14. structify/_utils/_typing.py +1 -1
  15. structify/_utils/_utils.py +5 -6
  16. structify/_version.py +1 -1
  17. structify/lib/__init__.py +5 -0
  18. structify/lib/cost_confirmation.py +63 -0
  19. structify/pagination.py +63 -1
  20. structify/resources/__init__.py +114 -28
  21. structify/resources/admin/__init__.py +53 -39
  22. structify/resources/admin/admin.py +90 -58
  23. structify/resources/admin/chat_templates.py +382 -0
  24. structify/resources/admin/dataset.py +3 -3
  25. structify/resources/admin/functional_tests.py +600 -0
  26. structify/resources/admin/jobs.py +86 -13
  27. structify/resources/admin/sandbox.py +184 -0
  28. structify/resources/admin/{next_action.py → teams.py} +303 -295
  29. structify/resources/admin/users.py +71 -166
  30. structify/resources/chat.py +1197 -226
  31. structify/resources/code.py +115 -29
  32. structify/resources/connector_catalog/__init__.py +33 -0
  33. structify/resources/connector_catalog/admin.py +1510 -0
  34. structify/resources/connector_catalog/connector_catalog.py +394 -0
  35. structify/resources/connectors/__init__.py +33 -0
  36. structify/resources/connectors/connectors.py +2227 -0
  37. structify/resources/connectors/type_snippets.py +169 -0
  38. structify/resources/datasets/datasets.py +168 -88
  39. structify/resources/datasets/evaluate.py +13 -13
  40. structify/resources/documents.py +46 -140
  41. structify/resources/entities.py +298 -75
  42. structify/resources/external.py +99 -0
  43. structify/resources/external_dataframe_proxy.py +290 -0
  44. structify/resources/jobs.py +79 -380
  45. structify/resources/match.py +337 -0
  46. structify/resources/nango.py +234 -0
  47. structify/resources/polars.py +382 -180
  48. structify/resources/projects.py +123 -10
  49. structify/resources/public_sessions.py +5 -5
  50. structify/resources/sandbox.py +19 -85
  51. structify/resources/scrape.py +17 -33
  52. structify/resources/server.py +3 -3
  53. structify/resources/sessions.py +711 -164
  54. structify/resources/slack.py +330 -0
  55. structify/resources/sources.py +9 -9
  56. structify/resources/structure.py +172 -100
  57. structify/resources/teams.py +450 -42
  58. structify/resources/user/__init__.py +14 -0
  59. structify/resources/user/api_keys.py +380 -0
  60. structify/resources/user/stripe.py +97 -6
  61. structify/resources/user/user.py +228 -60
  62. structify/resources/whitelabel.py +329 -0
  63. structify/resources/whitelabel_service.py +222 -0
  64. structify/resources/{secrets.py → wiki.py} +166 -172
  65. structify/resources/workflow.py +250 -0
  66. structify/resources/workflow_schedule.py +194 -34
  67. structify/types/__init__.py +147 -35
  68. structify/types/accept_invitation_response.py +13 -0
  69. structify/types/add_member_response.py +37 -3
  70. structify/types/admin/__init__.py +34 -85
  71. structify/types/admin/admin_dataset_return.py +6 -0
  72. structify/types/admin/{user_get_credits_response.py → admin_delete_jobs_response.py} +3 -3
  73. structify/types/admin/admin_list_jobs_response.py +35 -1
  74. structify/types/admin/admin_sandbox.py +38 -0
  75. structify/types/admin/admin_teams_list_response.py +53 -0
  76. structify/types/admin/cancel_subscription_response.py +11 -0
  77. structify/types/admin/chat_template_create_params.py +21 -0
  78. structify/types/admin/chat_template_list_params.py +12 -0
  79. structify/types/{secret_list_response.py → admin/chat_template_list_response.py} +3 -3
  80. structify/types/admin/chat_template_update_params.py +22 -0
  81. structify/types/admin/create_subscription_response.py +13 -0
  82. structify/types/admin/{delete_action_training_data_response.py → expire_grants_response.py} +5 -3
  83. structify/types/admin/extend_trial_response.py +15 -0
  84. structify/types/admin/functional_test.py +22 -0
  85. structify/types/{report_step_params.py → admin/functional_test_create_params.py} +6 -5
  86. structify/types/admin/functional_test_get_results_params.py +14 -0
  87. structify/types/admin/functional_test_link_chat_params.py +18 -0
  88. structify/types/admin/functional_test_list_response.py +28 -0
  89. structify/types/admin/functional_test_results_response.py +23 -0
  90. structify/types/{report_missing_response.py → admin/functional_test_system_prompt_response.py} +2 -2
  91. structify/types/admin/functional_test_update_results_params.py +18 -0
  92. structify/types/admin/grant_credits_response.py +13 -0
  93. structify/types/admin/impersonate_response.py +17 -0
  94. structify/types/admin/job_delete_params.py +13 -0
  95. structify/types/admin/{user_get_credits_params.py → sandbox_list_params.py} +4 -4
  96. structify/types/admin/sandbox_type.py +7 -0
  97. structify/types/admin/{training_dataset_delete_params.py → team_cancel_subscription_params.py} +3 -3
  98. structify/types/admin/team_create_subscription_params.py +25 -0
  99. structify/types/admin/{user_set_credits_params.py → team_expire_grants_params.py} +4 -4
  100. structify/types/admin/{training_dataset_list_datums_params.py → team_extend_trial_params.py} +4 -4
  101. structify/types/admin/team_grant_credits_params.py +25 -0
  102. structify/types/admin/team_list_params.py +14 -0
  103. structify/types/admin/user.py +42 -2
  104. structify/types/admin/user_create_params.py +7 -0
  105. structify/types/admin/{training_dataset_get_datum_info_params.py → user_impersonate_params.py} +3 -3
  106. structify/types/admin/user_list_response.py +14 -4
  107. structify/types/admin_grant_access_response.py +16 -0
  108. structify/types/{toggle_public_response.py → admin_issue_found_response.py} +3 -3
  109. structify/types/autofix_context.py +7 -0
  110. structify/types/chat_add_collaborator_params.py +2 -2
  111. structify/types/chat_add_git_commit_response.py +2 -0
  112. structify/types/chat_admin_issue_found_params.py +13 -0
  113. structify/types/chat_copy_node_output_by_code_hash_params.py +1 -2
  114. structify/types/chat_copy_params.py +20 -0
  115. structify/types/chat_create_session_params.py +48 -5
  116. structify/types/{admin/training_dataset_add_datum_params.py → chat_delete_files_params.py} +4 -4
  117. structify/types/{get_project_response.py → chat_delete_files_response.py} +3 -4
  118. structify/types/chat_dependency.py +17 -0
  119. structify/types/chat_event.py +166 -0
  120. structify/types/chat_get_git_commit_response.py +2 -0
  121. structify/types/{admin/human_llm_get_jobs_response.py → chat_get_partial_chats_response.py} +3 -3
  122. structify/types/chat_get_session_timeline_response.py +36 -2
  123. structify/types/chat_grant_admin_override_params.py +16 -0
  124. structify/types/chat_list_sessions_params.py +7 -1
  125. structify/types/chat_list_templates_response.py +10 -0
  126. structify/types/{admin/training_dataset_download_datum_params.py → chat_load_files_params.py} +5 -4
  127. structify/types/chat_load_files_response.py +13 -0
  128. structify/types/chat_prompt.py +9 -28
  129. structify/types/chat_revert_to_commit_params.py +12 -0
  130. structify/types/chat_revert_to_commit_response.py +17 -0
  131. structify/types/chat_session.py +31 -2
  132. structify/types/chat_session_role.py +1 -1
  133. structify/types/chat_session_with_messages.py +43 -5
  134. structify/types/chat_template.py +31 -0
  135. structify/types/{admin/training_dataset_remove_datum_params.py → chat_update_session_favorite_params.py} +3 -3
  136. structify/types/chat_update_session_params.py +4 -2
  137. structify/types/chat_update_visibility_params.py +13 -0
  138. structify/types/chat_visibility.py +7 -0
  139. structify/types/code_generate_code_params.py +48 -10
  140. structify/types/code_interrupt_generation_params.py +13 -0
  141. structify/types/connector.py +50 -0
  142. structify/types/connector_auth_method.py +29 -0
  143. structify/types/connector_auth_method_with_fields.py +15 -0
  144. structify/types/connector_catalog/__init__.py +32 -0
  145. structify/types/connector_catalog/admin_batch_create_credential_fields_params.py +14 -0
  146. structify/types/connector_catalog/admin_batch_create_credential_fields_response.py +10 -0
  147. structify/types/connector_catalog/admin_batch_create_scopes_params.py +14 -0
  148. structify/types/connector_catalog/admin_create_auth_method_params.py +22 -0
  149. structify/types/connector_catalog/admin_create_catalog_params.py +22 -0
  150. structify/types/connector_catalog/admin_create_credential_field_params.py +28 -0
  151. structify/types/connector_catalog/admin_create_scope_params.py +19 -0
  152. structify/types/connector_catalog/admin_list_nango_pending_response.py +10 -0
  153. structify/types/{chat_add_message_params.py → connector_catalog/admin_list_scopes_params.py} +3 -5
  154. structify/types/connector_catalog/admin_update_auth_method_params.py +16 -0
  155. structify/types/connector_catalog/admin_update_catalog_params.py +20 -0
  156. structify/types/connector_catalog/admin_update_credential_field_params.py +26 -0
  157. structify/types/connector_catalog/admin_update_scope_params.py +18 -0
  158. structify/types/{admin/human_llm_get_next_step_params.py → connector_catalog/admin_upload_logo_params.py} +4 -4
  159. structify/types/connector_catalog/batch_create_scopes_response.py +12 -0
  160. structify/types/connector_catalog/connector_auth_method_scope.py +25 -0
  161. structify/types/connector_catalog/connector_catalog.py +26 -0
  162. structify/types/connector_catalog/create_credential_field_request_param.py +28 -0
  163. structify/types/connector_catalog/create_scope_request_param.py +19 -0
  164. structify/types/connector_catalog/list_scopes_response.py +12 -0
  165. structify/types/connector_catalog/pending_nango_integration.py +17 -0
  166. structify/types/{admin/user_set_credits_response.py → connector_catalog/upload_logo_response.py} +3 -3
  167. structify/types/connector_catalog_list_params.py +20 -0
  168. structify/types/connector_catalog_list_response.py +22 -0
  169. structify/types/connector_catalog_with_methods.py +15 -0
  170. structify/types/connector_category.py +7 -0
  171. structify/types/connector_create_params.py +36 -0
  172. structify/types/{secret_create_params.py → connector_create_secret_params.py} +2 -2
  173. structify/types/connector_credential_field.py +34 -0
  174. structify/types/connector_delete_schema_object_params.py +35 -0
  175. structify/types/connector_explore_params.py +19 -0
  176. structify/types/connector_explorer_chat.py +34 -0
  177. structify/types/connector_get_clarification_requests_response.py +36 -0
  178. structify/types/connector_get_explorer_chat_params.py +12 -0
  179. structify/types/connector_get_response.py +25 -0
  180. structify/types/connector_list_params.py +16 -0
  181. structify/types/connector_list_with_snippets_params.py +12 -0
  182. structify/types/connector_list_with_snippets_response.py +10 -0
  183. structify/types/connector_search_tables_params.py +15 -0
  184. structify/types/connector_search_tables_response.py +160 -0
  185. structify/types/connector_store_response.py +21 -0
  186. structify/types/connector_summaries_params.py +15 -0
  187. structify/types/connector_summaries_response.py +10 -0
  188. structify/types/connector_summary.py +16 -0
  189. structify/types/connector_table_info.py +15 -0
  190. structify/types/connector_update_column_params.py +12 -0
  191. structify/types/connector_update_params.py +20 -0
  192. structify/types/connector_update_table_params.py +14 -0
  193. structify/types/connector_with_secrets.py +25 -0
  194. structify/types/connector_with_snippets.py +11 -0
  195. structify/types/connectors/__init__.py +6 -0
  196. structify/types/connectors/snippet.py +20 -0
  197. structify/types/connectors/type_snippet_upsert_params.py +12 -0
  198. structify/types/create_chat_session_response.py +2 -0
  199. structify/types/create_match_jobs_response.py +15 -0
  200. structify/types/dashboard_component.py +17 -0
  201. structify/types/{report_relationship_params.py → dashboard_component_param.py} +6 -6
  202. structify/types/dashboard_layout.py +16 -0
  203. structify/types/dashboard_layout_param.py +18 -0
  204. structify/types/dataset_count_missing_embeddings_params.py +11 -0
  205. structify/types/dataset_count_missing_embeddings_response.py +9 -0
  206. structify/types/dataset_create_params.py +0 -2
  207. structify/types/dataset_descriptor.py +6 -0
  208. structify/types/dataset_descriptor_param.py +6 -0
  209. structify/types/dataset_get_response.py +6 -0
  210. structify/types/dataset_list_response.py +6 -0
  211. structify/types/dataset_reorder_properties_params.py +3 -2
  212. structify/types/dataset_view_table_response.py +3 -1
  213. structify/types/delete_chat_session_response.py +2 -0
  214. structify/types/delete_schema_object_request_param.py +35 -0
  215. structify/types/delete_schema_object_response.py +13 -0
  216. structify/types/document_list_params.py +2 -0
  217. structify/types/document_list_response.py +2 -0
  218. structify/types/document_upload_params.py +2 -0
  219. structify/types/edge_spec_param.py +13 -0
  220. structify/types/entity_agent_merge_params.py +3 -2
  221. structify/types/entity_derive_all_params.py +20 -0
  222. structify/types/{admin/training_dataset_list_response.py → entity_derive_all_response.py} +2 -2
  223. structify/types/entity_get_source_entities_response.py +0 -2
  224. structify/types/entity_list_jobs_response.py +3 -3
  225. structify/types/entity_summarize_params.py +5 -3
  226. structify/types/entity_upload_parquet_params.py +17 -0
  227. structify/types/entity_view_response.py +0 -2
  228. structify/types/estimate_cost_response.py +9 -0
  229. structify/types/exploration_phase_id.py +79 -0
  230. structify/types/{project_secret_summary.py → exploration_run.py} +3 -7
  231. structify/types/exploration_runs_response.py +12 -0
  232. structify/types/exploration_status.py +7 -0
  233. structify/types/explore_status_response.py +17 -0
  234. structify/types/explorer_chat_response.py +12 -0
  235. structify/types/finalize_dag_response.py +11 -0
  236. structify/types/get_chat_session_response.py +77 -3
  237. structify/types/get_dependencies_response.py +15 -0
  238. structify/types/get_job_events_response.py +20 -0
  239. structify/types/get_node_logs_response.py +12 -0
  240. structify/types/get_node_response.py +10 -0
  241. structify/types/get_team_response.py +3 -0
  242. structify/types/invitation_details_response.py +13 -0
  243. structify/types/job_cancel_response.py +3 -3
  244. structify/types/job_event_body.py +206 -0
  245. structify/types/job_get_source_entities_response.py +0 -2
  246. structify/types/job_list_params.py +4 -1
  247. structify/types/job_list_response.py +35 -1
  248. structify/types/job_status_params.py +6 -2
  249. structify/types/knowledge_graph.py +8 -2
  250. structify/types/knowledge_graph_param.py +7 -1
  251. structify/types/list_chat_sessions_response.py +10 -1
  252. structify/types/list_collaborators_response.py +4 -0
  253. structify/types/list_members_response.py +16 -3
  254. structify/types/list_tables_response.py +12 -0
  255. structify/types/llm_information_store.py +87 -0
  256. structify/types/match_create_jobs_params.py +24 -0
  257. structify/types/match_list_results_params.py +21 -0
  258. structify/types/match_result.py +28 -0
  259. structify/types/merge_config.py +2 -0
  260. structify/types/merge_config_param.py +2 -0
  261. structify/types/message.py +36 -0
  262. structify/types/nango_create_session_params.py +21 -0
  263. structify/types/nango_create_session_response.py +15 -0
  264. structify/types/nango_list_integrations_response.py +28 -0
  265. structify/types/{session_create_node_params.py → node_spec_param.py} +6 -3
  266. structify/types/project.py +3 -0
  267. structify/types/project_collaborator_input_param.py +15 -0
  268. structify/types/project_get_response.py +12 -0
  269. structify/types/{get_secret_response.py → project_member.py} +7 -4
  270. structify/types/project_update_params.py +23 -0
  271. structify/types/project_visibility.py +7 -0
  272. structify/types/property_type_param.py +3 -2
  273. structify/types/refresh_session_response.py +15 -0
  274. structify/types/sandbox.py +8 -2
  275. structify/types/sandbox_get_params.py +2 -1
  276. structify/types/save_requirement_param.py +4 -2
  277. structify/types/scrape_list_params.py +1 -22
  278. structify/types/scrape_list_response.py +2 -0
  279. structify/types/scrape_scrape_params.py +1 -14
  280. structify/types/scrape_scrape_response.py +2 -0
  281. structify/types/select_team_response.py +13 -0
  282. structify/types/session_confirm_node_params.py +11 -0
  283. structify/types/session_finalize_dag_params.py +20 -0
  284. structify/types/session_get_events_params.py +8 -3
  285. structify/types/session_get_events_response.py +43 -0
  286. structify/types/session_get_node_progress_response.py +17 -3
  287. structify/types/{admin/human_llm_start_next_job_params.py → session_kill_jobs_params.py} +3 -3
  288. structify/types/session_kill_jobs_response.py +13 -0
  289. structify/types/session_mark_errored_params.py +6 -0
  290. structify/types/session_request_confirmation_params.py +13 -0
  291. structify/types/session_update_node_progress_params.py +8 -2
  292. structify/types/session_upload_dashboard_layout_params.py +13 -0
  293. structify/types/session_upload_node_output_data_params.py +3 -0
  294. structify/types/session_upload_node_visualization_output_params.py +12 -0
  295. structify/types/slack_api_response.py +21 -0
  296. structify/types/slack_event_payload_param.py +77 -0
  297. structify/types/slack_events_params.py +77 -0
  298. structify/types/source_list_response.py +0 -2
  299. structify/types/structure_enhance_property_params.py +8 -21
  300. structify/types/structure_enhance_relationship_params.py +8 -21
  301. structify/types/structure_find_relationship_params.py +7 -21
  302. structify/types/structure_is_complete_params.py +3 -2
  303. structify/types/structure_job_status_params.py +4 -2
  304. structify/types/structure_pdf_params.py +22 -0
  305. structify/types/structure_pdf_response.py +11 -0
  306. structify/types/structure_run_async_params.py +15 -21
  307. structify/types/table.py +2 -0
  308. structify/types/table_param.py +2 -0
  309. structify/types/team.py +16 -2
  310. structify/types/team_accept_invitation_params.py +11 -0
  311. structify/types/team_add_member_params.py +2 -2
  312. structify/types/team_create_link_code_params.py +11 -0
  313. structify/types/team_role.py +1 -1
  314. structify/types/team_subscription_status.py +24 -0
  315. structify/types/team_update_member_role_params.py +15 -0
  316. structify/types/team_update_params.py +10 -0
  317. structify/types/team_wiki_page.py +28 -0
  318. structify/types/team_with_role.py +3 -0
  319. structify/types/{update_secret_response.py → teams_link_code_response.py} +4 -4
  320. structify/types/token_response.py +6 -2
  321. structify/types/tool_invocation.py +468 -0
  322. structify/types/tool_result.py +99 -0
  323. structify/types/update_member_role_response.py +9 -0
  324. structify/types/update_table_response.py +46 -0
  325. structify/types/update_visibility_response.py +10 -0
  326. structify/types/usage_group_key.py +14 -1
  327. structify/types/user/__init__.py +5 -0
  328. structify/types/{admin/training_dataset_size_params.py → user/api_key_create_params.py} +5 -5
  329. structify/types/user/api_key_info.py +24 -0
  330. structify/types/user/create_api_key_response.py +12 -0
  331. structify/types/user/list_api_keys_response.py +12 -0
  332. structify/types/{admin/human_llm_add_search_for_job_params.py → user/stripe_create_portal_session_params.py} +4 -4
  333. structify/types/user/subscription_plan.py +1 -1
  334. structify/types/{chat_toggle_public_params.py → user_enrich_params.py} +3 -3
  335. structify/types/user_info.py +31 -1
  336. structify/types/user_refresh_params.py +13 -0
  337. structify/types/user_transactions_response.py +5 -1
  338. structify/types/user_update_params.py +61 -13
  339. structify/types/user_usage_response.py +0 -2
  340. structify/types/wiki_connector_reference.py +63 -0
  341. structify/types/wiki_create_params.py +16 -0
  342. structify/types/{job_get_steps_response.py → wiki_list_response.py} +3 -3
  343. structify/types/wiki_page_with_references.py +12 -0
  344. structify/types/wiki_update_params.py +16 -0
  345. structify/types/workflow_dag.py +10 -0
  346. structify/types/workflow_node_execution_status.py +3 -1
  347. structify/types/{user_team.py → workflow_node_log.py} +6 -7
  348. structify/types/workflow_run_params.py +13 -0
  349. structify/types/workflow_schedule_create_params.py +2 -2
  350. structify/types/workflow_schedule_info.py +4 -2
  351. structify/types/workflow_schedule_pause_params.py +11 -0
  352. structify/types/workflow_schedule_update_params.py +2 -0
  353. structify/types/workflow_session.py +8 -0
  354. structify/types/workflow_session_node.py +16 -0
  355. structify/types/workflow_stop_params.py +11 -0
  356. {structifyai-1.138.10.dist-info → structifyai-1.176.1.dist-info}/METADATA +73 -194
  357. structifyai-1.176.1.dist-info/RECORD +496 -0
  358. {structifyai-1.138.10.dist-info → structifyai-1.176.1.dist-info}/licenses/LICENSE +1 -1
  359. structify/resources/admin/human_llm.py +0 -819
  360. structify/resources/admin/training_datasets.py +0 -2028
  361. structify/resources/report.py +0 -494
  362. structify/types/add_chat_message_response.py +0 -25
  363. structify/types/admin/action_training_data_entry.py +0 -219
  364. structify/types/admin/action_training_data_response.py +0 -12
  365. structify/types/admin/datum_status.py +0 -19
  366. structify/types/admin/human_llm_add_to_dataset_params.py +0 -186
  367. structify/types/admin/human_llm_finish_job_params.py +0 -13
  368. structify/types/admin/human_llm_get_jobs_params.py +0 -12
  369. structify/types/admin/human_llm_get_next_step_response.py +0 -196
  370. structify/types/admin/human_llm_job.py +0 -73
  371. structify/types/admin/human_llm_prelabel_step_response.py +0 -184
  372. structify/types/admin/human_llm_update_step_params.py +0 -186
  373. structify/types/admin/labeling_stats.py +0 -24
  374. structify/types/admin/next_action_add_training_datum_params.py +0 -203
  375. structify/types/admin/next_action_delete_training_data_params.py +0 -12
  376. structify/types/admin/next_action_get_batched_training_data_params.py +0 -12
  377. structify/types/admin/next_action_get_training_data_params.py +0 -25
  378. structify/types/admin/next_action_get_training_datum_params.py +0 -12
  379. structify/types/admin/next_action_label_training_datum_params.py +0 -90
  380. structify/types/admin/step_choices.py +0 -32
  381. structify/types/admin/training_dataset_add_params.py +0 -12
  382. structify/types/admin/training_dataset_get_labeller_stats_params.py +0 -23
  383. structify/types/admin/training_dataset_get_labeller_stats_response.py +0 -10
  384. structify/types/admin/training_dataset_get_next_for_labeling_params.py +0 -15
  385. structify/types/admin/training_dataset_get_next_for_qa_params.py +0 -18
  386. structify/types/admin/training_dataset_get_next_suspicious_params.py +0 -23
  387. structify/types/admin/training_dataset_label_datum_params.py +0 -188
  388. structify/types/admin/training_dataset_list_datums_response.py +0 -33
  389. structify/types/admin/training_dataset_mark_datum_suspicious_params.py +0 -19
  390. structify/types/admin/training_dataset_size_response.py +0 -37
  391. structify/types/admin/training_dataset_suspicious_count_params.py +0 -23
  392. structify/types/admin/training_dataset_suspicious_count_response.py +0 -9
  393. structify/types/admin/training_dataset_switch_dataset_params.py +0 -13
  394. structify/types/admin/training_dataset_update_datum_status_params.py +0 -18
  395. structify/types/admin/training_dataset_upload_labeled_step_params.py +0 -15
  396. structify/types/admin/training_dataset_verify_datum_params.py +0 -17
  397. structify/types/admin/training_datum_response.py +0 -405
  398. structify/types/chat_prompt_param.py +0 -274
  399. structify/types/create_project_response.py +0 -10
  400. structify/types/document_structure_params.py +0 -21
  401. structify/types/document_structure_response.py +0 -8
  402. structify/types/execution_step.py +0 -198
  403. structify/types/get_session_events_response.py +0 -26
  404. structify/types/job_delete_response.py +0 -7
  405. structify/types/job_get_response.py +0 -62
  406. structify/types/job_get_step_graph_response.py +0 -233
  407. structify/types/job_get_step_response.py +0 -196
  408. structify/types/report_missing_params.py +0 -18
  409. structify/types/report_relationship_response.py +0 -7
  410. structify/types/report_step_response.py +0 -7
  411. structify/types/report_wrong_params.py +0 -18
  412. structify/types/report_wrong_response.py +0 -7
  413. structify/types/secret_update_params.py +0 -14
  414. structify/types/session_create_edge_params.py +0 -13
  415. structify/types/tool_metadata_param.py +0 -17
  416. structify/types/workflow_schedule_get_response.py +0 -10
  417. structifyai-1.138.10.dist-info/RECORD +0 -370
  418. {structifyai-1.138.10.dist-info → structifyai-1.176.1.dist-info}/WHEEL +0 -0
@@ -1,405 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List, Union, Optional
4
- from datetime import datetime
5
- from typing_extensions import Literal, TypeAlias
6
-
7
- from pydantic import Field as FieldInfo
8
-
9
- from ..._models import BaseModel
10
- from ..chat_prompt import ChatPrompt
11
- from .datum_status import DatumStatus
12
- from ..knowledge_graph import KnowledgeGraph
13
-
14
- __all__ = [
15
- "TrainingDatumResponse",
16
- "Step",
17
- "StepResponse",
18
- "StepResponseToolCall",
19
- "StepResponseToolCallInput",
20
- "StepResponseToolCallInputSave",
21
- "StepResponseToolCallInputScroll",
22
- "StepResponseToolCallInputScrollScroll",
23
- "StepResponseToolCallInputScrollToBottom",
24
- "StepResponseToolCallInputScrollToBottomScrollToBottom",
25
- "StepResponseToolCallInputExit",
26
- "StepResponseToolCallInputExitExit",
27
- "StepResponseToolCallInputClick",
28
- "StepResponseToolCallInputClickClick",
29
- "StepResponseToolCallInputHover",
30
- "StepResponseToolCallInputHoverHover",
31
- "StepResponseToolCallInputWait",
32
- "StepResponseToolCallInputWaitWait",
33
- "StepResponseToolCallInputError",
34
- "StepResponseToolCallInputErrorError",
35
- "StepResponseToolCallInputGoogle",
36
- "StepResponseToolCallInputGoogleGoogle",
37
- "StepResponseToolCallInputType",
38
- "StepResponseToolCallInputTypeType",
39
- "StepResponseToolCallResult",
40
- "StepResponseToolCallResultToolQueued",
41
- "StepResponseToolCallResultToolFail",
42
- "StepResponseToolCallResultInputParseFail",
43
- "StepResponseToolCallResultSuccess",
44
- "Update",
45
- "UpdateResponse",
46
- "UpdateResponseToolCall",
47
- "UpdateResponseToolCallInput",
48
- "UpdateResponseToolCallInputSave",
49
- "UpdateResponseToolCallInputScroll",
50
- "UpdateResponseToolCallInputScrollScroll",
51
- "UpdateResponseToolCallInputScrollToBottom",
52
- "UpdateResponseToolCallInputScrollToBottomScrollToBottom",
53
- "UpdateResponseToolCallInputExit",
54
- "UpdateResponseToolCallInputExitExit",
55
- "UpdateResponseToolCallInputClick",
56
- "UpdateResponseToolCallInputClickClick",
57
- "UpdateResponseToolCallInputHover",
58
- "UpdateResponseToolCallInputHoverHover",
59
- "UpdateResponseToolCallInputWait",
60
- "UpdateResponseToolCallInputWaitWait",
61
- "UpdateResponseToolCallInputError",
62
- "UpdateResponseToolCallInputErrorError",
63
- "UpdateResponseToolCallInputGoogle",
64
- "UpdateResponseToolCallInputGoogleGoogle",
65
- "UpdateResponseToolCallInputType",
66
- "UpdateResponseToolCallInputTypeType",
67
- "UpdateResponseToolCallResult",
68
- "UpdateResponseToolCallResultToolQueued",
69
- "UpdateResponseToolCallResultToolFail",
70
- "UpdateResponseToolCallResultInputParseFail",
71
- "UpdateResponseToolCallResultSuccess",
72
- ]
73
-
74
-
75
- class StepResponseToolCallInputSave(BaseModel):
76
- save: KnowledgeGraph = FieldInfo(alias="Save")
77
- """
78
- Knowledge graph info structured to deserialize and display in the same format
79
- that the LLM outputs. Also the first representation of an LLM output in the
80
- pipeline from raw tool output to being merged into a DB
81
- """
82
-
83
-
84
- class StepResponseToolCallInputScrollScroll(BaseModel):
85
- reason: str
86
- """Dummy argument"""
87
-
88
-
89
- class StepResponseToolCallInputScroll(BaseModel):
90
- scroll: StepResponseToolCallInputScrollScroll = FieldInfo(alias="Scroll")
91
- """For tools with no inputs."""
92
-
93
-
94
- class StepResponseToolCallInputScrollToBottomScrollToBottom(BaseModel):
95
- reason: str
96
- """Dummy argument"""
97
-
98
-
99
- class StepResponseToolCallInputScrollToBottom(BaseModel):
100
- scroll_to_bottom: StepResponseToolCallInputScrollToBottomScrollToBottom = FieldInfo(alias="ScrollToBottom")
101
- """For tools with no inputs."""
102
-
103
-
104
- class StepResponseToolCallInputExitExit(BaseModel):
105
- reason: str
106
- """Dummy argument"""
107
-
108
-
109
- class StepResponseToolCallInputExit(BaseModel):
110
- exit: StepResponseToolCallInputExitExit = FieldInfo(alias="Exit")
111
- """For tools with no inputs."""
112
-
113
-
114
- class StepResponseToolCallInputClickClick(BaseModel):
115
- flag: int
116
-
117
-
118
- class StepResponseToolCallInputClick(BaseModel):
119
- click: StepResponseToolCallInputClickClick = FieldInfo(alias="Click")
120
-
121
-
122
- class StepResponseToolCallInputHoverHover(BaseModel):
123
- flag: int
124
-
125
-
126
- class StepResponseToolCallInputHover(BaseModel):
127
- hover: StepResponseToolCallInputHoverHover = FieldInfo(alias="Hover")
128
-
129
-
130
- class StepResponseToolCallInputWaitWait(BaseModel):
131
- seconds: Optional[int] = None
132
- """Time in seconds to wait"""
133
-
134
-
135
- class StepResponseToolCallInputWait(BaseModel):
136
- wait: StepResponseToolCallInputWaitWait = FieldInfo(alias="Wait")
137
-
138
-
139
- class StepResponseToolCallInputErrorError(BaseModel):
140
- error: str
141
-
142
-
143
- class StepResponseToolCallInputError(BaseModel):
144
- error: StepResponseToolCallInputErrorError = FieldInfo(alias="Error")
145
-
146
-
147
- class StepResponseToolCallInputGoogleGoogle(BaseModel):
148
- query: str
149
-
150
-
151
- class StepResponseToolCallInputGoogle(BaseModel):
152
- google: StepResponseToolCallInputGoogleGoogle = FieldInfo(alias="Google")
153
-
154
-
155
- class StepResponseToolCallInputTypeType(BaseModel):
156
- flag: int
157
-
158
- input: str
159
-
160
-
161
- class StepResponseToolCallInputType(BaseModel):
162
- type: StepResponseToolCallInputTypeType = FieldInfo(alias="Type")
163
-
164
-
165
- StepResponseToolCallInput: TypeAlias = Union[
166
- StepResponseToolCallInputSave,
167
- StepResponseToolCallInputScroll,
168
- StepResponseToolCallInputScrollToBottom,
169
- StepResponseToolCallInputExit,
170
- StepResponseToolCallInputClick,
171
- StepResponseToolCallInputHover,
172
- StepResponseToolCallInputWait,
173
- StepResponseToolCallInputError,
174
- StepResponseToolCallInputGoogle,
175
- StepResponseToolCallInputType,
176
- ]
177
-
178
-
179
- class StepResponseToolCallResultToolQueued(BaseModel):
180
- tool_queued: str = FieldInfo(alias="ToolQueued")
181
-
182
-
183
- class StepResponseToolCallResultToolFail(BaseModel):
184
- tool_fail: str = FieldInfo(alias="ToolFail")
185
-
186
-
187
- class StepResponseToolCallResultInputParseFail(BaseModel):
188
- input_parse_fail: str = FieldInfo(alias="InputParseFail")
189
-
190
-
191
- class StepResponseToolCallResultSuccess(BaseModel):
192
- success: str = FieldInfo(alias="Success")
193
-
194
-
195
- StepResponseToolCallResult: TypeAlias = Union[
196
- StepResponseToolCallResultToolQueued,
197
- StepResponseToolCallResultToolFail,
198
- StepResponseToolCallResultInputParseFail,
199
- StepResponseToolCallResultSuccess,
200
- None,
201
- ]
202
-
203
-
204
- class StepResponseToolCall(BaseModel):
205
- input: StepResponseToolCallInput
206
-
207
- name: Literal["Exit", "Save", "Wait", "Type", "Scroll", "ScrollToBottom", "Click", "Hover", "Error", "Google"]
208
-
209
- result: Optional[StepResponseToolCallResult] = None
210
-
211
-
212
- class StepResponse(BaseModel):
213
- llm: str
214
-
215
- text: str
216
-
217
- tool_calls: List[StepResponseToolCall]
218
-
219
- reasoning: Optional[str] = None
220
-
221
- thinking: Optional[str] = None
222
-
223
-
224
- class Step(BaseModel):
225
- prompt: ChatPrompt
226
-
227
- response: StepResponse
228
-
229
-
230
- class UpdateResponseToolCallInputSave(BaseModel):
231
- save: KnowledgeGraph = FieldInfo(alias="Save")
232
- """
233
- Knowledge graph info structured to deserialize and display in the same format
234
- that the LLM outputs. Also the first representation of an LLM output in the
235
- pipeline from raw tool output to being merged into a DB
236
- """
237
-
238
-
239
- class UpdateResponseToolCallInputScrollScroll(BaseModel):
240
- reason: str
241
- """Dummy argument"""
242
-
243
-
244
- class UpdateResponseToolCallInputScroll(BaseModel):
245
- scroll: UpdateResponseToolCallInputScrollScroll = FieldInfo(alias="Scroll")
246
- """For tools with no inputs."""
247
-
248
-
249
- class UpdateResponseToolCallInputScrollToBottomScrollToBottom(BaseModel):
250
- reason: str
251
- """Dummy argument"""
252
-
253
-
254
- class UpdateResponseToolCallInputScrollToBottom(BaseModel):
255
- scroll_to_bottom: UpdateResponseToolCallInputScrollToBottomScrollToBottom = FieldInfo(alias="ScrollToBottom")
256
- """For tools with no inputs."""
257
-
258
-
259
- class UpdateResponseToolCallInputExitExit(BaseModel):
260
- reason: str
261
- """Dummy argument"""
262
-
263
-
264
- class UpdateResponseToolCallInputExit(BaseModel):
265
- exit: UpdateResponseToolCallInputExitExit = FieldInfo(alias="Exit")
266
- """For tools with no inputs."""
267
-
268
-
269
- class UpdateResponseToolCallInputClickClick(BaseModel):
270
- flag: int
271
-
272
-
273
- class UpdateResponseToolCallInputClick(BaseModel):
274
- click: UpdateResponseToolCallInputClickClick = FieldInfo(alias="Click")
275
-
276
-
277
- class UpdateResponseToolCallInputHoverHover(BaseModel):
278
- flag: int
279
-
280
-
281
- class UpdateResponseToolCallInputHover(BaseModel):
282
- hover: UpdateResponseToolCallInputHoverHover = FieldInfo(alias="Hover")
283
-
284
-
285
- class UpdateResponseToolCallInputWaitWait(BaseModel):
286
- seconds: Optional[int] = None
287
- """Time in seconds to wait"""
288
-
289
-
290
- class UpdateResponseToolCallInputWait(BaseModel):
291
- wait: UpdateResponseToolCallInputWaitWait = FieldInfo(alias="Wait")
292
-
293
-
294
- class UpdateResponseToolCallInputErrorError(BaseModel):
295
- error: str
296
-
297
-
298
- class UpdateResponseToolCallInputError(BaseModel):
299
- error: UpdateResponseToolCallInputErrorError = FieldInfo(alias="Error")
300
-
301
-
302
- class UpdateResponseToolCallInputGoogleGoogle(BaseModel):
303
- query: str
304
-
305
-
306
- class UpdateResponseToolCallInputGoogle(BaseModel):
307
- google: UpdateResponseToolCallInputGoogleGoogle = FieldInfo(alias="Google")
308
-
309
-
310
- class UpdateResponseToolCallInputTypeType(BaseModel):
311
- flag: int
312
-
313
- input: str
314
-
315
-
316
- class UpdateResponseToolCallInputType(BaseModel):
317
- type: UpdateResponseToolCallInputTypeType = FieldInfo(alias="Type")
318
-
319
-
320
- UpdateResponseToolCallInput: TypeAlias = Union[
321
- UpdateResponseToolCallInputSave,
322
- UpdateResponseToolCallInputScroll,
323
- UpdateResponseToolCallInputScrollToBottom,
324
- UpdateResponseToolCallInputExit,
325
- UpdateResponseToolCallInputClick,
326
- UpdateResponseToolCallInputHover,
327
- UpdateResponseToolCallInputWait,
328
- UpdateResponseToolCallInputError,
329
- UpdateResponseToolCallInputGoogle,
330
- UpdateResponseToolCallInputType,
331
- ]
332
-
333
-
334
- class UpdateResponseToolCallResultToolQueued(BaseModel):
335
- tool_queued: str = FieldInfo(alias="ToolQueued")
336
-
337
-
338
- class UpdateResponseToolCallResultToolFail(BaseModel):
339
- tool_fail: str = FieldInfo(alias="ToolFail")
340
-
341
-
342
- class UpdateResponseToolCallResultInputParseFail(BaseModel):
343
- input_parse_fail: str = FieldInfo(alias="InputParseFail")
344
-
345
-
346
- class UpdateResponseToolCallResultSuccess(BaseModel):
347
- success: str = FieldInfo(alias="Success")
348
-
349
-
350
- UpdateResponseToolCallResult: TypeAlias = Union[
351
- UpdateResponseToolCallResultToolQueued,
352
- UpdateResponseToolCallResultToolFail,
353
- UpdateResponseToolCallResultInputParseFail,
354
- UpdateResponseToolCallResultSuccess,
355
- None,
356
- ]
357
-
358
-
359
- class UpdateResponseToolCall(BaseModel):
360
- input: UpdateResponseToolCallInput
361
-
362
- name: Literal["Exit", "Save", "Wait", "Type", "Scroll", "ScrollToBottom", "Click", "Hover", "Error", "Google"]
363
-
364
- result: Optional[UpdateResponseToolCallResult] = None
365
-
366
-
367
- class UpdateResponse(BaseModel):
368
- llm: str
369
-
370
- text: str
371
-
372
- tool_calls: List[UpdateResponseToolCall]
373
-
374
- reasoning: Optional[str] = None
375
-
376
- thinking: Optional[str] = None
377
-
378
-
379
- class Update(BaseModel):
380
- id: str
381
-
382
- author: str
383
-
384
- status: DatumStatus
385
-
386
- timestamp: datetime
387
-
388
- response: Optional[UpdateResponse] = None
389
-
390
- review_message: Optional[str] = None
391
-
392
- to_id: Optional[str] = None
393
-
394
-
395
- class TrainingDatumResponse(BaseModel):
396
- id: str
397
-
398
- last_updated: datetime
399
-
400
- status: DatumStatus
401
-
402
- step: Step
403
-
404
- updates: List[Update]
405
- """All updates for the datum, sorted by ascending timestamp."""
@@ -1,274 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from typing import Dict, List, Union, Iterable, Optional
6
- from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
7
-
8
- from .._types import FileTypes
9
- from .._utils import PropertyInfo
10
- from .tool_metadata_param import ToolMetadataParam
11
- from .knowledge_graph_param import KnowledgeGraphParam
12
- from .save_requirement_param import SaveRequirementParam
13
- from .dataset_descriptor_param import DatasetDescriptorParam
14
-
15
- __all__ = [
16
- "ChatPromptParam",
17
- "DecodingParams",
18
- "DecodingParamsParameter",
19
- "DecodingParamsParameterMaxTokens",
20
- "DecodingParamsParameterMaxCompletionTokens",
21
- "DecodingParamsParameterTopP",
22
- "DecodingParamsParameterRepeatWindow",
23
- "DecodingParamsParameterRepeatPenalty",
24
- "DecodingParamsParameterTemperature",
25
- "DecodingParamsParameterStopTokens",
26
- "DecodingParamsParameterLogitBias",
27
- "DecodingParamsParameterFunctions",
28
- "DecodingParamsParameterJsonValidator",
29
- "DecodingParamsParameterRegexValidator",
30
- "DecodingParamsParameterContextFreeGrammar",
31
- "DecodingParamsParameterNumBeams",
32
- "DecodingParamsParameterCrop",
33
- "DecodingParamsParameterThinking",
34
- "DecodingParamsParameterVerbosity",
35
- "Message",
36
- "MessageContent",
37
- "MessageContentText",
38
- "MessageContentImage",
39
- "Metadata",
40
- "MetadataFormatterSpecific",
41
- "MetadataFormatterSpecificImageMeta",
42
- "MetadataFormatterSpecificImageMetaImageMeta",
43
- "MetadataFormatterSpecificWebMeta",
44
- "MetadataFormatterSpecificWebMetaWebMeta",
45
- "MetadataFormatterSpecificWebMetaWebMetaFlag",
46
- "MetadataFormatterSpecificTextMeta",
47
- "MetadataFormatterSpecificTextMetaTextMeta",
48
- "MetadataFormatterSpecificScraperMeta",
49
- "MetadataFormatterSpecificScraperMetaScraperMeta",
50
- ]
51
-
52
-
53
- class DecodingParamsParameterMaxTokens(TypedDict, total=False):
54
- max_tokens: Required[Annotated[int, PropertyInfo(alias="MaxTokens")]]
55
-
56
-
57
- class DecodingParamsParameterMaxCompletionTokens(TypedDict, total=False):
58
- max_completion_tokens: Required[Annotated[int, PropertyInfo(alias="MaxCompletionTokens")]]
59
-
60
-
61
- class DecodingParamsParameterTopP(TypedDict, total=False):
62
- top_p: Required[Annotated[float, PropertyInfo(alias="TopP")]]
63
-
64
-
65
- class DecodingParamsParameterRepeatWindow(TypedDict, total=False):
66
- repeat_window: Required[Annotated[int, PropertyInfo(alias="RepeatWindow")]]
67
-
68
-
69
- class DecodingParamsParameterRepeatPenalty(TypedDict, total=False):
70
- repeat_penalty: Required[Annotated[float, PropertyInfo(alias="RepeatPenalty")]]
71
-
72
-
73
- class DecodingParamsParameterTemperature(TypedDict, total=False):
74
- temperature: Required[Annotated[float, PropertyInfo(alias="Temperature")]]
75
-
76
-
77
- class DecodingParamsParameterStopTokens(TypedDict, total=False):
78
- stop_tokens: Required[Annotated[List[str], PropertyInfo(alias="StopTokens")]]
79
-
80
-
81
- class DecodingParamsParameterLogitBias(TypedDict, total=False):
82
- logit_bias: Required[Annotated[Dict[str, float], PropertyInfo(alias="LogitBias")]]
83
-
84
-
85
- class DecodingParamsParameterFunctions(TypedDict, total=False):
86
- functions: Required[Annotated[Iterable[Dict[str, object]], PropertyInfo(alias="Functions")]]
87
-
88
-
89
- class DecodingParamsParameterJsonValidator(TypedDict, total=False):
90
- json_validator: Required[Annotated[Dict[str, object], PropertyInfo(alias="JsonValidator")]]
91
-
92
-
93
- class DecodingParamsParameterRegexValidator(TypedDict, total=False):
94
- regex_validator: Required[Annotated[str, PropertyInfo(alias="RegexValidator")]]
95
-
96
-
97
- class DecodingParamsParameterContextFreeGrammar(TypedDict, total=False):
98
- context_free_grammar: Required[Annotated[str, PropertyInfo(alias="ContextFreeGrammar")]]
99
-
100
-
101
- class DecodingParamsParameterNumBeams(TypedDict, total=False):
102
- num_beams: Required[Annotated[int, PropertyInfo(alias="NumBeams")]]
103
-
104
-
105
- class DecodingParamsParameterCrop(TypedDict, total=False):
106
- crop: Required[Annotated[bool, PropertyInfo(alias="Crop")]]
107
-
108
-
109
- class DecodingParamsParameterThinking(TypedDict, total=False):
110
- thinking: Required[Annotated[int, PropertyInfo(alias="Thinking")]]
111
- """Thinking tokens for Claude 3.7. Contains the budget in tokens for thinking."""
112
-
113
-
114
- class DecodingParamsParameterVerbosity(TypedDict, total=False):
115
- verbosity: Required[Annotated[Literal["low", "medium", "high"], PropertyInfo(alias="Verbosity")]]
116
-
117
-
118
- DecodingParamsParameter: TypeAlias = Union[
119
- DecodingParamsParameterMaxTokens,
120
- DecodingParamsParameterMaxCompletionTokens,
121
- DecodingParamsParameterTopP,
122
- DecodingParamsParameterRepeatWindow,
123
- DecodingParamsParameterRepeatPenalty,
124
- DecodingParamsParameterTemperature,
125
- DecodingParamsParameterStopTokens,
126
- DecodingParamsParameterLogitBias,
127
- DecodingParamsParameterFunctions,
128
- DecodingParamsParameterJsonValidator,
129
- DecodingParamsParameterRegexValidator,
130
- DecodingParamsParameterContextFreeGrammar,
131
- DecodingParamsParameterNumBeams,
132
- DecodingParamsParameterCrop,
133
- DecodingParamsParameterThinking,
134
- DecodingParamsParameterVerbosity,
135
- ]
136
-
137
-
138
- class DecodingParams(TypedDict, total=False):
139
- parameters: Required[Iterable[DecodingParamsParameter]]
140
-
141
-
142
- class MessageContentText(TypedDict, total=False):
143
- text: Required[Annotated[str, PropertyInfo(alias="Text")]]
144
-
145
-
146
- class MessageContentImage(TypedDict, total=False):
147
- image: Required[Annotated[FileTypes, PropertyInfo(alias="Image")]]
148
-
149
-
150
- MessageContent: TypeAlias = Union[MessageContentText, MessageContentImage]
151
-
152
-
153
- class Message(TypedDict, total=False):
154
- content: Required[Iterable[MessageContent]]
155
- """
156
- We want this to be a vec of contents so we can accurately capture an
157
- interleaving of images and text.
158
-
159
- This is meant to be a completely raw, unprocessed representation of the text.
160
- Don't take stuff out.
161
- """
162
-
163
- role: Required[Literal["user", "system", "assistant"]]
164
-
165
-
166
- class MetadataFormatterSpecificImageMetaImageMeta(TypedDict, total=False):
167
- image: Required[Optional[str]]
168
-
169
- document_name: Optional[str]
170
-
171
- document_page: Optional[int]
172
-
173
- ocr_content: Optional[str]
174
-
175
-
176
- class MetadataFormatterSpecificImageMeta(TypedDict, total=False):
177
- image_meta: Required[Annotated[MetadataFormatterSpecificImageMetaImageMeta, PropertyInfo(alias="ImageMeta")]]
178
-
179
-
180
- class MetadataFormatterSpecificWebMetaWebMetaFlag(TypedDict, total=False):
181
- aria_label: Required[Annotated[str, PropertyInfo(alias="ariaLabel")]]
182
-
183
- type: Required[str]
184
-
185
- x: Required[float]
186
-
187
- y: Required[float]
188
-
189
- height: float
190
-
191
- href: Optional[str]
192
-
193
- is_interactive: Annotated[Optional[bool], PropertyInfo(alias="isInteractive")]
194
-
195
- number: Optional[int]
196
- """The number by which the flag is referred in image, prompt, and tool calls."""
197
-
198
- text: str
199
-
200
- width: float
201
- """
202
- The serde default here is to give us backwards compatibility it's fine for these
203
- to be anything as long as the image isn't given since it won't regenerate.
204
- """
205
-
206
-
207
- class MetadataFormatterSpecificWebMetaWebMeta(TypedDict, total=False):
208
- flags: Required[Iterable[MetadataFormatterSpecificWebMetaWebMetaFlag]]
209
-
210
- url: Required[str]
211
-
212
- ocr_content: Optional[str]
213
-
214
- screenshot: Optional[FileTypes]
215
-
216
-
217
- class MetadataFormatterSpecificWebMeta(TypedDict, total=False):
218
- web_meta: Required[Annotated[MetadataFormatterSpecificWebMetaWebMeta, PropertyInfo(alias="WebMeta")]]
219
-
220
-
221
- class MetadataFormatterSpecificTextMetaTextMeta(TypedDict, total=False):
222
- text: Required[str]
223
-
224
-
225
- class MetadataFormatterSpecificTextMeta(TypedDict, total=False):
226
- text_meta: Required[Annotated[MetadataFormatterSpecificTextMetaTextMeta, PropertyInfo(alias="TextMeta")]]
227
-
228
-
229
- class MetadataFormatterSpecificScraperMetaScraperMeta(TypedDict, total=False):
230
- html_content: Required[str]
231
-
232
- url: Required[str]
233
-
234
-
235
- class MetadataFormatterSpecificScraperMeta(TypedDict, total=False):
236
- scraper_meta: Required[
237
- Annotated[MetadataFormatterSpecificScraperMetaScraperMeta, PropertyInfo(alias="ScraperMeta")]
238
- ]
239
-
240
-
241
- MetadataFormatterSpecific: TypeAlias = Union[
242
- MetadataFormatterSpecificImageMeta,
243
- MetadataFormatterSpecificWebMeta,
244
- MetadataFormatterSpecificTextMeta,
245
- MetadataFormatterSpecificScraperMeta,
246
- ]
247
-
248
-
249
- class Metadata(TypedDict, total=False):
250
- dataset_descriptor: Required[DatasetDescriptorParam]
251
- """A dataset is where you put multiple referential schemas.
252
-
253
- A dataset is a complete namespace where all references between schemas are held
254
- within the dataset.
255
- """
256
-
257
- extracted_entities: Required[Iterable[KnowledgeGraphParam]]
258
-
259
- extraction_criteria: Required[Iterable[SaveRequirementParam]]
260
-
261
- formatter_specific: Required[MetadataFormatterSpecific]
262
-
263
- tool_metadata: Required[Iterable[ToolMetadataParam]]
264
-
265
- qa_potentially_sus_response: Optional[str]
266
-
267
-
268
- class ChatPromptParam(TypedDict, total=False):
269
- decoding_params: Required[DecodingParams]
270
-
271
- messages: Required[Iterable[Message]]
272
-
273
- metadata: Required[Metadata]
274
- """All metadata required to generate a prompt for the LLM"""
@@ -1,10 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from .project import Project
4
- from .._models import BaseModel
5
-
6
- __all__ = ["CreateProjectResponse"]
7
-
8
-
9
- class CreateProjectResponse(BaseModel):
10
- project: Project
@@ -1,21 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- from typing_extensions import Required, TypedDict
6
-
7
- from .._types import FileTypes
8
- from .dataset_descriptor_param import DatasetDescriptorParam
9
-
10
- __all__ = ["DocumentStructureParams"]
11
-
12
-
13
- class DocumentStructureParams(TypedDict, total=False):
14
- dataset_descriptor: Required[DatasetDescriptorParam]
15
- """A dataset is where you put multiple referential schemas.
16
-
17
- A dataset is a complete namespace where all references between schemas are held
18
- within the dataset.
19
- """
20
-
21
- content: Required[FileTypes]