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.
- structify/_base_client.py +140 -11
- structify/_client.py +1116 -253
- structify/_models.py +16 -1
- structify/_streaming.py +12 -10
- structify/_types.py +12 -2
- structify/_version.py +1 -1
- structify/lib/__init__.py +5 -0
- structify/lib/cost_confirmation.py +63 -0
- structify/pagination.py +63 -1
- structify/resources/__init__.py +57 -27
- structify/resources/admin/__init__.py +26 -40
- structify/resources/admin/admin.py +39 -71
- structify/resources/admin/chat_templates.py +382 -0
- structify/resources/admin/jobs.py +76 -3
- structify/resources/admin/sandbox.py +184 -0
- structify/resources/admin/teams.py +88 -0
- structify/resources/admin/users.py +28 -238
- structify/resources/chat.py +232 -0
- structify/resources/connector_catalog/__init__.py +33 -0
- structify/resources/connector_catalog/admin.py +1510 -0
- structify/resources/connector_catalog/connector_catalog.py +394 -0
- structify/resources/connectors/__init__.py +33 -0
- structify/resources/{connectors.py → connectors/connectors.py} +1155 -325
- structify/resources/connectors/type_snippets.py +169 -0
- structify/resources/datasets/datasets.py +0 -4
- structify/resources/documents.py +1 -123
- structify/resources/external.py +35 -2
- structify/resources/jobs.py +19 -336
- structify/resources/nango.py +234 -0
- structify/resources/polars.py +225 -103
- structify/resources/sandbox.py +13 -110
- structify/resources/scrape.py +0 -16
- structify/resources/sessions.py +241 -153
- structify/resources/slack.py +1 -151
- structify/resources/structure.py +120 -48
- structify/resources/teams.py +96 -0
- structify/resources/user/__init__.py +14 -0
- structify/resources/user/api_keys.py +380 -0
- structify/resources/user/user.py +209 -2
- structify/resources/whitelabel.py +294 -187
- structify/resources/whitelabel_service.py +222 -0
- structify/resources/{report.py → wiki.py} +237 -210
- structify/resources/workflow_schedule.py +4 -5
- structify/types/__init__.py +67 -36
- structify/types/add_member_response.py +35 -4
- structify/types/admin/__init__.py +13 -88
- structify/types/admin/admin_dataset_return.py +6 -0
- structify/types/admin/{user_get_credits_response.py → admin_delete_jobs_response.py} +3 -3
- structify/types/admin/admin_list_jobs_response.py +35 -1
- structify/types/admin/admin_sandbox.py +38 -0
- structify/types/admin/chat_template_create_params.py +21 -0
- structify/types/admin/{human_llm_start_next_job_params.py → chat_template_list_params.py} +3 -3
- structify/types/admin/{human_llm_get_jobs_response.py → chat_template_list_response.py} +3 -3
- structify/types/admin/chat_template_update_params.py +22 -0
- structify/types/admin/{user_add_credits_response.py → expire_grants_response.py} +5 -3
- structify/types/admin/impersonate_response.py +17 -0
- structify/types/admin/{next_action_get_batched_training_data_params.py → job_delete_params.py} +2 -2
- structify/types/admin/{user_get_credits_params.py → sandbox_list_params.py} +4 -4
- structify/types/admin/sandbox_type.py +7 -0
- structify/types/admin/{user_set_credits_params.py → team_expire_grants_params.py} +4 -4
- structify/types/admin/user.py +16 -0
- structify/types/admin/user_create_params.py +1 -0
- structify/types/admin/{training_dataset_delete_params.py → user_impersonate_params.py} +3 -3
- structify/types/admin/user_list_response.py +14 -4
- structify/types/admin_grant_access_response.py +2 -0
- structify/types/{slack_user_mapping_response.py → admin_issue_found_response.py} +3 -5
- structify/types/chat_add_git_commit_response.py +2 -0
- structify/types/{admin/human_llm_get_next_step_params.py → chat_admin_issue_found_params.py} +4 -4
- structify/types/chat_create_session_params.py +7 -0
- structify/types/chat_dependency.py +17 -0
- structify/types/chat_event.py +51 -239
- structify/types/chat_get_git_commit_response.py +2 -0
- structify/types/chat_get_session_timeline_response.py +31 -1
- structify/types/{job_get_steps_response.py → chat_list_templates_response.py} +3 -3
- structify/types/chat_prompt.py +2 -0
- structify/types/chat_revert_to_commit_response.py +2 -0
- structify/types/chat_session.py +14 -0
- structify/types/chat_session_with_messages.py +33 -1
- structify/types/chat_template.py +31 -0
- structify/types/chat_update_session_params.py +2 -0
- structify/types/code_generate_code_params.py +7 -0
- structify/types/connector.py +16 -25
- structify/types/connector_auth_method.py +29 -0
- structify/types/connector_auth_method_with_fields.py +15 -0
- structify/types/connector_catalog/__init__.py +32 -0
- structify/types/connector_catalog/admin_batch_create_credential_fields_params.py +14 -0
- structify/types/connector_catalog/admin_batch_create_credential_fields_response.py +10 -0
- structify/types/connector_catalog/admin_batch_create_scopes_params.py +14 -0
- structify/types/connector_catalog/admin_create_auth_method_params.py +22 -0
- structify/types/connector_catalog/admin_create_catalog_params.py +22 -0
- structify/types/connector_catalog/admin_create_credential_field_params.py +28 -0
- structify/types/connector_catalog/admin_create_scope_params.py +19 -0
- structify/types/connector_catalog/admin_list_nango_pending_response.py +10 -0
- structify/types/{admin/training_dataset_get_datum_info_params.py → connector_catalog/admin_list_scopes_params.py} +3 -3
- structify/types/connector_catalog/admin_update_auth_method_params.py +16 -0
- structify/types/connector_catalog/admin_update_catalog_params.py +20 -0
- structify/types/connector_catalog/admin_update_credential_field_params.py +26 -0
- structify/types/connector_catalog/admin_update_scope_params.py +18 -0
- structify/types/connector_catalog/admin_upload_logo_params.py +13 -0
- structify/types/connector_catalog/batch_create_scopes_response.py +12 -0
- structify/types/connector_catalog/connector_auth_method_scope.py +25 -0
- structify/types/connector_catalog/connector_catalog.py +26 -0
- structify/types/connector_catalog/create_credential_field_request_param.py +28 -0
- structify/types/connector_catalog/create_scope_request_param.py +19 -0
- structify/types/connector_catalog/list_scopes_response.py +12 -0
- structify/types/connector_catalog/pending_nango_integration.py +17 -0
- structify/types/{admin/user_set_credits_response.py → connector_catalog/upload_logo_response.py} +3 -3
- structify/types/connector_catalog_list_params.py +20 -0
- structify/types/connector_catalog_list_response.py +22 -0
- structify/types/connector_catalog_with_methods.py +15 -0
- structify/types/connector_category.py +7 -0
- structify/types/connector_create_params.py +11 -25
- structify/types/connector_credential_field.py +34 -0
- structify/types/connector_delete_schema_object_params.py +35 -0
- structify/types/connector_explore_params.py +19 -0
- structify/types/connector_explorer_chat.py +9 -84
- structify/types/connector_get_clarification_requests_response.py +36 -0
- structify/types/connector_get_response.py +2 -0
- structify/types/connector_list_with_snippets_params.py +12 -0
- structify/types/connector_list_with_snippets_response.py +10 -0
- structify/types/connector_search_tables_params.py +15 -0
- structify/types/connector_search_tables_response.py +160 -0
- structify/types/connector_store_response.py +21 -0
- structify/types/connector_summaries_params.py +15 -0
- structify/types/connector_summaries_response.py +10 -0
- structify/types/connector_summary.py +16 -0
- structify/types/connector_table_info.py +15 -0
- structify/types/connector_update_column_params.py +12 -0
- structify/types/connector_update_params.py +4 -25
- structify/types/connector_update_table_params.py +14 -0
- structify/types/connector_with_secrets.py +2 -0
- structify/types/connector_with_snippets.py +11 -0
- structify/types/connectors/__init__.py +6 -0
- structify/types/connectors/snippet.py +20 -0
- structify/types/connectors/type_snippet_upsert_params.py +12 -0
- structify/types/create_chat_session_response.py +2 -0
- structify/types/dataset_create_params.py +0 -2
- structify/types/dataset_descriptor.py +6 -0
- structify/types/dataset_descriptor_param.py +6 -0
- structify/types/dataset_get_response.py +6 -0
- structify/types/dataset_list_response.py +6 -0
- structify/types/dataset_view_table_response.py +3 -1
- structify/types/delete_chat_session_response.py +2 -0
- structify/types/delete_schema_object_request_param.py +35 -0
- structify/types/delete_schema_object_response.py +13 -0
- structify/types/edge_spec_param.py +13 -0
- structify/types/entity_get_source_entities_response.py +0 -2
- structify/types/entity_list_jobs_response.py +3 -3
- structify/types/entity_view_response.py +0 -2
- structify/types/estimate_cost_response.py +9 -0
- structify/types/exploration_phase_id.py +79 -0
- structify/types/finalize_dag_response.py +11 -0
- structify/types/get_chat_session_response.py +14 -6
- structify/types/get_dependencies_response.py +15 -0
- structify/types/get_job_events_response.py +20 -0
- structify/types/get_node_response.py +10 -0
- structify/types/job_cancel_response.py +3 -3
- structify/types/job_event_body.py +108 -1
- structify/types/job_get_source_entities_response.py +0 -2
- structify/types/job_list_params.py +1 -1
- structify/types/job_list_response.py +35 -1
- structify/types/knowledge_graph.py +6 -0
- structify/types/knowledge_graph_param.py +6 -0
- structify/types/list_chat_sessions_response.py +2 -0
- structify/types/list_collaborators_response.py +4 -0
- structify/types/list_tables_response.py +12 -0
- structify/types/llm_information_store.py +62 -28
- structify/types/merge_config.py +2 -0
- structify/types/merge_config_param.py +2 -0
- structify/types/message.py +2 -0
- structify/types/nango_create_session_params.py +21 -0
- structify/types/nango_create_session_response.py +15 -0
- structify/types/nango_list_integrations_response.py +28 -0
- structify/types/{session_create_node_params.py → node_spec_param.py} +4 -4
- structify/types/refresh_session_response.py +15 -0
- structify/types/sandbox.py +8 -2
- structify/types/sandbox_get_params.py +2 -1
- structify/types/scrape_list_params.py +1 -22
- structify/types/scrape_list_response.py +2 -0
- structify/types/scrape_scrape_params.py +1 -14
- structify/types/scrape_scrape_response.py +2 -0
- structify/types/select_team_response.py +3 -1
- structify/types/{connector_approve_version_params.py → session_confirm_node_params.py} +3 -3
- structify/types/session_finalize_dag_params.py +20 -0
- structify/types/session_get_events_response.py +2 -0
- structify/types/session_request_confirmation_params.py +13 -0
- structify/types/session_upload_node_output_data_params.py +3 -0
- structify/types/slack_event_payload_param.py +18 -2
- structify/types/slack_events_params.py +18 -2
- structify/types/source_list_response.py +0 -2
- structify/types/structure_enhance_property_params.py +2 -17
- structify/types/structure_enhance_relationship_params.py +2 -17
- structify/types/structure_find_relationship_params.py +2 -18
- structify/types/structure_pdf_params.py +22 -0
- structify/types/structure_pdf_response.py +11 -0
- structify/types/structure_run_async_params.py +10 -17
- structify/types/table.py +2 -0
- structify/types/table_param.py +2 -0
- structify/types/team.py +14 -0
- structify/types/{admin/training_dataset_remove_datum_params.py → team_create_link_code_params.py} +3 -3
- structify/types/team_update_params.py +10 -0
- structify/types/team_wiki_page.py +28 -0
- structify/types/teams_link_code_response.py +13 -0
- structify/types/token_response.py +6 -2
- structify/types/tool_invocation.py +468 -0
- structify/types/tool_result.py +99 -0
- structify/types/update_table_response.py +46 -0
- structify/types/usage_group_key.py +14 -1
- structify/types/user/__init__.py +4 -0
- structify/types/{admin/training_dataset_size_params.py → user/api_key_create_params.py} +5 -5
- structify/types/user/api_key_info.py +24 -0
- structify/types/user/create_api_key_response.py +12 -0
- structify/types/user/list_api_keys_response.py +12 -0
- structify/types/user_enrich_params.py +11 -0
- structify/types/user_info.py +22 -0
- structify/types/user_refresh_params.py +13 -0
- structify/types/user_transactions_response.py +5 -5
- structify/types/user_update_params.py +32 -12
- structify/types/user_usage_response.py +0 -2
- structify/types/wiki_connector_reference.py +63 -0
- structify/types/wiki_create_params.py +16 -0
- structify/types/{admin/training_dataset_list_response.py → wiki_list_response.py} +4 -2
- structify/types/wiki_page_with_references.py +12 -0
- structify/types/wiki_update_params.py +16 -0
- structify/types/workflow_dag.py +2 -0
- structify/types/workflow_node_execution_status.py +3 -1
- structify/types/workflow_schedule_info.py +2 -2
- structify/types/workflow_session_node.py +10 -0
- {structifyai-1.158.0.dist-info → structifyai-1.176.1.dist-info}/METADATA +67 -4
- structifyai-1.176.1.dist-info/RECORD +496 -0
- {structifyai-1.158.0.dist-info → structifyai-1.176.1.dist-info}/licenses/LICENSE +1 -1
- structify/resources/admin/human_llm.py +0 -819
- structify/resources/admin/next_action.py +0 -656
- structify/resources/admin/training_datasets.py +0 -2028
- structify/resources/external/__init__.py +0 -61
- structify/resources/external/external.py +0 -166
- structify/resources/external/news.py +0 -519
- structify/resources/external/people.py +0 -998
- structify/resources/external/search_api.py +0 -1525
- structify/types/active_version_data.py +0 -21
- structify/types/active_version_response.py +0 -13
- structify/types/admin/action_training_data_entry.py +0 -219
- structify/types/admin/action_training_data_response.py +0 -12
- structify/types/admin/datum_status.py +0 -19
- structify/types/admin/delete_action_training_data_response.py +0 -9
- structify/types/admin/human_llm_add_search_for_job_params.py +0 -13
- structify/types/admin/human_llm_add_to_dataset_params.py +0 -186
- structify/types/admin/human_llm_finish_job_params.py +0 -13
- structify/types/admin/human_llm_get_jobs_params.py +0 -12
- structify/types/admin/human_llm_get_next_step_response.py +0 -196
- structify/types/admin/human_llm_job.py +0 -73
- structify/types/admin/human_llm_prelabel_step_response.py +0 -184
- structify/types/admin/human_llm_update_step_params.py +0 -186
- structify/types/admin/labeling_stats.py +0 -24
- structify/types/admin/next_action_add_training_datum_params.py +0 -203
- structify/types/admin/next_action_delete_training_data_params.py +0 -12
- structify/types/admin/next_action_get_training_data_params.py +0 -25
- structify/types/admin/next_action_get_training_datum_params.py +0 -12
- structify/types/admin/next_action_label_training_datum_params.py +0 -90
- structify/types/admin/step_choices.py +0 -32
- structify/types/admin/training_dataset_add_datum_params.py +0 -13
- structify/types/admin/training_dataset_add_params.py +0 -12
- structify/types/admin/training_dataset_download_datum_params.py +0 -13
- structify/types/admin/training_dataset_get_labeller_stats_params.py +0 -23
- structify/types/admin/training_dataset_get_labeller_stats_response.py +0 -10
- structify/types/admin/training_dataset_get_next_for_labeling_params.py +0 -15
- structify/types/admin/training_dataset_get_next_for_qa_params.py +0 -18
- structify/types/admin/training_dataset_get_next_suspicious_params.py +0 -23
- structify/types/admin/training_dataset_label_datum_params.py +0 -188
- structify/types/admin/training_dataset_list_datums_params.py +0 -17
- structify/types/admin/training_dataset_list_datums_response.py +0 -33
- structify/types/admin/training_dataset_mark_datum_suspicious_params.py +0 -19
- structify/types/admin/training_dataset_size_response.py +0 -37
- structify/types/admin/training_dataset_suspicious_count_params.py +0 -23
- structify/types/admin/training_dataset_suspicious_count_response.py +0 -9
- structify/types/admin/training_dataset_switch_dataset_params.py +0 -13
- structify/types/admin/training_dataset_update_datum_status_params.py +0 -18
- structify/types/admin/training_dataset_upload_labeled_step_params.py +0 -15
- structify/types/admin/training_dataset_verify_datum_params.py +0 -17
- structify/types/admin/training_datum_response.py +0 -405
- structify/types/admin/user_add_credits_params.py +0 -18
- structify/types/chat_prompt_param.py +0 -255
- structify/types/connector_column_descriptor.py +0 -21
- structify/types/connector_relational_database_descriptor.py +0 -13
- structify/types/connector_table_descriptor.py +0 -22
- structify/types/document_structure_params.py +0 -21
- structify/types/document_structure_response.py +0 -8
- structify/types/execution_step.py +0 -198
- structify/types/external/__init__.py +0 -96
- structify/types/external/companies_search_response.py +0 -28
- structify/types/external/company_search_result.py +0 -69
- structify/types/external/enriched_organization.py +0 -69
- structify/types/external/everything_response.py +0 -19
- structify/types/external/google_maps_result.py +0 -38
- structify/types/external/google_search_response.py +0 -19
- structify/types/external/google_search_result.py +0 -21
- structify/types/external/job_posting.py +0 -54
- structify/types/external/job_postings_response.py +0 -19
- structify/types/external/location_coordinates.py +0 -13
- structify/types/external/location_response.py +0 -16
- structify/types/external/location_result.py +0 -24
- structify/types/external/news_article.py +0 -33
- structify/types/external/news_everything_params.py +0 -45
- structify/types/external/news_source.py +0 -15
- structify/types/external/news_source_detail.py +0 -28
- structify/types/external/news_sources_params.py +0 -19
- structify/types/external/news_top_headlines_params.py +0 -28
- structify/types/external/organization_detail.py +0 -87
- structify/types/external/people_match_response.py +0 -18
- structify/types/external/people_search_response.py +0 -28
- structify/types/external/person_companies_search_params.py +0 -63
- structify/types/external/person_match.py +0 -60
- structify/types/external/person_organization_job_postings_params.py +0 -16
- structify/types/external/person_organizations_enrich_params.py +0 -16
- structify/types/external/person_people_match_params.py +0 -49
- structify/types/external/person_people_search_params.py +0 -57
- structify/types/external/person_search_result.py +0 -48
- structify/types/external/search_api_google_flights_calendar_params.py +0 -28
- structify/types/external/search_api_google_flights_calendar_response.py +0 -8
- structify/types/external/search_api_google_flights_location_search_params.py +0 -16
- structify/types/external/search_api_google_flights_location_search_response.py +0 -8
- structify/types/external/search_api_google_flights_search_params.py +0 -43
- structify/types/external/search_api_google_flights_search_response.py +0 -8
- structify/types/external/search_api_google_maps_place_details_params.py +0 -16
- structify/types/external/search_api_google_maps_place_details_response.py +0 -8
- structify/types/external/search_api_google_maps_place_photos_params.py +0 -16
- structify/types/external/search_api_google_maps_place_photos_response.py +0 -8
- structify/types/external/search_api_google_maps_place_reviews_params.py +0 -19
- structify/types/external/search_api_google_maps_place_reviews_response.py +0 -8
- structify/types/external/search_api_google_maps_search_params.py +0 -22
- structify/types/external/search_api_google_maps_search_response.py +0 -10
- structify/types/external/search_api_google_scholar_author_search_params.py +0 -22
- structify/types/external/search_api_google_scholar_author_search_response.py +0 -8
- structify/types/external/search_api_google_scholar_citations_params.py +0 -22
- structify/types/external/search_api_google_scholar_citations_response.py +0 -8
- structify/types/external/search_api_google_scholar_search_params.py +0 -28
- structify/types/external/search_api_google_scholar_search_response.py +0 -8
- structify/types/external/search_api_google_search_params.py +0 -25
- structify/types/external/search_api_location_search_params.py +0 -22
- structify/types/external/sources_response.py +0 -16
- structify/types/external/top_headlines_response.py +0 -19
- structify/types/job_delete_response.py +0 -7
- structify/types/job_get_response.py +0 -62
- structify/types/job_get_step_graph_response.py +0 -233
- structify/types/job_get_step_response.py +0 -196
- structify/types/message_param.py +0 -35
- structify/types/pending_version_response.py +0 -21
- structify/types/report_missing_params.py +0 -18
- structify/types/report_missing_response.py +0 -7
- structify/types/report_relationship_params.py +0 -18
- structify/types/report_relationship_response.py +0 -7
- structify/types/report_step_params.py +0 -15
- structify/types/report_step_response.py +0 -7
- structify/types/report_wrong_params.py +0 -18
- structify/types/report_wrong_response.py +0 -7
- structify/types/sandbox_create_params.py +0 -20
- structify/types/session_create_edge_params.py +0 -13
- structify/types/slack_connection_status.py +0 -15
- structify/types/slack_user_mapping_params.py +0 -18
- structify/types/tool_metadata_param.py +0 -17
- structify/types/user_team.py +0 -35
- structify/types/workflow_schedule_get_response.py +0 -10
- structifyai-1.158.0.dist-info/RECORD +0 -530
- {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
|
-
"""
|