structifyai 1.158.0__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 (364) hide show
  1. structify/_base_client.py +140 -11
  2. structify/_client.py +1116 -253
  3. structify/_models.py +16 -1
  4. structify/_streaming.py +12 -10
  5. structify/_types.py +12 -2
  6. structify/_version.py +1 -1
  7. structify/lib/__init__.py +5 -0
  8. structify/lib/cost_confirmation.py +63 -0
  9. structify/pagination.py +63 -1
  10. structify/resources/__init__.py +57 -27
  11. structify/resources/admin/__init__.py +26 -40
  12. structify/resources/admin/admin.py +39 -71
  13. structify/resources/admin/chat_templates.py +382 -0
  14. structify/resources/admin/jobs.py +76 -3
  15. structify/resources/admin/sandbox.py +184 -0
  16. structify/resources/admin/teams.py +88 -0
  17. structify/resources/admin/users.py +28 -238
  18. structify/resources/chat.py +232 -0
  19. structify/resources/connector_catalog/__init__.py +33 -0
  20. structify/resources/connector_catalog/admin.py +1510 -0
  21. structify/resources/connector_catalog/connector_catalog.py +394 -0
  22. structify/resources/connectors/__init__.py +33 -0
  23. structify/resources/{connectors.py → connectors/connectors.py} +1155 -325
  24. structify/resources/connectors/type_snippets.py +169 -0
  25. structify/resources/datasets/datasets.py +0 -4
  26. structify/resources/documents.py +1 -123
  27. structify/resources/external.py +35 -2
  28. structify/resources/jobs.py +19 -336
  29. structify/resources/nango.py +234 -0
  30. structify/resources/polars.py +225 -103
  31. structify/resources/sandbox.py +13 -110
  32. structify/resources/scrape.py +0 -16
  33. structify/resources/sessions.py +241 -153
  34. structify/resources/slack.py +1 -151
  35. structify/resources/structure.py +120 -48
  36. structify/resources/teams.py +96 -0
  37. structify/resources/user/__init__.py +14 -0
  38. structify/resources/user/api_keys.py +380 -0
  39. structify/resources/user/user.py +209 -2
  40. structify/resources/whitelabel.py +294 -187
  41. structify/resources/whitelabel_service.py +222 -0
  42. structify/resources/{report.py → wiki.py} +237 -210
  43. structify/resources/workflow_schedule.py +4 -5
  44. structify/types/__init__.py +67 -36
  45. structify/types/add_member_response.py +35 -4
  46. structify/types/admin/__init__.py +13 -88
  47. structify/types/admin/admin_dataset_return.py +6 -0
  48. structify/types/admin/{user_get_credits_response.py → admin_delete_jobs_response.py} +3 -3
  49. structify/types/admin/admin_list_jobs_response.py +35 -1
  50. structify/types/admin/admin_sandbox.py +38 -0
  51. structify/types/admin/chat_template_create_params.py +21 -0
  52. structify/types/admin/{human_llm_start_next_job_params.py → chat_template_list_params.py} +3 -3
  53. structify/types/admin/{human_llm_get_jobs_response.py → chat_template_list_response.py} +3 -3
  54. structify/types/admin/chat_template_update_params.py +22 -0
  55. structify/types/admin/{user_add_credits_response.py → expire_grants_response.py} +5 -3
  56. structify/types/admin/impersonate_response.py +17 -0
  57. structify/types/admin/{next_action_get_batched_training_data_params.py → job_delete_params.py} +2 -2
  58. structify/types/admin/{user_get_credits_params.py → sandbox_list_params.py} +4 -4
  59. structify/types/admin/sandbox_type.py +7 -0
  60. structify/types/admin/{user_set_credits_params.py → team_expire_grants_params.py} +4 -4
  61. structify/types/admin/user.py +16 -0
  62. structify/types/admin/user_create_params.py +1 -0
  63. structify/types/admin/{training_dataset_delete_params.py → user_impersonate_params.py} +3 -3
  64. structify/types/admin/user_list_response.py +14 -4
  65. structify/types/admin_grant_access_response.py +2 -0
  66. structify/types/{slack_user_mapping_response.py → admin_issue_found_response.py} +3 -5
  67. structify/types/chat_add_git_commit_response.py +2 -0
  68. structify/types/{admin/human_llm_get_next_step_params.py → chat_admin_issue_found_params.py} +4 -4
  69. structify/types/chat_create_session_params.py +7 -0
  70. structify/types/chat_dependency.py +17 -0
  71. structify/types/chat_event.py +51 -239
  72. structify/types/chat_get_git_commit_response.py +2 -0
  73. structify/types/chat_get_session_timeline_response.py +31 -1
  74. structify/types/{job_get_steps_response.py → chat_list_templates_response.py} +3 -3
  75. structify/types/chat_prompt.py +2 -0
  76. structify/types/chat_revert_to_commit_response.py +2 -0
  77. structify/types/chat_session.py +14 -0
  78. structify/types/chat_session_with_messages.py +33 -1
  79. structify/types/chat_template.py +31 -0
  80. structify/types/chat_update_session_params.py +2 -0
  81. structify/types/code_generate_code_params.py +7 -0
  82. structify/types/connector.py +16 -25
  83. structify/types/connector_auth_method.py +29 -0
  84. structify/types/connector_auth_method_with_fields.py +15 -0
  85. structify/types/connector_catalog/__init__.py +32 -0
  86. structify/types/connector_catalog/admin_batch_create_credential_fields_params.py +14 -0
  87. structify/types/connector_catalog/admin_batch_create_credential_fields_response.py +10 -0
  88. structify/types/connector_catalog/admin_batch_create_scopes_params.py +14 -0
  89. structify/types/connector_catalog/admin_create_auth_method_params.py +22 -0
  90. structify/types/connector_catalog/admin_create_catalog_params.py +22 -0
  91. structify/types/connector_catalog/admin_create_credential_field_params.py +28 -0
  92. structify/types/connector_catalog/admin_create_scope_params.py +19 -0
  93. structify/types/connector_catalog/admin_list_nango_pending_response.py +10 -0
  94. structify/types/{admin/training_dataset_get_datum_info_params.py → connector_catalog/admin_list_scopes_params.py} +3 -3
  95. structify/types/connector_catalog/admin_update_auth_method_params.py +16 -0
  96. structify/types/connector_catalog/admin_update_catalog_params.py +20 -0
  97. structify/types/connector_catalog/admin_update_credential_field_params.py +26 -0
  98. structify/types/connector_catalog/admin_update_scope_params.py +18 -0
  99. structify/types/connector_catalog/admin_upload_logo_params.py +13 -0
  100. structify/types/connector_catalog/batch_create_scopes_response.py +12 -0
  101. structify/types/connector_catalog/connector_auth_method_scope.py +25 -0
  102. structify/types/connector_catalog/connector_catalog.py +26 -0
  103. structify/types/connector_catalog/create_credential_field_request_param.py +28 -0
  104. structify/types/connector_catalog/create_scope_request_param.py +19 -0
  105. structify/types/connector_catalog/list_scopes_response.py +12 -0
  106. structify/types/connector_catalog/pending_nango_integration.py +17 -0
  107. structify/types/{admin/user_set_credits_response.py → connector_catalog/upload_logo_response.py} +3 -3
  108. structify/types/connector_catalog_list_params.py +20 -0
  109. structify/types/connector_catalog_list_response.py +22 -0
  110. structify/types/connector_catalog_with_methods.py +15 -0
  111. structify/types/connector_category.py +7 -0
  112. structify/types/connector_create_params.py +11 -25
  113. structify/types/connector_credential_field.py +34 -0
  114. structify/types/connector_delete_schema_object_params.py +35 -0
  115. structify/types/connector_explore_params.py +19 -0
  116. structify/types/connector_explorer_chat.py +9 -84
  117. structify/types/connector_get_clarification_requests_response.py +36 -0
  118. structify/types/connector_get_response.py +2 -0
  119. structify/types/connector_list_with_snippets_params.py +12 -0
  120. structify/types/connector_list_with_snippets_response.py +10 -0
  121. structify/types/connector_search_tables_params.py +15 -0
  122. structify/types/connector_search_tables_response.py +160 -0
  123. structify/types/connector_store_response.py +21 -0
  124. structify/types/connector_summaries_params.py +15 -0
  125. structify/types/connector_summaries_response.py +10 -0
  126. structify/types/connector_summary.py +16 -0
  127. structify/types/connector_table_info.py +15 -0
  128. structify/types/connector_update_column_params.py +12 -0
  129. structify/types/connector_update_params.py +4 -25
  130. structify/types/connector_update_table_params.py +14 -0
  131. structify/types/connector_with_secrets.py +2 -0
  132. structify/types/connector_with_snippets.py +11 -0
  133. structify/types/connectors/__init__.py +6 -0
  134. structify/types/connectors/snippet.py +20 -0
  135. structify/types/connectors/type_snippet_upsert_params.py +12 -0
  136. structify/types/create_chat_session_response.py +2 -0
  137. structify/types/dataset_create_params.py +0 -2
  138. structify/types/dataset_descriptor.py +6 -0
  139. structify/types/dataset_descriptor_param.py +6 -0
  140. structify/types/dataset_get_response.py +6 -0
  141. structify/types/dataset_list_response.py +6 -0
  142. structify/types/dataset_view_table_response.py +3 -1
  143. structify/types/delete_chat_session_response.py +2 -0
  144. structify/types/delete_schema_object_request_param.py +35 -0
  145. structify/types/delete_schema_object_response.py +13 -0
  146. structify/types/edge_spec_param.py +13 -0
  147. structify/types/entity_get_source_entities_response.py +0 -2
  148. structify/types/entity_list_jobs_response.py +3 -3
  149. structify/types/entity_view_response.py +0 -2
  150. structify/types/estimate_cost_response.py +9 -0
  151. structify/types/exploration_phase_id.py +79 -0
  152. structify/types/finalize_dag_response.py +11 -0
  153. structify/types/get_chat_session_response.py +14 -6
  154. structify/types/get_dependencies_response.py +15 -0
  155. structify/types/get_job_events_response.py +20 -0
  156. structify/types/get_node_response.py +10 -0
  157. structify/types/job_cancel_response.py +3 -3
  158. structify/types/job_event_body.py +108 -1
  159. structify/types/job_get_source_entities_response.py +0 -2
  160. structify/types/job_list_params.py +1 -1
  161. structify/types/job_list_response.py +35 -1
  162. structify/types/knowledge_graph.py +6 -0
  163. structify/types/knowledge_graph_param.py +6 -0
  164. structify/types/list_chat_sessions_response.py +2 -0
  165. structify/types/list_collaborators_response.py +4 -0
  166. structify/types/list_tables_response.py +12 -0
  167. structify/types/llm_information_store.py +62 -28
  168. structify/types/merge_config.py +2 -0
  169. structify/types/merge_config_param.py +2 -0
  170. structify/types/message.py +2 -0
  171. structify/types/nango_create_session_params.py +21 -0
  172. structify/types/nango_create_session_response.py +15 -0
  173. structify/types/nango_list_integrations_response.py +28 -0
  174. structify/types/{session_create_node_params.py → node_spec_param.py} +4 -4
  175. structify/types/refresh_session_response.py +15 -0
  176. structify/types/sandbox.py +8 -2
  177. structify/types/sandbox_get_params.py +2 -1
  178. structify/types/scrape_list_params.py +1 -22
  179. structify/types/scrape_list_response.py +2 -0
  180. structify/types/scrape_scrape_params.py +1 -14
  181. structify/types/scrape_scrape_response.py +2 -0
  182. structify/types/select_team_response.py +3 -1
  183. structify/types/{connector_approve_version_params.py → session_confirm_node_params.py} +3 -3
  184. structify/types/session_finalize_dag_params.py +20 -0
  185. structify/types/session_get_events_response.py +2 -0
  186. structify/types/session_request_confirmation_params.py +13 -0
  187. structify/types/session_upload_node_output_data_params.py +3 -0
  188. structify/types/slack_event_payload_param.py +18 -2
  189. structify/types/slack_events_params.py +18 -2
  190. structify/types/source_list_response.py +0 -2
  191. structify/types/structure_enhance_property_params.py +2 -17
  192. structify/types/structure_enhance_relationship_params.py +2 -17
  193. structify/types/structure_find_relationship_params.py +2 -18
  194. structify/types/structure_pdf_params.py +22 -0
  195. structify/types/structure_pdf_response.py +11 -0
  196. structify/types/structure_run_async_params.py +10 -17
  197. structify/types/table.py +2 -0
  198. structify/types/table_param.py +2 -0
  199. structify/types/team.py +14 -0
  200. structify/types/{admin/training_dataset_remove_datum_params.py → team_create_link_code_params.py} +3 -3
  201. structify/types/team_update_params.py +10 -0
  202. structify/types/team_wiki_page.py +28 -0
  203. structify/types/teams_link_code_response.py +13 -0
  204. structify/types/token_response.py +6 -2
  205. structify/types/tool_invocation.py +468 -0
  206. structify/types/tool_result.py +99 -0
  207. structify/types/update_table_response.py +46 -0
  208. structify/types/usage_group_key.py +14 -1
  209. structify/types/user/__init__.py +4 -0
  210. structify/types/{admin/training_dataset_size_params.py → user/api_key_create_params.py} +5 -5
  211. structify/types/user/api_key_info.py +24 -0
  212. structify/types/user/create_api_key_response.py +12 -0
  213. structify/types/user/list_api_keys_response.py +12 -0
  214. structify/types/user_enrich_params.py +11 -0
  215. structify/types/user_info.py +22 -0
  216. structify/types/user_refresh_params.py +13 -0
  217. structify/types/user_transactions_response.py +5 -5
  218. structify/types/user_update_params.py +32 -12
  219. structify/types/user_usage_response.py +0 -2
  220. structify/types/wiki_connector_reference.py +63 -0
  221. structify/types/wiki_create_params.py +16 -0
  222. structify/types/{admin/training_dataset_list_response.py → wiki_list_response.py} +4 -2
  223. structify/types/wiki_page_with_references.py +12 -0
  224. structify/types/wiki_update_params.py +16 -0
  225. structify/types/workflow_dag.py +2 -0
  226. structify/types/workflow_node_execution_status.py +3 -1
  227. structify/types/workflow_schedule_info.py +2 -2
  228. structify/types/workflow_session_node.py +10 -0
  229. {structifyai-1.158.0.dist-info → structifyai-1.176.1.dist-info}/METADATA +67 -4
  230. structifyai-1.176.1.dist-info/RECORD +496 -0
  231. {structifyai-1.158.0.dist-info → structifyai-1.176.1.dist-info}/licenses/LICENSE +1 -1
  232. structify/resources/admin/human_llm.py +0 -819
  233. structify/resources/admin/next_action.py +0 -656
  234. structify/resources/admin/training_datasets.py +0 -2028
  235. structify/resources/external/__init__.py +0 -61
  236. structify/resources/external/external.py +0 -166
  237. structify/resources/external/news.py +0 -519
  238. structify/resources/external/people.py +0 -998
  239. structify/resources/external/search_api.py +0 -1525
  240. structify/types/active_version_data.py +0 -21
  241. structify/types/active_version_response.py +0 -13
  242. structify/types/admin/action_training_data_entry.py +0 -219
  243. structify/types/admin/action_training_data_response.py +0 -12
  244. structify/types/admin/datum_status.py +0 -19
  245. structify/types/admin/delete_action_training_data_response.py +0 -9
  246. structify/types/admin/human_llm_add_search_for_job_params.py +0 -13
  247. structify/types/admin/human_llm_add_to_dataset_params.py +0 -186
  248. structify/types/admin/human_llm_finish_job_params.py +0 -13
  249. structify/types/admin/human_llm_get_jobs_params.py +0 -12
  250. structify/types/admin/human_llm_get_next_step_response.py +0 -196
  251. structify/types/admin/human_llm_job.py +0 -73
  252. structify/types/admin/human_llm_prelabel_step_response.py +0 -184
  253. structify/types/admin/human_llm_update_step_params.py +0 -186
  254. structify/types/admin/labeling_stats.py +0 -24
  255. structify/types/admin/next_action_add_training_datum_params.py +0 -203
  256. structify/types/admin/next_action_delete_training_data_params.py +0 -12
  257. structify/types/admin/next_action_get_training_data_params.py +0 -25
  258. structify/types/admin/next_action_get_training_datum_params.py +0 -12
  259. structify/types/admin/next_action_label_training_datum_params.py +0 -90
  260. structify/types/admin/step_choices.py +0 -32
  261. structify/types/admin/training_dataset_add_datum_params.py +0 -13
  262. structify/types/admin/training_dataset_add_params.py +0 -12
  263. structify/types/admin/training_dataset_download_datum_params.py +0 -13
  264. structify/types/admin/training_dataset_get_labeller_stats_params.py +0 -23
  265. structify/types/admin/training_dataset_get_labeller_stats_response.py +0 -10
  266. structify/types/admin/training_dataset_get_next_for_labeling_params.py +0 -15
  267. structify/types/admin/training_dataset_get_next_for_qa_params.py +0 -18
  268. structify/types/admin/training_dataset_get_next_suspicious_params.py +0 -23
  269. structify/types/admin/training_dataset_label_datum_params.py +0 -188
  270. structify/types/admin/training_dataset_list_datums_params.py +0 -17
  271. structify/types/admin/training_dataset_list_datums_response.py +0 -33
  272. structify/types/admin/training_dataset_mark_datum_suspicious_params.py +0 -19
  273. structify/types/admin/training_dataset_size_response.py +0 -37
  274. structify/types/admin/training_dataset_suspicious_count_params.py +0 -23
  275. structify/types/admin/training_dataset_suspicious_count_response.py +0 -9
  276. structify/types/admin/training_dataset_switch_dataset_params.py +0 -13
  277. structify/types/admin/training_dataset_update_datum_status_params.py +0 -18
  278. structify/types/admin/training_dataset_upload_labeled_step_params.py +0 -15
  279. structify/types/admin/training_dataset_verify_datum_params.py +0 -17
  280. structify/types/admin/training_datum_response.py +0 -405
  281. structify/types/admin/user_add_credits_params.py +0 -18
  282. structify/types/chat_prompt_param.py +0 -255
  283. structify/types/connector_column_descriptor.py +0 -21
  284. structify/types/connector_relational_database_descriptor.py +0 -13
  285. structify/types/connector_table_descriptor.py +0 -22
  286. structify/types/document_structure_params.py +0 -21
  287. structify/types/document_structure_response.py +0 -8
  288. structify/types/execution_step.py +0 -198
  289. structify/types/external/__init__.py +0 -96
  290. structify/types/external/companies_search_response.py +0 -28
  291. structify/types/external/company_search_result.py +0 -69
  292. structify/types/external/enriched_organization.py +0 -69
  293. structify/types/external/everything_response.py +0 -19
  294. structify/types/external/google_maps_result.py +0 -38
  295. structify/types/external/google_search_response.py +0 -19
  296. structify/types/external/google_search_result.py +0 -21
  297. structify/types/external/job_posting.py +0 -54
  298. structify/types/external/job_postings_response.py +0 -19
  299. structify/types/external/location_coordinates.py +0 -13
  300. structify/types/external/location_response.py +0 -16
  301. structify/types/external/location_result.py +0 -24
  302. structify/types/external/news_article.py +0 -33
  303. structify/types/external/news_everything_params.py +0 -45
  304. structify/types/external/news_source.py +0 -15
  305. structify/types/external/news_source_detail.py +0 -28
  306. structify/types/external/news_sources_params.py +0 -19
  307. structify/types/external/news_top_headlines_params.py +0 -28
  308. structify/types/external/organization_detail.py +0 -87
  309. structify/types/external/people_match_response.py +0 -18
  310. structify/types/external/people_search_response.py +0 -28
  311. structify/types/external/person_companies_search_params.py +0 -63
  312. structify/types/external/person_match.py +0 -60
  313. structify/types/external/person_organization_job_postings_params.py +0 -16
  314. structify/types/external/person_organizations_enrich_params.py +0 -16
  315. structify/types/external/person_people_match_params.py +0 -49
  316. structify/types/external/person_people_search_params.py +0 -57
  317. structify/types/external/person_search_result.py +0 -48
  318. structify/types/external/search_api_google_flights_calendar_params.py +0 -28
  319. structify/types/external/search_api_google_flights_calendar_response.py +0 -8
  320. structify/types/external/search_api_google_flights_location_search_params.py +0 -16
  321. structify/types/external/search_api_google_flights_location_search_response.py +0 -8
  322. structify/types/external/search_api_google_flights_search_params.py +0 -43
  323. structify/types/external/search_api_google_flights_search_response.py +0 -8
  324. structify/types/external/search_api_google_maps_place_details_params.py +0 -16
  325. structify/types/external/search_api_google_maps_place_details_response.py +0 -8
  326. structify/types/external/search_api_google_maps_place_photos_params.py +0 -16
  327. structify/types/external/search_api_google_maps_place_photos_response.py +0 -8
  328. structify/types/external/search_api_google_maps_place_reviews_params.py +0 -19
  329. structify/types/external/search_api_google_maps_place_reviews_response.py +0 -8
  330. structify/types/external/search_api_google_maps_search_params.py +0 -22
  331. structify/types/external/search_api_google_maps_search_response.py +0 -10
  332. structify/types/external/search_api_google_scholar_author_search_params.py +0 -22
  333. structify/types/external/search_api_google_scholar_author_search_response.py +0 -8
  334. structify/types/external/search_api_google_scholar_citations_params.py +0 -22
  335. structify/types/external/search_api_google_scholar_citations_response.py +0 -8
  336. structify/types/external/search_api_google_scholar_search_params.py +0 -28
  337. structify/types/external/search_api_google_scholar_search_response.py +0 -8
  338. structify/types/external/search_api_google_search_params.py +0 -25
  339. structify/types/external/search_api_location_search_params.py +0 -22
  340. structify/types/external/sources_response.py +0 -16
  341. structify/types/external/top_headlines_response.py +0 -19
  342. structify/types/job_delete_response.py +0 -7
  343. structify/types/job_get_response.py +0 -62
  344. structify/types/job_get_step_graph_response.py +0 -233
  345. structify/types/job_get_step_response.py +0 -196
  346. structify/types/message_param.py +0 -35
  347. structify/types/pending_version_response.py +0 -21
  348. structify/types/report_missing_params.py +0 -18
  349. structify/types/report_missing_response.py +0 -7
  350. structify/types/report_relationship_params.py +0 -18
  351. structify/types/report_relationship_response.py +0 -7
  352. structify/types/report_step_params.py +0 -15
  353. structify/types/report_step_response.py +0 -7
  354. structify/types/report_wrong_params.py +0 -18
  355. structify/types/report_wrong_response.py +0 -7
  356. structify/types/sandbox_create_params.py +0 -20
  357. structify/types/session_create_edge_params.py +0 -13
  358. structify/types/slack_connection_status.py +0 -15
  359. structify/types/slack_user_mapping_params.py +0 -18
  360. structify/types/tool_metadata_param.py +0 -17
  361. structify/types/user_team.py +0 -35
  362. structify/types/workflow_schedule_get_response.py +0 -10
  363. structifyai-1.158.0.dist-info/RECORD +0 -530
  364. {structifyai-1.158.0.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,18 +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 Optional
6
- from typing_extensions import Required, TypedDict
7
-
8
- __all__ = ["UserAddCreditsParams"]
9
-
10
-
11
- class UserAddCreditsParams(TypedDict, total=False):
12
- credit_amount: Required[int]
13
-
14
- user_email: Required[str]
15
-
16
- source_type: Optional[str]
17
-
18
- valid_for_days: Optional[int]
@@ -1,255 +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, Union, Iterable, Optional
6
- from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
7
-
8
- from .._types import FileTypes, SequenceNotStr
9
- from .._utils import PropertyInfo
10
- from .message_param import MessageParam
11
- from .tool_metadata_param import ToolMetadataParam
12
- from .knowledge_graph_param import KnowledgeGraphParam
13
- from .save_requirement_param import SaveRequirementParam
14
- from .dataset_descriptor_param import DatasetDescriptorParam
15
-
16
- __all__ = [
17
- "ChatPromptParam",
18
- "DecodingParams",
19
- "DecodingParamsParameter",
20
- "DecodingParamsParameterMaxTokens",
21
- "DecodingParamsParameterMaxCompletionTokens",
22
- "DecodingParamsParameterTopP",
23
- "DecodingParamsParameterRepeatWindow",
24
- "DecodingParamsParameterRepeatPenalty",
25
- "DecodingParamsParameterTemperature",
26
- "DecodingParamsParameterStopTokens",
27
- "DecodingParamsParameterLogitBias",
28
- "DecodingParamsParameterFunctions",
29
- "DecodingParamsParameterJsonValidator",
30
- "DecodingParamsParameterRegexValidator",
31
- "DecodingParamsParameterContextFreeGrammar",
32
- "DecodingParamsParameterNumBeams",
33
- "DecodingParamsParameterCrop",
34
- "DecodingParamsParameterThinking",
35
- "DecodingParamsParameterVerbosity",
36
- "DecodingParamsParameterReasoningEffort",
37
- "Metadata",
38
- "MetadataFormatterSpecific",
39
- "MetadataFormatterSpecificImageMeta",
40
- "MetadataFormatterSpecificImageMetaImageMeta",
41
- "MetadataFormatterSpecificWebMeta",
42
- "MetadataFormatterSpecificWebMetaWebMeta",
43
- "MetadataFormatterSpecificWebMetaWebMetaFlag",
44
- "MetadataFormatterSpecificTextMeta",
45
- "MetadataFormatterSpecificTextMetaTextMeta",
46
- "MetadataFormatterSpecificScraperMeta",
47
- "MetadataFormatterSpecificScraperMetaScraperMeta",
48
- ]
49
-
50
-
51
- class DecodingParamsParameterMaxTokens(TypedDict, total=False):
52
- max_tokens: Required[Annotated[int, PropertyInfo(alias="MaxTokens")]]
53
-
54
-
55
- class DecodingParamsParameterMaxCompletionTokens(TypedDict, total=False):
56
- max_completion_tokens: Required[Annotated[int, PropertyInfo(alias="MaxCompletionTokens")]]
57
-
58
-
59
- class DecodingParamsParameterTopP(TypedDict, total=False):
60
- top_p: Required[Annotated[float, PropertyInfo(alias="TopP")]]
61
-
62
-
63
- class DecodingParamsParameterRepeatWindow(TypedDict, total=False):
64
- repeat_window: Required[Annotated[int, PropertyInfo(alias="RepeatWindow")]]
65
-
66
-
67
- class DecodingParamsParameterRepeatPenalty(TypedDict, total=False):
68
- repeat_penalty: Required[Annotated[float, PropertyInfo(alias="RepeatPenalty")]]
69
-
70
-
71
- class DecodingParamsParameterTemperature(TypedDict, total=False):
72
- temperature: Required[Annotated[float, PropertyInfo(alias="Temperature")]]
73
-
74
-
75
- class DecodingParamsParameterStopTokens(TypedDict, total=False):
76
- stop_tokens: Required[Annotated[SequenceNotStr[str], PropertyInfo(alias="StopTokens")]]
77
-
78
-
79
- class DecodingParamsParameterLogitBias(TypedDict, total=False):
80
- logit_bias: Required[Annotated[Dict[str, float], PropertyInfo(alias="LogitBias")]]
81
-
82
-
83
- class DecodingParamsParameterFunctions(TypedDict, total=False):
84
- functions: Required[Annotated[Iterable[Dict[str, object]], PropertyInfo(alias="Functions")]]
85
-
86
-
87
- class DecodingParamsParameterJsonValidator(TypedDict, total=False):
88
- json_validator: Required[Annotated[Dict[str, object], PropertyInfo(alias="JsonValidator")]]
89
-
90
-
91
- class DecodingParamsParameterRegexValidator(TypedDict, total=False):
92
- regex_validator: Required[Annotated[str, PropertyInfo(alias="RegexValidator")]]
93
-
94
-
95
- class DecodingParamsParameterContextFreeGrammar(TypedDict, total=False):
96
- context_free_grammar: Required[Annotated[str, PropertyInfo(alias="ContextFreeGrammar")]]
97
-
98
-
99
- class DecodingParamsParameterNumBeams(TypedDict, total=False):
100
- num_beams: Required[Annotated[int, PropertyInfo(alias="NumBeams")]]
101
-
102
-
103
- class DecodingParamsParameterCrop(TypedDict, total=False):
104
- crop: Required[Annotated[bool, PropertyInfo(alias="Crop")]]
105
-
106
-
107
- class DecodingParamsParameterThinking(TypedDict, total=False):
108
- thinking: Required[Annotated[int, PropertyInfo(alias="Thinking")]]
109
- """Thinking tokens for Claude 3.7. Contains the budget in tokens for thinking."""
110
-
111
-
112
- class DecodingParamsParameterVerbosity(TypedDict, total=False):
113
- verbosity: Required[Annotated[Literal["low", "medium", "high"], PropertyInfo(alias="Verbosity")]]
114
-
115
-
116
- class DecodingParamsParameterReasoningEffort(TypedDict, total=False):
117
- reasoning_effort: Required[
118
- Annotated[Literal["low", "medium", "high", "minimal"], PropertyInfo(alias="ReasoningEffort")]
119
- ]
120
-
121
-
122
- DecodingParamsParameter: TypeAlias = Union[
123
- DecodingParamsParameterMaxTokens,
124
- DecodingParamsParameterMaxCompletionTokens,
125
- DecodingParamsParameterTopP,
126
- DecodingParamsParameterRepeatWindow,
127
- DecodingParamsParameterRepeatPenalty,
128
- DecodingParamsParameterTemperature,
129
- DecodingParamsParameterStopTokens,
130
- DecodingParamsParameterLogitBias,
131
- DecodingParamsParameterFunctions,
132
- DecodingParamsParameterJsonValidator,
133
- DecodingParamsParameterRegexValidator,
134
- DecodingParamsParameterContextFreeGrammar,
135
- DecodingParamsParameterNumBeams,
136
- DecodingParamsParameterCrop,
137
- DecodingParamsParameterThinking,
138
- DecodingParamsParameterVerbosity,
139
- DecodingParamsParameterReasoningEffort,
140
- ]
141
-
142
-
143
- class DecodingParams(TypedDict, total=False):
144
- parameters: Required[Iterable[DecodingParamsParameter]]
145
-
146
-
147
- class MetadataFormatterSpecificImageMetaImageMeta(TypedDict, total=False):
148
- image: Required[Optional[str]]
149
-
150
- document_name: Optional[str]
151
-
152
- document_page: Optional[int]
153
-
154
- ocr_content: Optional[str]
155
-
156
-
157
- class MetadataFormatterSpecificImageMeta(TypedDict, total=False):
158
- image_meta: Required[Annotated[MetadataFormatterSpecificImageMetaImageMeta, PropertyInfo(alias="ImageMeta")]]
159
-
160
-
161
- class MetadataFormatterSpecificWebMetaWebMetaFlag(TypedDict, total=False):
162
- aria_label: Required[Annotated[str, PropertyInfo(alias="ariaLabel")]]
163
-
164
- type: Required[str]
165
-
166
- x: Required[float]
167
-
168
- y: Required[float]
169
-
170
- height: float
171
-
172
- href: Optional[str]
173
-
174
- is_interactive: Annotated[Optional[bool], PropertyInfo(alias="isInteractive")]
175
-
176
- number: Optional[int]
177
- """The number by which the flag is referred in image, prompt, and tool calls."""
178
-
179
- text: str
180
-
181
- width: float
182
- """
183
- The serde default here is to give us backwards compatibility it's fine for these
184
- to be anything as long as the image isn't given since it won't regenerate.
185
- """
186
-
187
-
188
- class MetadataFormatterSpecificWebMetaWebMeta(TypedDict, total=False):
189
- flags: Required[Iterable[MetadataFormatterSpecificWebMetaWebMetaFlag]]
190
-
191
- url: Required[str]
192
-
193
- ocr_content: Optional[str]
194
-
195
- screenshot: Optional[FileTypes]
196
-
197
-
198
- class MetadataFormatterSpecificWebMeta(TypedDict, total=False):
199
- web_meta: Required[Annotated[MetadataFormatterSpecificWebMetaWebMeta, PropertyInfo(alias="WebMeta")]]
200
-
201
-
202
- class MetadataFormatterSpecificTextMetaTextMeta(TypedDict, total=False):
203
- text: Required[str]
204
-
205
-
206
- class MetadataFormatterSpecificTextMeta(TypedDict, total=False):
207
- text_meta: Required[Annotated[MetadataFormatterSpecificTextMetaTextMeta, PropertyInfo(alias="TextMeta")]]
208
-
209
-
210
- class MetadataFormatterSpecificScraperMetaScraperMeta(TypedDict, total=False):
211
- html_content: Required[str]
212
-
213
- url: Required[str]
214
-
215
-
216
- class MetadataFormatterSpecificScraperMeta(TypedDict, total=False):
217
- scraper_meta: Required[
218
- Annotated[MetadataFormatterSpecificScraperMetaScraperMeta, PropertyInfo(alias="ScraperMeta")]
219
- ]
220
-
221
-
222
- MetadataFormatterSpecific: TypeAlias = Union[
223
- MetadataFormatterSpecificImageMeta,
224
- MetadataFormatterSpecificWebMeta,
225
- MetadataFormatterSpecificTextMeta,
226
- MetadataFormatterSpecificScraperMeta,
227
- ]
228
-
229
-
230
- class Metadata(TypedDict, total=False):
231
- dataset_descriptor: Required[DatasetDescriptorParam]
232
- """A dataset is where you put multiple referential schemas.
233
-
234
- A dataset is a complete namespace where all references between schemas are held
235
- within the dataset.
236
- """
237
-
238
- extracted_entities: Required[Iterable[KnowledgeGraphParam]]
239
-
240
- extraction_criteria: Required[Iterable[SaveRequirementParam]]
241
-
242
- formatter_specific: Required[MetadataFormatterSpecific]
243
-
244
- tool_metadata: Required[Iterable[ToolMetadataParam]]
245
-
246
- qa_potentially_sus_response: Optional[str]
247
-
248
-
249
- class ChatPromptParam(TypedDict, total=False):
250
- decoding_params: Required[DecodingParams]
251
-
252
- messages: Required[Iterable[MessageParam]]
253
-
254
- metadata: Required[Metadata]
255
- """All metadata required to generate a prompt for the LLM"""
@@ -1,21 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import Optional
4
-
5
- from .._models import BaseModel
6
-
7
- __all__ = ["ConnectorColumnDescriptor"]
8
-
9
-
10
- class ConnectorColumnDescriptor(BaseModel):
11
- name: str
12
- """Name of the column"""
13
-
14
- type: str
15
- """SQL type of the column (e.g., "VARCHAR(255)", "INTEGER", "TIMESTAMP")"""
16
-
17
- notes: Optional[str] = None
18
- """
19
- Additional notes about the column (e.g., "NOT NULL", "PRIMARY KEY", "UNIQUE",
20
- constraints)
21
- """