vellum-ai 1.11.2__py3-none-any.whl → 1.13.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of vellum-ai might be problematic. Click here for more details.
- vellum/__init__.py +18 -0
- vellum/client/README.md +1 -1
- vellum/client/core/client_wrapper.py +2 -2
- vellum/client/core/force_multipart.py +4 -2
- vellum/client/core/http_response.py +1 -1
- vellum/client/core/pydantic_utilities.py +7 -4
- vellum/client/errors/too_many_requests_error.py +1 -2
- vellum/client/reference.md +677 -76
- vellum/client/resources/container_images/client.py +299 -0
- vellum/client/resources/container_images/raw_client.py +286 -0
- vellum/client/resources/documents/client.py +20 -10
- vellum/client/resources/documents/raw_client.py +20 -10
- vellum/client/resources/events/raw_client.py +4 -4
- vellum/client/resources/integration_auth_configs/client.py +2 -0
- vellum/client/resources/integration_auth_configs/raw_client.py +2 -0
- vellum/client/resources/integration_providers/client.py +28 -2
- vellum/client/resources/integration_providers/raw_client.py +24 -0
- vellum/client/resources/integrations/client.py +52 -4
- vellum/client/resources/integrations/raw_client.py +61 -0
- vellum/client/resources/workflow_deployments/client.py +156 -0
- vellum/client/resources/workflow_deployments/raw_client.py +334 -0
- vellum/client/resources/workflows/client.py +212 -8
- vellum/client/resources/workflows/raw_client.py +343 -6
- vellum/client/types/__init__.py +18 -0
- vellum/client/types/api_actor_type_enum.py +1 -1
- vellum/client/types/check_workflow_execution_status_error.py +21 -0
- vellum/client/types/check_workflow_execution_status_response.py +29 -0
- vellum/client/types/code_execution_package_request.py +21 -0
- vellum/client/types/composio_execute_tool_request.py +5 -0
- vellum/client/types/composio_tool_definition.py +1 -0
- vellum/client/types/container_image_build_config.py +1 -0
- vellum/client/types/container_image_container_image_tag.py +1 -0
- vellum/client/types/dataset_row_push_request.py +3 -0
- vellum/client/types/document_document_to_document_index.py +1 -0
- vellum/client/types/integration_name.py +24 -0
- vellum/client/types/node_execution_fulfilled_body.py +1 -0
- vellum/client/types/node_execution_log_body.py +24 -0
- vellum/client/types/node_execution_log_event.py +47 -0
- vellum/client/types/prompt_deployment_release_prompt_deployment.py +1 -0
- vellum/client/types/runner_config_request.py +24 -0
- vellum/client/types/severity_enum.py +5 -0
- vellum/client/types/slim_composio_tool_definition.py +1 -0
- vellum/client/types/slim_document_document_to_document_index.py +2 -0
- vellum/client/types/type_checker_enum.py +5 -0
- vellum/client/types/vellum_audio.py +5 -1
- vellum/client/types/vellum_audio_request.py +5 -1
- vellum/client/types/vellum_document.py +5 -1
- vellum/client/types/vellum_document_request.py +5 -1
- vellum/client/types/vellum_image.py +5 -1
- vellum/client/types/vellum_image_request.py +5 -1
- vellum/client/types/vellum_node_execution_event.py +2 -0
- vellum/client/types/vellum_variable.py +5 -0
- vellum/client/types/vellum_variable_extensions.py +1 -0
- vellum/client/types/vellum_variable_type.py +1 -0
- vellum/client/types/vellum_video.py +5 -1
- vellum/client/types/vellum_video_request.py +5 -1
- vellum/client/types/workflow_deployment_release_workflow_deployment.py +1 -0
- vellum/client/types/workflow_event.py +2 -0
- vellum/client/types/workflow_execution_fulfilled_body.py +1 -0
- vellum/client/types/workflow_result_event_output_data_array.py +1 -1
- vellum/client/types/workflow_result_event_output_data_chat_history.py +1 -1
- vellum/client/types/workflow_result_event_output_data_error.py +1 -1
- vellum/client/types/workflow_result_event_output_data_function_call.py +1 -1
- vellum/client/types/workflow_result_event_output_data_json.py +1 -1
- vellum/client/types/workflow_result_event_output_data_number.py +1 -1
- vellum/client/types/workflow_result_event_output_data_search_results.py +1 -1
- vellum/client/types/workflow_result_event_output_data_string.py +1 -1
- vellum/client/types/workflow_sandbox_execute_node_response.py +8 -0
- vellum/plugins/vellum_mypy.py +37 -2
- vellum/types/check_workflow_execution_status_error.py +3 -0
- vellum/types/check_workflow_execution_status_response.py +3 -0
- vellum/types/code_execution_package_request.py +3 -0
- vellum/types/node_execution_log_body.py +3 -0
- vellum/types/node_execution_log_event.py +3 -0
- vellum/types/runner_config_request.py +3 -0
- vellum/types/severity_enum.py +3 -0
- vellum/types/type_checker_enum.py +3 -0
- vellum/types/workflow_sandbox_execute_node_response.py +3 -0
- vellum/utils/files/mixin.py +26 -0
- vellum/utils/files/tests/test_mixin.py +62 -0
- vellum/utils/tests/test_vellum_client.py +95 -0
- vellum/utils/uuid.py +19 -2
- vellum/utils/vellum_client.py +10 -3
- vellum/workflows/__init__.py +7 -1
- vellum/workflows/descriptors/base.py +86 -0
- vellum/workflows/descriptors/tests/test_utils.py +9 -0
- vellum/workflows/errors/tests/__init__.py +0 -0
- vellum/workflows/errors/tests/test_types.py +52 -0
- vellum/workflows/errors/types.py +1 -0
- vellum/workflows/events/node.py +24 -0
- vellum/workflows/events/tests/test_event.py +123 -0
- vellum/workflows/events/types.py +2 -1
- vellum/workflows/events/workflow.py +28 -2
- vellum/workflows/expressions/add.py +3 -0
- vellum/workflows/expressions/tests/test_add.py +24 -0
- vellum/workflows/graph/graph.py +26 -5
- vellum/workflows/graph/tests/test_graph.py +228 -1
- vellum/workflows/inputs/base.py +22 -6
- vellum/workflows/inputs/dataset_row.py +121 -16
- vellum/workflows/inputs/tests/test_inputs.py +3 -3
- vellum/workflows/integrations/tests/test_vellum_integration_service.py +84 -0
- vellum/workflows/integrations/vellum_integration_service.py +12 -1
- vellum/workflows/loaders/base.py +2 -0
- vellum/workflows/nodes/bases/base.py +37 -16
- vellum/workflows/nodes/bases/tests/test_base_node.py +104 -1
- vellum/workflows/nodes/core/inline_subworkflow_node/node.py +1 -0
- vellum/workflows/nodes/core/inline_subworkflow_node/tests/test_node.py +1 -1
- vellum/workflows/nodes/core/map_node/node.py +7 -5
- vellum/workflows/nodes/core/map_node/tests/test_node.py +33 -0
- vellum/workflows/nodes/core/retry_node/node.py +1 -0
- vellum/workflows/nodes/core/try_node/node.py +1 -0
- vellum/workflows/nodes/displayable/api_node/node.py +3 -2
- vellum/workflows/nodes/displayable/api_node/tests/test_api_node.py +38 -0
- vellum/workflows/nodes/displayable/bases/api_node/node.py +1 -1
- vellum/workflows/nodes/displayable/bases/base_prompt_node/node.py +18 -1
- vellum/workflows/nodes/displayable/bases/inline_prompt_node/node.py +109 -2
- vellum/workflows/nodes/displayable/bases/prompt_deployment_node.py +13 -2
- vellum/workflows/nodes/displayable/code_execution_node/node.py +9 -15
- vellum/workflows/nodes/displayable/code_execution_node/tests/test_node.py +65 -24
- vellum/workflows/nodes/displayable/code_execution_node/utils.py +3 -0
- vellum/workflows/nodes/displayable/final_output_node/node.py +24 -69
- vellum/workflows/nodes/displayable/final_output_node/tests/test_node.py +53 -3
- vellum/workflows/nodes/displayable/note_node/node.py +4 -1
- vellum/workflows/nodes/displayable/subworkflow_deployment_node/node.py +16 -5
- vellum/workflows/nodes/displayable/tests/test_text_prompt_deployment_node.py +47 -0
- vellum/workflows/nodes/displayable/tool_calling_node/node.py +74 -34
- vellum/workflows/nodes/displayable/tool_calling_node/tests/test_node.py +204 -8
- vellum/workflows/nodes/displayable/tool_calling_node/utils.py +92 -71
- vellum/workflows/nodes/mocks.py +47 -213
- vellum/workflows/nodes/tests/test_mocks.py +0 -177
- vellum/workflows/nodes/utils.py +23 -8
- vellum/workflows/outputs/base.py +36 -3
- vellum/workflows/references/environment_variable.py +1 -11
- vellum/workflows/references/lazy.py +8 -0
- vellum/workflows/references/state_value.py +24 -1
- vellum/workflows/references/tests/test_lazy.py +58 -0
- vellum/workflows/references/trigger.py +8 -3
- vellum/workflows/references/workflow_input.py +8 -0
- vellum/workflows/resolvers/resolver.py +13 -3
- vellum/workflows/resolvers/tests/test_resolver.py +31 -0
- vellum/workflows/runner/runner.py +159 -14
- vellum/workflows/runner/tests/__init__.py +0 -0
- vellum/workflows/runner/tests/test_runner.py +170 -0
- vellum/workflows/sandbox.py +7 -8
- vellum/workflows/state/base.py +89 -30
- vellum/workflows/state/context.py +74 -3
- vellum/workflows/state/tests/test_state.py +269 -1
- vellum/workflows/tests/test_dataset_row.py +8 -7
- vellum/workflows/tests/test_sandbox.py +97 -8
- vellum/workflows/triggers/__init__.py +2 -1
- vellum/workflows/triggers/base.py +160 -28
- vellum/workflows/triggers/chat_message.py +141 -0
- vellum/workflows/triggers/integration.py +12 -0
- vellum/workflows/triggers/manual.py +3 -1
- vellum/workflows/triggers/schedule.py +3 -1
- vellum/workflows/triggers/tests/test_chat_message.py +257 -0
- vellum/workflows/types/core.py +18 -0
- vellum/workflows/types/definition.py +6 -13
- vellum/workflows/types/generics.py +12 -0
- vellum/workflows/types/tests/test_utils.py +12 -0
- vellum/workflows/types/utils.py +32 -2
- vellum/workflows/types/workflow_metadata.py +124 -0
- vellum/workflows/utils/functions.py +152 -16
- vellum/workflows/utils/pydantic_schema.py +19 -1
- vellum/workflows/utils/tests/test_functions.py +123 -8
- vellum/workflows/utils/tests/test_validate.py +79 -0
- vellum/workflows/utils/tests/test_vellum_variables.py +62 -2
- vellum/workflows/utils/uuids.py +90 -0
- vellum/workflows/utils/validate.py +108 -0
- vellum/workflows/utils/vellum_variables.py +96 -16
- vellum/workflows/workflows/base.py +177 -35
- vellum/workflows/workflows/tests/test_base_workflow.py +51 -0
- {vellum_ai-1.11.2.dist-info → vellum_ai-1.13.5.dist-info}/METADATA +6 -1
- {vellum_ai-1.11.2.dist-info → vellum_ai-1.13.5.dist-info}/RECORD +274 -227
- vellum_cli/__init__.py +21 -0
- vellum_cli/config.py +16 -2
- vellum_cli/pull.py +2 -0
- vellum_cli/push.py +23 -10
- vellum_cli/tests/conftest.py +8 -13
- vellum_cli/tests/test_image_push.py +4 -11
- vellum_cli/tests/test_pull.py +83 -68
- vellum_cli/tests/test_push.py +251 -2
- vellum_ee/assets/node-definitions.json +225 -12
- vellum_ee/scripts/generate_node_definitions.py +15 -3
- vellum_ee/workflows/display/base.py +4 -3
- vellum_ee/workflows/display/nodes/base_node_display.py +44 -11
- vellum_ee/workflows/display/nodes/tests/test_base_node_display.py +93 -0
- vellum_ee/workflows/display/nodes/types.py +1 -0
- vellum_ee/workflows/display/nodes/vellum/__init__.py +0 -2
- vellum_ee/workflows/display/nodes/vellum/base_adornment_node.py +5 -2
- vellum_ee/workflows/display/nodes/vellum/code_execution_node.py +1 -1
- vellum_ee/workflows/display/nodes/vellum/inline_prompt_node.py +10 -2
- vellum_ee/workflows/display/nodes/vellum/inline_subworkflow_node.py +17 -14
- vellum_ee/workflows/display/nodes/vellum/map_node.py +2 -0
- vellum_ee/workflows/display/nodes/vellum/note_node.py +18 -3
- vellum_ee/workflows/display/nodes/vellum/subworkflow_deployment_node.py +37 -14
- vellum_ee/workflows/display/nodes/vellum/tests/test_code_execution_node.py +62 -2
- vellum_ee/workflows/display/nodes/vellum/tests/test_final_output_node.py +136 -0
- vellum_ee/workflows/display/nodes/vellum/tests/test_note_node.py +44 -7
- vellum_ee/workflows/display/nodes/vellum/tests/test_prompt_node.py +5 -13
- vellum_ee/workflows/display/nodes/vellum/tests/test_subworkflow_deployment_node.py +27 -17
- vellum_ee/workflows/display/nodes/vellum/tests/test_tool_calling_node.py +145 -22
- vellum_ee/workflows/display/nodes/vellum/tests/test_utils.py +107 -2
- vellum_ee/workflows/display/nodes/vellum/utils.py +54 -12
- vellum_ee/workflows/display/tests/test_base_workflow_display.py +13 -16
- vellum_ee/workflows/display/tests/test_json_schema_validation.py +190 -0
- vellum_ee/workflows/display/tests/test_mocks.py +912 -0
- vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/test_adornments_serialization.py +14 -2
- vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/test_attributes_serialization.py +109 -0
- vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/test_outputs_serialization.py +3 -0
- vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/test_ports_serialization.py +187 -1
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_api_node_serialization.py +34 -325
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_code_execution_node_serialization.py +42 -393
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_conditional_node_serialization.py +13 -315
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_default_state_serialization.py +2 -122
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_error_node_serialization.py +24 -115
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_generic_node_serialization.py +4 -93
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_guardrail_node_serialization.py +7 -80
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_inline_prompt_node_serialization.py +9 -101
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_inline_subworkflow_serialization.py +77 -308
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_map_node_serialization.py +62 -324
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_merge_node_serialization.py +3 -82
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_prompt_deployment_serialization.py +4 -142
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_search_node_serialization.py +1 -61
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_set_state_node_serialization.py +4 -4
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_subworkflow_deployment_serialization.py +205 -134
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_templating_node_serialization.py +34 -146
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_terminal_node_serialization.py +2 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_composio_serialization.py +8 -6
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_inline_workflow_serialization.py +137 -266
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_inline_workflow_tool_wrapper_serialization.py +84 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_mcp_serialization.py +55 -16
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_serialization.py +15 -1
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_tool_wrapper_serialization.py +71 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_vellum_integration_serialization.py +119 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_workflow_deployment_serialization.py +1 -1
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_try_node_serialization.py +0 -2
- vellum_ee/workflows/display/tests/workflow_serialization/test_chat_message_dict_reference_serialization.py +22 -1
- vellum_ee/workflows/display/tests/workflow_serialization/test_chat_message_trigger_serialization.py +412 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_code_tool_node_reference_error.py +106 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_complex_terminal_node_serialization.py +9 -41
- vellum_ee/workflows/display/tests/workflow_serialization/test_duplicate_trigger_name_validation.py +208 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_final_output_node_not_referenced_by_workflow_outputs.py +45 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_infinite_loop_validation.py +66 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_int_input_serialization.py +40 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_integration_trigger_serialization.py +8 -14
- vellum_ee/workflows/display/tests/workflow_serialization/test_integration_trigger_validation.py +173 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_integration_trigger_with_entrypoint_node_id.py +16 -13
- vellum_ee/workflows/display/tests/workflow_serialization/test_list_vellum_document_serialization.py +5 -1
- vellum_ee/workflows/display/tests/workflow_serialization/test_manual_trigger_serialization.py +12 -2
- vellum_ee/workflows/display/tests/workflow_serialization/test_multi_trigger_same_node_serialization.py +111 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_no_triggers_no_entrypoint_validation.py +64 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_partial_workflow_meta_display_override.py +55 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_sandbox_dataset_mocks_serialization.py +268 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_sandbox_invalid_pdf_data_url.py +49 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_sandbox_validation_errors.py +112 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_scheduled_trigger_serialization.py +25 -16
- vellum_ee/workflows/display/tests/workflow_serialization/test_terminal_node_in_unused_graphs_serialization.py +53 -0
- vellum_ee/workflows/display/utils/exceptions.py +34 -0
- vellum_ee/workflows/display/utils/expressions.py +463 -52
- vellum_ee/workflows/display/utils/metadata.py +98 -33
- vellum_ee/workflows/display/utils/tests/test_metadata.py +31 -0
- vellum_ee/workflows/display/utils/triggers.py +153 -0
- vellum_ee/workflows/display/utils/vellum.py +59 -5
- vellum_ee/workflows/display/workflows/base_workflow_display.py +656 -254
- vellum_ee/workflows/display/workflows/get_vellum_workflow_display_class.py +26 -0
- vellum_ee/workflows/display/workflows/tests/test_workflow_display.py +77 -29
- vellum_ee/workflows/server/namespaces.py +18 -0
- vellum_ee/workflows/tests/test_display_meta.py +2 -0
- vellum_ee/workflows/tests/test_serialize_module.py +174 -7
- vellum_ee/workflows/tests/test_server.py +0 -3
- vellum_ee/workflows/display/nodes/vellum/function_node.py +0 -14
- {vellum_ai-1.11.2.dist-info → vellum_ai-1.13.5.dist-info}/LICENSE +0 -0
- {vellum_ai-1.11.2.dist-info → vellum_ai-1.13.5.dist-info}/WHEEL +0 -0
- {vellum_ai-1.11.2.dist-info → vellum_ai-1.13.5.dist-info}/entry_points.txt +0 -0
|
@@ -213,9 +213,10 @@ class DocumentsClient:
|
|
|
213
213
|
self,
|
|
214
214
|
*,
|
|
215
215
|
label: str,
|
|
216
|
-
contents: core.File,
|
|
217
216
|
add_to_index_names: typing.Optional[typing.List[str]] = OMIT,
|
|
218
217
|
external_id: typing.Optional[str] = OMIT,
|
|
218
|
+
contents: typing.Optional[core.File] = OMIT,
|
|
219
|
+
url: typing.Optional[str] = OMIT,
|
|
219
220
|
keywords: typing.Optional[typing.List[str]] = OMIT,
|
|
220
221
|
metadata: typing.Optional[str] = OMIT,
|
|
221
222
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -230,15 +231,18 @@ class DocumentsClient:
|
|
|
230
231
|
label : str
|
|
231
232
|
A human-friendly name for this document. Typically the filename.
|
|
232
233
|
|
|
233
|
-
contents : core.File
|
|
234
|
-
See core.File for more documentation
|
|
235
|
-
|
|
236
234
|
add_to_index_names : typing.Optional[typing.List[str]]
|
|
237
235
|
Optionally include the names of all indexes that you'd like this document to be included in
|
|
238
236
|
|
|
239
237
|
external_id : typing.Optional[str]
|
|
240
238
|
Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
|
|
241
239
|
|
|
240
|
+
contents : typing.Optional[core.File]
|
|
241
|
+
See core.File for more documentation
|
|
242
|
+
|
|
243
|
+
url : typing.Optional[str]
|
|
244
|
+
A URL from which the document can be downloaded. Either contents or url must be provided.
|
|
245
|
+
|
|
242
246
|
keywords : typing.Optional[typing.List[str]]
|
|
243
247
|
Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
|
|
244
248
|
|
|
@@ -255,9 +259,10 @@ class DocumentsClient:
|
|
|
255
259
|
"""
|
|
256
260
|
_response = self._raw_client.upload(
|
|
257
261
|
label=label,
|
|
258
|
-
contents=contents,
|
|
259
262
|
add_to_index_names=add_to_index_names,
|
|
260
263
|
external_id=external_id,
|
|
264
|
+
contents=contents,
|
|
265
|
+
url=url,
|
|
261
266
|
keywords=keywords,
|
|
262
267
|
metadata=metadata,
|
|
263
268
|
request_options=request_options,
|
|
@@ -491,9 +496,10 @@ class AsyncDocumentsClient:
|
|
|
491
496
|
self,
|
|
492
497
|
*,
|
|
493
498
|
label: str,
|
|
494
|
-
contents: core.File,
|
|
495
499
|
add_to_index_names: typing.Optional[typing.List[str]] = OMIT,
|
|
496
500
|
external_id: typing.Optional[str] = OMIT,
|
|
501
|
+
contents: typing.Optional[core.File] = OMIT,
|
|
502
|
+
url: typing.Optional[str] = OMIT,
|
|
497
503
|
keywords: typing.Optional[typing.List[str]] = OMIT,
|
|
498
504
|
metadata: typing.Optional[str] = OMIT,
|
|
499
505
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -508,15 +514,18 @@ class AsyncDocumentsClient:
|
|
|
508
514
|
label : str
|
|
509
515
|
A human-friendly name for this document. Typically the filename.
|
|
510
516
|
|
|
511
|
-
contents : core.File
|
|
512
|
-
See core.File for more documentation
|
|
513
|
-
|
|
514
517
|
add_to_index_names : typing.Optional[typing.List[str]]
|
|
515
518
|
Optionally include the names of all indexes that you'd like this document to be included in
|
|
516
519
|
|
|
517
520
|
external_id : typing.Optional[str]
|
|
518
521
|
Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
|
|
519
522
|
|
|
523
|
+
contents : typing.Optional[core.File]
|
|
524
|
+
See core.File for more documentation
|
|
525
|
+
|
|
526
|
+
url : typing.Optional[str]
|
|
527
|
+
A URL from which the document can be downloaded. Either contents or url must be provided.
|
|
528
|
+
|
|
520
529
|
keywords : typing.Optional[typing.List[str]]
|
|
521
530
|
Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
|
|
522
531
|
|
|
@@ -533,9 +542,10 @@ class AsyncDocumentsClient:
|
|
|
533
542
|
"""
|
|
534
543
|
_response = await self._raw_client.upload(
|
|
535
544
|
label=label,
|
|
536
|
-
contents=contents,
|
|
537
545
|
add_to_index_names=add_to_index_names,
|
|
538
546
|
external_id=external_id,
|
|
547
|
+
contents=contents,
|
|
548
|
+
url=url,
|
|
539
549
|
keywords=keywords,
|
|
540
550
|
metadata=metadata,
|
|
541
551
|
request_options=request_options,
|
|
@@ -234,9 +234,10 @@ class RawDocumentsClient:
|
|
|
234
234
|
self,
|
|
235
235
|
*,
|
|
236
236
|
label: str,
|
|
237
|
-
contents: core.File,
|
|
238
237
|
add_to_index_names: typing.Optional[typing.List[str]] = OMIT,
|
|
239
238
|
external_id: typing.Optional[str] = OMIT,
|
|
239
|
+
contents: typing.Optional[core.File] = OMIT,
|
|
240
|
+
url: typing.Optional[str] = OMIT,
|
|
240
241
|
keywords: typing.Optional[typing.List[str]] = OMIT,
|
|
241
242
|
metadata: typing.Optional[str] = OMIT,
|
|
242
243
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -251,15 +252,18 @@ class RawDocumentsClient:
|
|
|
251
252
|
label : str
|
|
252
253
|
A human-friendly name for this document. Typically the filename.
|
|
253
254
|
|
|
254
|
-
contents : core.File
|
|
255
|
-
See core.File for more documentation
|
|
256
|
-
|
|
257
255
|
add_to_index_names : typing.Optional[typing.List[str]]
|
|
258
256
|
Optionally include the names of all indexes that you'd like this document to be included in
|
|
259
257
|
|
|
260
258
|
external_id : typing.Optional[str]
|
|
261
259
|
Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
|
|
262
260
|
|
|
261
|
+
contents : typing.Optional[core.File]
|
|
262
|
+
See core.File for more documentation
|
|
263
|
+
|
|
264
|
+
url : typing.Optional[str]
|
|
265
|
+
A URL from which the document can be downloaded. Either contents or url must be provided.
|
|
266
|
+
|
|
263
267
|
keywords : typing.Optional[typing.List[str]]
|
|
264
268
|
Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
|
|
265
269
|
|
|
@@ -282,11 +286,12 @@ class RawDocumentsClient:
|
|
|
282
286
|
"add_to_index_names": add_to_index_names,
|
|
283
287
|
"external_id": external_id,
|
|
284
288
|
"label": label,
|
|
289
|
+
"url": url,
|
|
285
290
|
"keywords": keywords,
|
|
286
291
|
"metadata": metadata,
|
|
287
292
|
},
|
|
288
293
|
files={
|
|
289
|
-
"contents": contents,
|
|
294
|
+
**({"contents": contents} if contents is not None else {}),
|
|
290
295
|
},
|
|
291
296
|
request_options=request_options,
|
|
292
297
|
omit=OMIT,
|
|
@@ -555,9 +560,10 @@ class AsyncRawDocumentsClient:
|
|
|
555
560
|
self,
|
|
556
561
|
*,
|
|
557
562
|
label: str,
|
|
558
|
-
contents: core.File,
|
|
559
563
|
add_to_index_names: typing.Optional[typing.List[str]] = OMIT,
|
|
560
564
|
external_id: typing.Optional[str] = OMIT,
|
|
565
|
+
contents: typing.Optional[core.File] = OMIT,
|
|
566
|
+
url: typing.Optional[str] = OMIT,
|
|
561
567
|
keywords: typing.Optional[typing.List[str]] = OMIT,
|
|
562
568
|
metadata: typing.Optional[str] = OMIT,
|
|
563
569
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -572,15 +578,18 @@ class AsyncRawDocumentsClient:
|
|
|
572
578
|
label : str
|
|
573
579
|
A human-friendly name for this document. Typically the filename.
|
|
574
580
|
|
|
575
|
-
contents : core.File
|
|
576
|
-
See core.File for more documentation
|
|
577
|
-
|
|
578
581
|
add_to_index_names : typing.Optional[typing.List[str]]
|
|
579
582
|
Optionally include the names of all indexes that you'd like this document to be included in
|
|
580
583
|
|
|
581
584
|
external_id : typing.Optional[str]
|
|
582
585
|
Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
|
|
583
586
|
|
|
587
|
+
contents : typing.Optional[core.File]
|
|
588
|
+
See core.File for more documentation
|
|
589
|
+
|
|
590
|
+
url : typing.Optional[str]
|
|
591
|
+
A URL from which the document can be downloaded. Either contents or url must be provided.
|
|
592
|
+
|
|
584
593
|
keywords : typing.Optional[typing.List[str]]
|
|
585
594
|
Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
|
|
586
595
|
|
|
@@ -603,11 +612,12 @@ class AsyncRawDocumentsClient:
|
|
|
603
612
|
"add_to_index_names": add_to_index_names,
|
|
604
613
|
"external_id": external_id,
|
|
605
614
|
"label": label,
|
|
615
|
+
"url": url,
|
|
606
616
|
"keywords": keywords,
|
|
607
617
|
"metadata": metadata,
|
|
608
618
|
},
|
|
609
619
|
files={
|
|
610
|
-
"contents": contents,
|
|
620
|
+
**({"contents": contents} if contents is not None else {}),
|
|
611
621
|
},
|
|
612
622
|
request_options=request_options,
|
|
613
623
|
omit=OMIT,
|
|
@@ -103,9 +103,9 @@ class RawEventsClient:
|
|
|
103
103
|
raise TooManyRequestsError(
|
|
104
104
|
headers=dict(_response.headers),
|
|
105
105
|
body=typing.cast(
|
|
106
|
-
|
|
106
|
+
typing.Optional[typing.Any],
|
|
107
107
|
parse_obj_as(
|
|
108
|
-
type_=
|
|
108
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
109
109
|
object_=_response.json(),
|
|
110
110
|
),
|
|
111
111
|
),
|
|
@@ -198,9 +198,9 @@ class AsyncRawEventsClient:
|
|
|
198
198
|
raise TooManyRequestsError(
|
|
199
199
|
headers=dict(_response.headers),
|
|
200
200
|
body=typing.cast(
|
|
201
|
-
|
|
201
|
+
typing.Optional[typing.Any],
|
|
202
202
|
parse_obj_as(
|
|
203
|
-
type_=
|
|
203
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
204
204
|
object_=_response.json(),
|
|
205
205
|
),
|
|
206
206
|
),
|
|
@@ -47,6 +47,7 @@ class IntegrationAuthConfigsClient:
|
|
|
47
47
|
expand : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
48
48
|
The response fields to expand for more information.
|
|
49
49
|
- 'integration_credentials' expands the list of integration credentials that the authenticated entity has access to for the auth config.
|
|
50
|
+
- 'additional_parameters' (retrieve only) fetches additional parameter requirements for the auth config.
|
|
50
51
|
|
|
51
52
|
integration_name : typing.Optional[str]
|
|
52
53
|
|
|
@@ -130,6 +131,7 @@ class AsyncIntegrationAuthConfigsClient:
|
|
|
130
131
|
expand : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
131
132
|
The response fields to expand for more information.
|
|
132
133
|
- 'integration_credentials' expands the list of integration credentials that the authenticated entity has access to for the auth config.
|
|
134
|
+
- 'additional_parameters' (retrieve only) fetches additional parameter requirements for the auth config.
|
|
133
135
|
|
|
134
136
|
integration_name : typing.Optional[str]
|
|
135
137
|
|
|
@@ -35,6 +35,7 @@ class RawIntegrationAuthConfigsClient:
|
|
|
35
35
|
expand : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
36
36
|
The response fields to expand for more information.
|
|
37
37
|
- 'integration_credentials' expands the list of integration credentials that the authenticated entity has access to for the auth config.
|
|
38
|
+
- 'additional_parameters' (retrieve only) fetches additional parameter requirements for the auth config.
|
|
38
39
|
|
|
39
40
|
integration_name : typing.Optional[str]
|
|
40
41
|
|
|
@@ -115,6 +116,7 @@ class AsyncRawIntegrationAuthConfigsClient:
|
|
|
115
116
|
expand : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
116
117
|
The response fields to expand for more information.
|
|
117
118
|
- 'integration_credentials' expands the list of integration credentials that the authenticated entity has access to for the auth config.
|
|
119
|
+
- 'additional_parameters' (retrieve only) fetches additional parameter requirements for the auth config.
|
|
118
120
|
|
|
119
121
|
integration_name : typing.Optional[str]
|
|
120
122
|
|
|
@@ -34,6 +34,7 @@ class IntegrationProvidersClient:
|
|
|
34
34
|
integration_provider: str,
|
|
35
35
|
tool_name: str,
|
|
36
36
|
*,
|
|
37
|
+
toolkit_version: typing.Optional[str] = None,
|
|
37
38
|
request_options: typing.Optional[RequestOptions] = None,
|
|
38
39
|
) -> ComponentsSchemasComposioToolDefinition:
|
|
39
40
|
"""
|
|
@@ -50,6 +51,9 @@ class IntegrationProvidersClient:
|
|
|
50
51
|
tool_name : str
|
|
51
52
|
The tool's unique name, as specified by the integration provider
|
|
52
53
|
|
|
54
|
+
toolkit_version : typing.Optional[str]
|
|
55
|
+
The version of the toolkit to use. Pass 'latest' to get the latest version, or a specific version string to pin it. If not provided, uses the provider's default.
|
|
56
|
+
|
|
53
57
|
request_options : typing.Optional[RequestOptions]
|
|
54
58
|
Request-specific configuration.
|
|
55
59
|
|
|
@@ -73,7 +77,11 @@ class IntegrationProvidersClient:
|
|
|
73
77
|
)
|
|
74
78
|
"""
|
|
75
79
|
_response = self._raw_client.retrieve_integration_provider_tool_definition(
|
|
76
|
-
integration_name,
|
|
80
|
+
integration_name,
|
|
81
|
+
integration_provider,
|
|
82
|
+
tool_name,
|
|
83
|
+
toolkit_version=toolkit_version,
|
|
84
|
+
request_options=request_options,
|
|
77
85
|
)
|
|
78
86
|
return _response.data
|
|
79
87
|
|
|
@@ -87,6 +95,7 @@ class IntegrationProvidersClient:
|
|
|
87
95
|
limit: typing.Optional[int] = None,
|
|
88
96
|
offset: typing.Optional[int] = None,
|
|
89
97
|
search: typing.Optional[str] = None,
|
|
98
|
+
toolkit_version: typing.Optional[str] = None,
|
|
90
99
|
request_options: typing.Optional[RequestOptions] = None,
|
|
91
100
|
) -> PaginatedSlimToolDefinitionList:
|
|
92
101
|
"""
|
|
@@ -115,6 +124,9 @@ class IntegrationProvidersClient:
|
|
|
115
124
|
search : typing.Optional[str]
|
|
116
125
|
The search term to filter the tools by
|
|
117
126
|
|
|
127
|
+
toolkit_version : typing.Optional[str]
|
|
128
|
+
The version of the toolkit to lookup. Pass 'latest' to get the latest version, or a specific version string to pin it. If not provided, uses the provider's default.
|
|
129
|
+
|
|
118
130
|
request_options : typing.Optional[RequestOptions]
|
|
119
131
|
Request-specific configuration.
|
|
120
132
|
|
|
@@ -143,6 +155,7 @@ class IntegrationProvidersClient:
|
|
|
143
155
|
limit=limit,
|
|
144
156
|
offset=offset,
|
|
145
157
|
search=search,
|
|
158
|
+
toolkit_version=toolkit_version,
|
|
146
159
|
request_options=request_options,
|
|
147
160
|
)
|
|
148
161
|
return _response.data
|
|
@@ -169,6 +182,7 @@ class AsyncIntegrationProvidersClient:
|
|
|
169
182
|
integration_provider: str,
|
|
170
183
|
tool_name: str,
|
|
171
184
|
*,
|
|
185
|
+
toolkit_version: typing.Optional[str] = None,
|
|
172
186
|
request_options: typing.Optional[RequestOptions] = None,
|
|
173
187
|
) -> ComponentsSchemasComposioToolDefinition:
|
|
174
188
|
"""
|
|
@@ -185,6 +199,9 @@ class AsyncIntegrationProvidersClient:
|
|
|
185
199
|
tool_name : str
|
|
186
200
|
The tool's unique name, as specified by the integration provider
|
|
187
201
|
|
|
202
|
+
toolkit_version : typing.Optional[str]
|
|
203
|
+
The version of the toolkit to use. Pass 'latest' to get the latest version, or a specific version string to pin it. If not provided, uses the provider's default.
|
|
204
|
+
|
|
188
205
|
request_options : typing.Optional[RequestOptions]
|
|
189
206
|
Request-specific configuration.
|
|
190
207
|
|
|
@@ -216,7 +233,11 @@ class AsyncIntegrationProvidersClient:
|
|
|
216
233
|
asyncio.run(main())
|
|
217
234
|
"""
|
|
218
235
|
_response = await self._raw_client.retrieve_integration_provider_tool_definition(
|
|
219
|
-
integration_name,
|
|
236
|
+
integration_name,
|
|
237
|
+
integration_provider,
|
|
238
|
+
tool_name,
|
|
239
|
+
toolkit_version=toolkit_version,
|
|
240
|
+
request_options=request_options,
|
|
220
241
|
)
|
|
221
242
|
return _response.data
|
|
222
243
|
|
|
@@ -230,6 +251,7 @@ class AsyncIntegrationProvidersClient:
|
|
|
230
251
|
limit: typing.Optional[int] = None,
|
|
231
252
|
offset: typing.Optional[int] = None,
|
|
232
253
|
search: typing.Optional[str] = None,
|
|
254
|
+
toolkit_version: typing.Optional[str] = None,
|
|
233
255
|
request_options: typing.Optional[RequestOptions] = None,
|
|
234
256
|
) -> PaginatedSlimToolDefinitionList:
|
|
235
257
|
"""
|
|
@@ -258,6 +280,9 @@ class AsyncIntegrationProvidersClient:
|
|
|
258
280
|
search : typing.Optional[str]
|
|
259
281
|
The search term to filter the tools by
|
|
260
282
|
|
|
283
|
+
toolkit_version : typing.Optional[str]
|
|
284
|
+
The version of the toolkit to lookup. Pass 'latest' to get the latest version, or a specific version string to pin it. If not provided, uses the provider's default.
|
|
285
|
+
|
|
261
286
|
request_options : typing.Optional[RequestOptions]
|
|
262
287
|
Request-specific configuration.
|
|
263
288
|
|
|
@@ -294,6 +319,7 @@ class AsyncIntegrationProvidersClient:
|
|
|
294
319
|
limit=limit,
|
|
295
320
|
offset=offset,
|
|
296
321
|
search=search,
|
|
322
|
+
toolkit_version=toolkit_version,
|
|
297
323
|
request_options=request_options,
|
|
298
324
|
)
|
|
299
325
|
return _response.data
|
|
@@ -23,6 +23,7 @@ class RawIntegrationProvidersClient:
|
|
|
23
23
|
integration_provider: str,
|
|
24
24
|
tool_name: str,
|
|
25
25
|
*,
|
|
26
|
+
toolkit_version: typing.Optional[str] = None,
|
|
26
27
|
request_options: typing.Optional[RequestOptions] = None,
|
|
27
28
|
) -> HttpResponse[ComponentsSchemasComposioToolDefinition]:
|
|
28
29
|
"""
|
|
@@ -39,6 +40,9 @@ class RawIntegrationProvidersClient:
|
|
|
39
40
|
tool_name : str
|
|
40
41
|
The tool's unique name, as specified by the integration provider
|
|
41
42
|
|
|
43
|
+
toolkit_version : typing.Optional[str]
|
|
44
|
+
The version of the toolkit to use. Pass 'latest' to get the latest version, or a specific version string to pin it. If not provided, uses the provider's default.
|
|
45
|
+
|
|
42
46
|
request_options : typing.Optional[RequestOptions]
|
|
43
47
|
Request-specific configuration.
|
|
44
48
|
|
|
@@ -51,6 +55,9 @@ class RawIntegrationProvidersClient:
|
|
|
51
55
|
f"v1/integration-providers/{jsonable_encoder(integration_provider)}/integrations/{jsonable_encoder(integration_name)}/tools/{jsonable_encoder(tool_name)}",
|
|
52
56
|
base_url=self._client_wrapper.get_environment().default,
|
|
53
57
|
method="GET",
|
|
58
|
+
params={
|
|
59
|
+
"toolkit_version": toolkit_version,
|
|
60
|
+
},
|
|
54
61
|
request_options=request_options,
|
|
55
62
|
)
|
|
56
63
|
try:
|
|
@@ -78,6 +85,7 @@ class RawIntegrationProvidersClient:
|
|
|
78
85
|
limit: typing.Optional[int] = None,
|
|
79
86
|
offset: typing.Optional[int] = None,
|
|
80
87
|
search: typing.Optional[str] = None,
|
|
88
|
+
toolkit_version: typing.Optional[str] = None,
|
|
81
89
|
request_options: typing.Optional[RequestOptions] = None,
|
|
82
90
|
) -> HttpResponse[PaginatedSlimToolDefinitionList]:
|
|
83
91
|
"""
|
|
@@ -106,6 +114,9 @@ class RawIntegrationProvidersClient:
|
|
|
106
114
|
search : typing.Optional[str]
|
|
107
115
|
The search term to filter the tools by
|
|
108
116
|
|
|
117
|
+
toolkit_version : typing.Optional[str]
|
|
118
|
+
The version of the toolkit to lookup. Pass 'latest' to get the latest version, or a specific version string to pin it. If not provided, uses the provider's default.
|
|
119
|
+
|
|
109
120
|
request_options : typing.Optional[RequestOptions]
|
|
110
121
|
Request-specific configuration.
|
|
111
122
|
|
|
@@ -125,6 +136,7 @@ class RawIntegrationProvidersClient:
|
|
|
125
136
|
"limit": limit,
|
|
126
137
|
"offset": offset,
|
|
127
138
|
"search": search,
|
|
139
|
+
"toolkit_version": toolkit_version,
|
|
128
140
|
},
|
|
129
141
|
request_options=request_options,
|
|
130
142
|
)
|
|
@@ -154,6 +166,7 @@ class AsyncRawIntegrationProvidersClient:
|
|
|
154
166
|
integration_provider: str,
|
|
155
167
|
tool_name: str,
|
|
156
168
|
*,
|
|
169
|
+
toolkit_version: typing.Optional[str] = None,
|
|
157
170
|
request_options: typing.Optional[RequestOptions] = None,
|
|
158
171
|
) -> AsyncHttpResponse[ComponentsSchemasComposioToolDefinition]:
|
|
159
172
|
"""
|
|
@@ -170,6 +183,9 @@ class AsyncRawIntegrationProvidersClient:
|
|
|
170
183
|
tool_name : str
|
|
171
184
|
The tool's unique name, as specified by the integration provider
|
|
172
185
|
|
|
186
|
+
toolkit_version : typing.Optional[str]
|
|
187
|
+
The version of the toolkit to use. Pass 'latest' to get the latest version, or a specific version string to pin it. If not provided, uses the provider's default.
|
|
188
|
+
|
|
173
189
|
request_options : typing.Optional[RequestOptions]
|
|
174
190
|
Request-specific configuration.
|
|
175
191
|
|
|
@@ -182,6 +198,9 @@ class AsyncRawIntegrationProvidersClient:
|
|
|
182
198
|
f"v1/integration-providers/{jsonable_encoder(integration_provider)}/integrations/{jsonable_encoder(integration_name)}/tools/{jsonable_encoder(tool_name)}",
|
|
183
199
|
base_url=self._client_wrapper.get_environment().default,
|
|
184
200
|
method="GET",
|
|
201
|
+
params={
|
|
202
|
+
"toolkit_version": toolkit_version,
|
|
203
|
+
},
|
|
185
204
|
request_options=request_options,
|
|
186
205
|
)
|
|
187
206
|
try:
|
|
@@ -209,6 +228,7 @@ class AsyncRawIntegrationProvidersClient:
|
|
|
209
228
|
limit: typing.Optional[int] = None,
|
|
210
229
|
offset: typing.Optional[int] = None,
|
|
211
230
|
search: typing.Optional[str] = None,
|
|
231
|
+
toolkit_version: typing.Optional[str] = None,
|
|
212
232
|
request_options: typing.Optional[RequestOptions] = None,
|
|
213
233
|
) -> AsyncHttpResponse[PaginatedSlimToolDefinitionList]:
|
|
214
234
|
"""
|
|
@@ -237,6 +257,9 @@ class AsyncRawIntegrationProvidersClient:
|
|
|
237
257
|
search : typing.Optional[str]
|
|
238
258
|
The search term to filter the tools by
|
|
239
259
|
|
|
260
|
+
toolkit_version : typing.Optional[str]
|
|
261
|
+
The version of the toolkit to lookup. Pass 'latest' to get the latest version, or a specific version string to pin it. If not provided, uses the provider's default.
|
|
262
|
+
|
|
240
263
|
request_options : typing.Optional[RequestOptions]
|
|
241
264
|
Request-specific configuration.
|
|
242
265
|
|
|
@@ -256,6 +279,7 @@ class AsyncRawIntegrationProvidersClient:
|
|
|
256
279
|
"limit": limit,
|
|
257
280
|
"offset": offset,
|
|
258
281
|
"search": search,
|
|
282
|
+
"toolkit_version": toolkit_version,
|
|
259
283
|
},
|
|
260
284
|
request_options=request_options,
|
|
261
285
|
)
|
|
@@ -39,6 +39,7 @@ class IntegrationsClient:
|
|
|
39
39
|
integration_provider: str,
|
|
40
40
|
tool_name: str,
|
|
41
41
|
*,
|
|
42
|
+
toolkit_version: typing.Optional[str] = None,
|
|
42
43
|
request_options: typing.Optional[RequestOptions] = None,
|
|
43
44
|
) -> ComponentsSchemasComposioToolDefinition:
|
|
44
45
|
"""
|
|
@@ -53,6 +54,9 @@ class IntegrationsClient:
|
|
|
53
54
|
tool_name : str
|
|
54
55
|
The tool's unique name, as specified by the integration provider
|
|
55
56
|
|
|
57
|
+
toolkit_version : typing.Optional[str]
|
|
58
|
+
The version of the toolkit to use. Pass 'latest' to get the latest version, or a specific version string to pin it. If not provided, uses the provider's default.
|
|
59
|
+
|
|
56
60
|
request_options : typing.Optional[RequestOptions]
|
|
57
61
|
Request-specific configuration.
|
|
58
62
|
|
|
@@ -76,7 +80,11 @@ class IntegrationsClient:
|
|
|
76
80
|
)
|
|
77
81
|
"""
|
|
78
82
|
_response = self._raw_client.retrieve_integration_tool_definition(
|
|
79
|
-
integration_name,
|
|
83
|
+
integration_name,
|
|
84
|
+
integration_provider,
|
|
85
|
+
tool_name,
|
|
86
|
+
toolkit_version=toolkit_version,
|
|
87
|
+
request_options=request_options,
|
|
80
88
|
)
|
|
81
89
|
return _response.data
|
|
82
90
|
|
|
@@ -87,6 +95,9 @@ class IntegrationsClient:
|
|
|
87
95
|
tool_name: str,
|
|
88
96
|
*,
|
|
89
97
|
arguments: typing.Dict[str, typing.Optional[typing.Any]],
|
|
98
|
+
toolkit_version: typing.Optional[str] = OMIT,
|
|
99
|
+
integration: typing.Optional[str] = OMIT,
|
|
100
|
+
tool: typing.Optional[str] = OMIT,
|
|
90
101
|
request_options: typing.Optional[RequestOptions] = None,
|
|
91
102
|
) -> ComponentsSchemasComposioExecuteToolResponse:
|
|
92
103
|
"""
|
|
@@ -103,6 +114,12 @@ class IntegrationsClient:
|
|
|
103
114
|
|
|
104
115
|
arguments : typing.Dict[str, typing.Optional[typing.Any]]
|
|
105
116
|
|
|
117
|
+
toolkit_version : typing.Optional[str]
|
|
118
|
+
|
|
119
|
+
integration : typing.Optional[str]
|
|
120
|
+
|
|
121
|
+
tool : typing.Optional[str]
|
|
122
|
+
|
|
106
123
|
request_options : typing.Optional[RequestOptions]
|
|
107
124
|
Request-specific configuration.
|
|
108
125
|
|
|
@@ -127,7 +144,14 @@ class IntegrationsClient:
|
|
|
127
144
|
)
|
|
128
145
|
"""
|
|
129
146
|
_response = self._raw_client.execute_integration_tool(
|
|
130
|
-
integration_name,
|
|
147
|
+
integration_name,
|
|
148
|
+
integration_provider,
|
|
149
|
+
tool_name,
|
|
150
|
+
arguments=arguments,
|
|
151
|
+
toolkit_version=toolkit_version,
|
|
152
|
+
integration=integration,
|
|
153
|
+
tool=tool,
|
|
154
|
+
request_options=request_options,
|
|
131
155
|
)
|
|
132
156
|
return _response.data
|
|
133
157
|
|
|
@@ -247,6 +271,7 @@ class AsyncIntegrationsClient:
|
|
|
247
271
|
integration_provider: str,
|
|
248
272
|
tool_name: str,
|
|
249
273
|
*,
|
|
274
|
+
toolkit_version: typing.Optional[str] = None,
|
|
250
275
|
request_options: typing.Optional[RequestOptions] = None,
|
|
251
276
|
) -> ComponentsSchemasComposioToolDefinition:
|
|
252
277
|
"""
|
|
@@ -261,6 +286,9 @@ class AsyncIntegrationsClient:
|
|
|
261
286
|
tool_name : str
|
|
262
287
|
The tool's unique name, as specified by the integration provider
|
|
263
288
|
|
|
289
|
+
toolkit_version : typing.Optional[str]
|
|
290
|
+
The version of the toolkit to use. Pass 'latest' to get the latest version, or a specific version string to pin it. If not provided, uses the provider's default.
|
|
291
|
+
|
|
264
292
|
request_options : typing.Optional[RequestOptions]
|
|
265
293
|
Request-specific configuration.
|
|
266
294
|
|
|
@@ -292,7 +320,11 @@ class AsyncIntegrationsClient:
|
|
|
292
320
|
asyncio.run(main())
|
|
293
321
|
"""
|
|
294
322
|
_response = await self._raw_client.retrieve_integration_tool_definition(
|
|
295
|
-
integration_name,
|
|
323
|
+
integration_name,
|
|
324
|
+
integration_provider,
|
|
325
|
+
tool_name,
|
|
326
|
+
toolkit_version=toolkit_version,
|
|
327
|
+
request_options=request_options,
|
|
296
328
|
)
|
|
297
329
|
return _response.data
|
|
298
330
|
|
|
@@ -303,6 +335,9 @@ class AsyncIntegrationsClient:
|
|
|
303
335
|
tool_name: str,
|
|
304
336
|
*,
|
|
305
337
|
arguments: typing.Dict[str, typing.Optional[typing.Any]],
|
|
338
|
+
toolkit_version: typing.Optional[str] = OMIT,
|
|
339
|
+
integration: typing.Optional[str] = OMIT,
|
|
340
|
+
tool: typing.Optional[str] = OMIT,
|
|
306
341
|
request_options: typing.Optional[RequestOptions] = None,
|
|
307
342
|
) -> ComponentsSchemasComposioExecuteToolResponse:
|
|
308
343
|
"""
|
|
@@ -319,6 +354,12 @@ class AsyncIntegrationsClient:
|
|
|
319
354
|
|
|
320
355
|
arguments : typing.Dict[str, typing.Optional[typing.Any]]
|
|
321
356
|
|
|
357
|
+
toolkit_version : typing.Optional[str]
|
|
358
|
+
|
|
359
|
+
integration : typing.Optional[str]
|
|
360
|
+
|
|
361
|
+
tool : typing.Optional[str]
|
|
362
|
+
|
|
322
363
|
request_options : typing.Optional[RequestOptions]
|
|
323
364
|
Request-specific configuration.
|
|
324
365
|
|
|
@@ -351,7 +392,14 @@ class AsyncIntegrationsClient:
|
|
|
351
392
|
asyncio.run(main())
|
|
352
393
|
"""
|
|
353
394
|
_response = await self._raw_client.execute_integration_tool(
|
|
354
|
-
integration_name,
|
|
395
|
+
integration_name,
|
|
396
|
+
integration_provider,
|
|
397
|
+
tool_name,
|
|
398
|
+
arguments=arguments,
|
|
399
|
+
toolkit_version=toolkit_version,
|
|
400
|
+
integration=integration,
|
|
401
|
+
tool=tool,
|
|
402
|
+
request_options=request_options,
|
|
355
403
|
)
|
|
356
404
|
return _response.data
|
|
357
405
|
|