ogx_open_client 1.0.3.dev0__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.
- ogx_client/__init__.py +1135 -0
- ogx_client/_exceptions.py +114 -0
- ogx_client/_types.py +312 -0
- ogx_client/_version.py +8 -0
- ogx_client/api/__init__.py +33 -0
- ogx_client/api/admin_api.py +1411 -0
- ogx_client/api/alpha_api.py +354 -0
- ogx_client/api/batches_api.py +1247 -0
- ogx_client/api/chat_api.py +352 -0
- ogx_client/api/chat_completions_api.py +1028 -0
- ogx_client/api/completions_api.py +440 -0
- ogx_client/api/connectors_api.py +1235 -0
- ogx_client/api/conversations_api.py +1288 -0
- ogx_client/api/embeddings_api.py +429 -0
- ogx_client/api/file_batches_api.py +1370 -0
- ogx_client/api/file_processors_api.py +442 -0
- ogx_client/api/files_api.py +1539 -0
- ogx_client/api/inference_api.py +429 -0
- ogx_client/api/input_items_api.py +472 -0
- ogx_client/api/inspect_api.py +617 -0
- ogx_client/api/interactions_api.py +430 -0
- ogx_client/api/items_api.py +1359 -0
- ogx_client/api/messages_api.py +2466 -0
- ogx_client/api/models_api.py +451 -0
- ogx_client/api/openai_api.py +481 -0
- ogx_client/api/prompts_api.py +1883 -0
- ogx_client/api/providers_api.py +636 -0
- ogx_client/api/responses_api.py +1876 -0
- ogx_client/api/routes_api.py +389 -0
- ogx_client/api/tools_api.py +389 -0
- ogx_client/api/vector_io_api.py +740 -0
- ogx_client/api/vector_stores_api.py +1936 -0
- ogx_client/api/vector_stores_files_api.py +2011 -0
- ogx_client/api/versions_api.py +386 -0
- ogx_client/api_client.py +833 -0
- ogx_client/api_response.py +21 -0
- ogx_client/async_api_client.py +203 -0
- ogx_client/async_api_response.py +134 -0
- ogx_client/async_stream.py +161 -0
- ogx_client/configuration.py +585 -0
- ogx_client/exceptions.py +253 -0
- ogx_client/lib/__init__.py +17 -0
- ogx_client/lib/_utils.py +26 -0
- ogx_client/lib/agents/__init__.py +5 -0
- ogx_client/lib/agents/agent.py +540 -0
- ogx_client/lib/agents/client_tool.py +258 -0
- ogx_client/lib/agents/event_logger.py +134 -0
- ogx_client/lib/agents/event_synthesizer.py +448 -0
- ogx_client/lib/agents/react/__init__.py +5 -0
- ogx_client/lib/agents/react/agent.py +94 -0
- ogx_client/lib/agents/react/prompts.py +151 -0
- ogx_client/lib/agents/react/tool_parser.py +59 -0
- ogx_client/lib/agents/tool_parser.py +42 -0
- ogx_client/lib/agents/turn_events.py +268 -0
- ogx_client/lib/agents/types.py +63 -0
- ogx_client/lib/cli/__init__.py +12 -0
- ogx_client/lib/cli/common/__init__.py +5 -0
- ogx_client/lib/cli/common/utils.py +54 -0
- ogx_client/lib/cli/configure.py +68 -0
- ogx_client/lib/cli/constants.py +14 -0
- ogx_client/lib/cli/datasets/__init__.py +9 -0
- ogx_client/lib/cli/datasets/datasets.py +22 -0
- ogx_client/lib/cli/datasets/list.py +32 -0
- ogx_client/lib/cli/datasets/register.py +78 -0
- ogx_client/lib/cli/datasets/unregister.py +20 -0
- ogx_client/lib/cli/eval/__init__.py +9 -0
- ogx_client/lib/cli/eval/eval.py +22 -0
- ogx_client/lib/cli/eval/run_benchmark.py +193 -0
- ogx_client/lib/cli/eval/run_scoring.py +116 -0
- ogx_client/lib/cli/eval/utils.py +59 -0
- ogx_client/lib/cli/eval_tasks/__init__.py +9 -0
- ogx_client/lib/cli/eval_tasks/eval_tasks.py +65 -0
- ogx_client/lib/cli/eval_tasks/list.py +35 -0
- ogx_client/lib/cli/inference/__init__.py +9 -0
- ogx_client/lib/cli/inference/inference.py +88 -0
- ogx_client/lib/cli/inspect/__init__.py +9 -0
- ogx_client/lib/cli/inspect/inspect.py +19 -0
- ogx_client/lib/cli/inspect/version.py +22 -0
- ogx_client/lib/cli/models/__init__.py +9 -0
- ogx_client/lib/cli/models/models.py +149 -0
- ogx_client/lib/cli/ogx_client.py +111 -0
- ogx_client/lib/cli/post_training/__init__.py +9 -0
- ogx_client/lib/cli/post_training/post_training.py +114 -0
- ogx_client/lib/cli/providers/__init__.py +9 -0
- ogx_client/lib/cli/providers/inspect.py +33 -0
- ogx_client/lib/cli/providers/list.py +32 -0
- ogx_client/lib/cli/providers/providers.py +21 -0
- ogx_client/lib/cli/scoring_functions/__init__.py +9 -0
- ogx_client/lib/cli/scoring_functions/list.py +38 -0
- ogx_client/lib/cli/scoring_functions/scoring_functions.py +62 -0
- ogx_client/lib/cli/toolgroups/__init__.py +9 -0
- ogx_client/lib/cli/toolgroups/toolgroups.py +129 -0
- ogx_client/lib/cli/vector_stores/__init__.py +9 -0
- ogx_client/lib/cli/vector_stores/vector_stores.py +138 -0
- ogx_client/lib/inference/__init__.py +5 -0
- ogx_client/lib/inference/event_logger.py +58 -0
- ogx_client/lib/inference/utils.py +21 -0
- ogx_client/lib/stream_printer.py +30 -0
- ogx_client/lib/tools/__init__.py +9 -0
- ogx_client/lib/tools/mcp_oauth.py +303 -0
- ogx_client/models/__init__.py +505 -0
- ogx_client/models/add_items_request.py +148 -0
- ogx_client/models/allowed_tools_config.py +145 -0
- ogx_client/models/allowed_tools_filter.py +141 -0
- ogx_client/models/anthropic_base64_image_source.py +140 -0
- ogx_client/models/anthropic_base64_image_source_anthropic_url_image_source.py +396 -0
- ogx_client/models/anthropic_count_tokens_request.py +170 -0
- ogx_client/models/anthropic_count_tokens_response.py +119 -0
- ogx_client/models/anthropic_create_message_request.py +217 -0
- ogx_client/models/anthropic_image_block.py +144 -0
- ogx_client/models/anthropic_list_models_response.py +163 -0
- ogx_client/models/anthropic_message.py +141 -0
- ogx_client/models/anthropic_message_response.py +187 -0
- ogx_client/models/anthropic_model_info.py +149 -0
- ogx_client/models/anthropic_text_block.py +131 -0
- ogx_client/models/anthropic_text_block5_variants.py +549 -0
- ogx_client/models/anthropic_text_block5_variants1.py +549 -0
- ogx_client/models/anthropic_text_block_anthropic_image_block.py +203 -0
- ogx_client/models/anthropic_thinking_block.py +138 -0
- ogx_client/models/anthropic_thinking_config.py +137 -0
- ogx_client/models/anthropic_tool_def.py +128 -0
- ogx_client/models/anthropic_tool_result_block_input.py +153 -0
- ogx_client/models/anthropic_tool_result_block_output.py +153 -0
- ogx_client/models/anthropic_tool_use_block.py +135 -0
- ogx_client/models/anthropic_url_image_source.py +131 -0
- ogx_client/models/anthropic_usage.py +135 -0
- ogx_client/models/api.py +59 -0
- ogx_client/models/approval_filter.py +148 -0
- ogx_client/models/array_type.py +129 -0
- ogx_client/models/batch.py +302 -0
- ogx_client/models/batch_error.py +158 -0
- ogx_client/models/batch_request_counts.py +136 -0
- ogx_client/models/batch_usage.py +166 -0
- ogx_client/models/bf16_quantization_config.py +129 -0
- ogx_client/models/boolean_type.py +129 -0
- ogx_client/models/cancel_batch_request.py +119 -0
- ogx_client/models/chat_completion_input_type.py +129 -0
- ogx_client/models/chat_completion_message.py +216 -0
- ogx_client/models/chat_completion_message_custom_tool_call.py +143 -0
- ogx_client/models/chat_completion_message_custom_tool_call_custom.py +121 -0
- ogx_client/models/chat_completion_message_function_call.py +121 -0
- ogx_client/models/chat_completion_message_list.py +165 -0
- ogx_client/models/chat_completion_message_tool_call.py +143 -0
- ogx_client/models/chat_completion_message_tool_call_chat_completion_message_custom_tool_call.py +203 -0
- ogx_client/models/chat_completion_message_tool_call_chat_completion_message_custom_tool_call1.py +206 -0
- ogx_client/models/chat_completion_message_tool_call_function.py +121 -0
- ogx_client/models/chunk.py +151 -0
- ogx_client/models/chunk_for_deletion.py +121 -0
- ogx_client/models/chunk_metadata.py +180 -0
- ogx_client/models/compact_response_request.py +239 -0
- ogx_client/models/comparison_filter.py +135 -0
- ogx_client/models/completion_input_type.py +129 -0
- ogx_client/models/compound_filter.py +128 -0
- ogx_client/models/connector.py +152 -0
- ogx_client/models/connector_input.py +131 -0
- ogx_client/models/connector_type.py +42 -0
- ogx_client/models/context_management.py +133 -0
- ogx_client/models/conversation.py +140 -0
- ogx_client/models/conversation_deleted_resource.py +133 -0
- ogx_client/models/conversation_item.py +855 -0
- ogx_client/models/conversation_item_create_request.py +148 -0
- ogx_client/models/conversation_item_deleted_resource.py +133 -0
- ogx_client/models/conversation_item_include.py +48 -0
- ogx_client/models/conversation_item_list.py +158 -0
- ogx_client/models/conversation_message.py +149 -0
- ogx_client/models/create_batch_request.py +144 -0
- ogx_client/models/create_conversation_request.py +159 -0
- ogx_client/models/create_message_batch_request.py +148 -0
- ogx_client/models/create_prompt_request.py +126 -0
- ogx_client/models/create_response_request.py +407 -0
- ogx_client/models/custom_tool_config.py +119 -0
- ogx_client/models/delete_chunks_request.py +132 -0
- ogx_client/models/delete_conversation_request.py +119 -0
- ogx_client/models/delete_file_request.py +119 -0
- ogx_client/models/delete_item_request.py +121 -0
- ogx_client/models/delete_prompt_request.py +119 -0
- ogx_client/models/dialog_type.py +129 -0
- ogx_client/models/embedded_chunk.py +157 -0
- ogx_client/models/embedded_chunk_input.py +157 -0
- ogx_client/models/embedded_chunk_output.py +157 -0
- ogx_client/models/embeddings_response.py +136 -0
- ogx_client/models/error.py +143 -0
- ogx_client/models/error_detail.py +313 -0
- ogx_client/models/errors.py +172 -0
- ogx_client/models/expires_after.py +129 -0
- ogx_client/models/fp8_quantization_config.py +129 -0
- ogx_client/models/function_tool_config.py +119 -0
- ogx_client/models/get_chat_completion_request.py +119 -0
- ogx_client/models/get_connector_request.py +119 -0
- ogx_client/models/get_connector_tool_request.py +121 -0
- ogx_client/models/get_conversation_request.py +119 -0
- ogx_client/models/get_model_request.py +119 -0
- ogx_client/models/get_model_v1_models_model_id_get200_response.py +414 -0
- ogx_client/models/get_prompt_request.py +126 -0
- ogx_client/models/google_create_interaction_request.py +213 -0
- ogx_client/models/google_function_call_content.py +153 -0
- ogx_client/models/google_function_call_output.py +153 -0
- ogx_client/models/google_function_declaration.py +146 -0
- ogx_client/models/google_function_response_content.py +160 -0
- ogx_client/models/google_generation_config.py +146 -0
- ogx_client/models/google_input_turn.py +141 -0
- ogx_client/models/google_interaction_response.py +199 -0
- ogx_client/models/google_list_models_response.py +147 -0
- ogx_client/models/google_model_info.py +123 -0
- ogx_client/models/google_text_content.py +131 -0
- ogx_client/models/google_text_content_google_function_call_content_google_function_response_content.py +218 -0
- ogx_client/models/google_text_output.py +131 -0
- ogx_client/models/google_text_output_google_function_call_output_google_thought_output.py +447 -0
- ogx_client/models/google_thought_output.py +149 -0
- ogx_client/models/google_tool.py +145 -0
- ogx_client/models/google_usage.py +136 -0
- ogx_client/models/grammar_response_format.py +131 -0
- ogx_client/models/greedy_sampling_strategy.py +129 -0
- ogx_client/models/greedy_sampling_strategy_top_p_sampling_strategy_top_k_sampling_strategy.py +447 -0
- ogx_client/models/health_info.py +120 -0
- ogx_client/models/health_status.py +44 -0
- ogx_client/models/image_content_item.py +144 -0
- ogx_client/models/image_content_item_input.py +144 -0
- ogx_client/models/image_content_item_input_text_content_item.py +396 -0
- ogx_client/models/image_content_item_output.py +144 -0
- ogx_client/models/image_content_item_output_text_content_item.py +396 -0
- ogx_client/models/image_content_item_text_content_item.py +396 -0
- ogx_client/models/image_delta.py +131 -0
- ogx_client/models/inline_provider_spec.py +183 -0
- ogx_client/models/input_tokens_details.py +132 -0
- ogx_client/models/insert_chunks_request.py +139 -0
- ogx_client/models/inspect_provider_request.py +119 -0
- ogx_client/models/int4_quantization_config.py +136 -0
- ogx_client/models/integer_number.py +207 -0
- ogx_client/models/interleaved_content.py +280 -0
- ogx_client/models/interleaved_content_item.py +396 -0
- ogx_client/models/job.py +122 -0
- ogx_client/models/job_status.py +46 -0
- ogx_client/models/json_schema_response_format.py +131 -0
- ogx_client/models/json_type.py +129 -0
- ogx_client/models/list_batches_request.py +126 -0
- ogx_client/models/list_batches_response.py +158 -0
- ogx_client/models/list_chat_completion_messages_request.py +142 -0
- ogx_client/models/list_chat_completions_request.py +147 -0
- ogx_client/models/list_connector_tools_request.py +119 -0
- ogx_client/models/list_connectors_response.py +147 -0
- ogx_client/models/list_files_request.py +147 -0
- ogx_client/models/list_items_request.py +158 -0
- ogx_client/models/list_message_batches_response.py +163 -0
- ogx_client/models/list_models_response.py +147 -0
- ogx_client/models/list_models_v1_models_get200_response.py +414 -0
- ogx_client/models/list_number_string.py +265 -0
- ogx_client/models/list_open_ai_chat_completion_response.py +165 -0
- ogx_client/models/list_open_ai_file_response.py +165 -0
- ogx_client/models/list_open_ai_response_input_item.py +159 -0
- ogx_client/models/list_open_ai_response_object.py +165 -0
- ogx_client/models/list_prompt_versions_request.py +119 -0
- ogx_client/models/list_prompts_response.py +147 -0
- ogx_client/models/list_providers_response.py +147 -0
- ogx_client/models/list_routes_request.py +134 -0
- ogx_client/models/list_routes_response.py +147 -0
- ogx_client/models/list_string_allowed_tools_filter.py +269 -0
- ogx_client/models/list_tool_defs_response.py +147 -0
- ogx_client/models/list_tool_groups_response.py +147 -0
- ogx_client/models/list_tools_request.py +124 -0
- ogx_client/models/list_tools_response.py +147 -0
- ogx_client/models/mcp_list_tools_tool.py +128 -0
- ogx_client/models/message_batch.py +187 -0
- ogx_client/models/message_batch_request_counts.py +127 -0
- ogx_client/models/message_batch_request_params.py +142 -0
- ogx_client/models/metric_in_response.py +141 -0
- ogx_client/models/model.py +171 -0
- ogx_client/models/model_type.py +44 -0
- ogx_client/models/number_type.py +129 -0
- ogx_client/models/object_type.py +129 -0
- ogx_client/models/open_ai_assistant_message_param.py +187 -0
- ogx_client/models/open_ai_assistant_message_param_input.py +187 -0
- ogx_client/models/open_ai_assistant_message_param_output.py +187 -0
- ogx_client/models/open_ai_attach_file_request.py +164 -0
- ogx_client/models/open_ai_chat_completion.py +173 -0
- ogx_client/models/open_ai_chat_completion_chunk.py +173 -0
- ogx_client/models/open_ai_chat_completion_content_part_image_param.py +144 -0
- ogx_client/models/open_ai_chat_completion_content_part_param.py +447 -0
- ogx_client/models/open_ai_chat_completion_content_part_text_param.py +131 -0
- ogx_client/models/open_ai_chat_completion_content_part_text_param_open_ai_chat_completion_content_part_image_param.py +203 -0
- ogx_client/models/open_ai_chat_completion_content_part_text_param_open_ai_chat_completion_content_part_image_param_open_ai_file.py +447 -0
- ogx_client/models/open_ai_chat_completion_custom_tool_call_function.py +121 -0
- ogx_client/models/open_ai_chat_completion_request_with_extra_body.py +377 -0
- ogx_client/models/open_ai_chat_completion_response_message.py +180 -0
- ogx_client/models/open_ai_chat_completion_tool_call_function.py +121 -0
- ogx_client/models/open_ai_chat_completion_tool_choice.py +447 -0
- ogx_client/models/open_ai_chat_completion_tool_choice_allowed_tools.py +144 -0
- ogx_client/models/open_ai_chat_completion_tool_choice_custom_tool.py +144 -0
- ogx_client/models/open_ai_chat_completion_tool_choice_function_tool.py +144 -0
- ogx_client/models/open_ai_chat_completion_usage.py +154 -0
- ogx_client/models/open_ai_chat_completion_usage_completion_tokens_details.py +120 -0
- ogx_client/models/open_ai_chat_completion_usage_prompt_tokens_details.py +120 -0
- ogx_client/models/open_ai_choice.py +167 -0
- ogx_client/models/open_ai_choice_delta.py +163 -0
- ogx_client/models/open_ai_choice_logprobs.py +169 -0
- ogx_client/models/open_ai_chunk_choice.py +162 -0
- ogx_client/models/open_ai_chunk_choice_logprobs.py +169 -0
- ogx_client/models/open_ai_compacted_response.py +161 -0
- ogx_client/models/open_ai_completion.py +149 -0
- ogx_client/models/open_ai_completion_choice.py +154 -0
- ogx_client/models/open_ai_completion_logprobs.py +162 -0
- ogx_client/models/open_ai_completion_request_with_extra_body.py +273 -0
- ogx_client/models/open_ai_completion_with_input_messages.py +186 -0
- ogx_client/models/open_ai_create_vector_store_file_batch_request_with_extra_body.py +212 -0
- ogx_client/models/open_ai_create_vector_store_request_with_extra_body.py +198 -0
- ogx_client/models/open_ai_delete_response_object.py +133 -0
- ogx_client/models/open_ai_developer_message_param.py +151 -0
- ogx_client/models/open_ai_embedding_data.py +147 -0
- ogx_client/models/open_ai_embedding_usage.py +121 -0
- ogx_client/models/open_ai_embeddings_request_with_extra_body.py +164 -0
- ogx_client/models/open_ai_embeddings_response.py +160 -0
- ogx_client/models/open_ai_file.py +144 -0
- ogx_client/models/open_ai_file_delete_response.py +133 -0
- ogx_client/models/open_ai_file_file.py +138 -0
- ogx_client/models/open_ai_file_object.py +153 -0
- ogx_client/models/open_ai_file_purpose.py +50 -0
- ogx_client/models/open_ai_file_upload_purpose.py +47 -0
- ogx_client/models/open_ai_finish_reason.py +46 -0
- ogx_client/models/open_ai_image_url.py +136 -0
- ogx_client/models/open_ai_list_models_response.py +142 -0
- ogx_client/models/open_ai_message_param.py +549 -0
- ogx_client/models/open_ai_model.py +142 -0
- ogx_client/models/open_ai_response_annotation_citation.py +137 -0
- ogx_client/models/open_ai_response_annotation_container_file_citation.py +139 -0
- ogx_client/models/open_ai_response_annotation_file_citation.py +135 -0
- ogx_client/models/open_ai_response_annotation_file_citation4_variants.py +498 -0
- ogx_client/models/open_ai_response_annotation_file_path.py +133 -0
- ogx_client/models/open_ai_response_annotations.py +498 -0
- ogx_client/models/open_ai_response_compaction.py +138 -0
- ogx_client/models/open_ai_response_content_part.py +447 -0
- ogx_client/models/open_ai_response_content_part_output_text.py +162 -0
- ogx_client/models/open_ai_response_content_part_output_text_open_ai_response_content_part_refusal_open_ai_response_content_part_reasoning_text.py +447 -0
- ogx_client/models/open_ai_response_content_part_reasoning_summary.py +131 -0
- ogx_client/models/open_ai_response_content_part_reasoning_text.py +131 -0
- ogx_client/models/open_ai_response_content_part_refusal.py +131 -0
- ogx_client/models/open_ai_response_error.py +121 -0
- ogx_client/models/open_ai_response_format_json_object.py +129 -0
- ogx_client/models/open_ai_response_format_json_schema.py +144 -0
- ogx_client/models/open_ai_response_format_param.py +447 -0
- ogx_client/models/open_ai_response_format_text.py +129 -0
- ogx_client/models/open_ai_response_format_text_open_ai_response_format_json_schema_open_ai_response_format_json_object.py +453 -0
- ogx_client/models/open_ai_response_incomplete_details.py +119 -0
- ogx_client/models/open_ai_response_input.py +251 -0
- ogx_client/models/open_ai_response_input_function_tool_call_output.py +160 -0
- ogx_client/models/open_ai_response_input_function_tool_call_output_open_ai_response_mcp_approval_response_open_ai_response_compaction.py +233 -0
- ogx_client/models/open_ai_response_input_message_content.py +447 -0
- ogx_client/models/open_ai_response_input_message_content_file.py +157 -0
- ogx_client/models/open_ai_response_input_message_content_image.py +155 -0
- ogx_client/models/open_ai_response_input_message_content_text.py +131 -0
- ogx_client/models/open_ai_response_input_message_content_text_open_ai_response_input_message_content_image_open_ai_response_input_message_content_file.py +447 -0
- ogx_client/models/open_ai_response_input_tool.py +516 -0
- ogx_client/models/open_ai_response_input_tool_choice.py +203 -0
- ogx_client/models/open_ai_response_input_tool_choice_allowed_tools.py +143 -0
- ogx_client/models/open_ai_response_input_tool_choice_allowed_tools6_variants.py +618 -0
- ogx_client/models/open_ai_response_input_tool_choice_custom_tool.py +131 -0
- ogx_client/models/open_ai_response_input_tool_choice_file_search.py +129 -0
- ogx_client/models/open_ai_response_input_tool_choice_function_tool.py +131 -0
- ogx_client/models/open_ai_response_input_tool_choice_mcp_tool.py +138 -0
- ogx_client/models/open_ai_response_input_tool_choice_mode.py +44 -0
- ogx_client/models/open_ai_response_input_tool_choice_mode1.py +209 -0
- ogx_client/models/open_ai_response_input_tool_choice_mode2.py +209 -0
- ogx_client/models/open_ai_response_input_tool_choice_web_search.py +129 -0
- ogx_client/models/open_ai_response_input_tool_file_search.py +166 -0
- ogx_client/models/open_ai_response_input_tool_function.py +152 -0
- ogx_client/models/open_ai_response_input_tool_mcp.py +194 -0
- ogx_client/models/open_ai_response_input_tool_web_search.py +147 -0
- ogx_client/models/open_ai_response_input_tool_web_search4_variants.py +516 -0
- ogx_client/models/open_ai_response_input_tool_web_search4_variants1.py +516 -0
- ogx_client/models/open_ai_response_mcp_approval_request.py +137 -0
- ogx_client/models/open_ai_response_mcp_approval_response.py +147 -0
- ogx_client/models/open_ai_response_message.py +167 -0
- ogx_client/models/open_ai_response_message11_variants.py +855 -0
- ogx_client/models/open_ai_response_message8_variants.py +702 -0
- ogx_client/models/open_ai_response_message_input.py +167 -0
- ogx_client/models/open_ai_response_message_input11_variants.py +855 -0
- ogx_client/models/open_ai_response_message_input8_variants.py +702 -0
- ogx_client/models/open_ai_response_message_output.py +167 -0
- ogx_client/models/open_ai_response_message_output11_variants.py +855 -0
- ogx_client/models/open_ai_response_message_output8_variants.py +702 -0
- ogx_client/models/open_ai_response_message_output_union.py +233 -0
- ogx_client/models/open_ai_response_object.py +412 -0
- ogx_client/models/open_ai_response_object_stream.py +2181 -0
- ogx_client/models/open_ai_response_object_stream_error.py +147 -0
- ogx_client/models/open_ai_response_object_stream_response_completed.py +146 -0
- ogx_client/models/open_ai_response_object_stream_response_content_part_added.py +154 -0
- ogx_client/models/open_ai_response_object_stream_response_content_part_done.py +154 -0
- ogx_client/models/open_ai_response_object_stream_response_created.py +146 -0
- ogx_client/models/open_ai_response_object_stream_response_failed.py +146 -0
- ogx_client/models/open_ai_response_object_stream_response_file_search_call_completed.py +135 -0
- ogx_client/models/open_ai_response_object_stream_response_file_search_call_in_progress.py +135 -0
- ogx_client/models/open_ai_response_object_stream_response_file_search_call_searching.py +135 -0
- ogx_client/models/open_ai_response_object_stream_response_function_call_arguments_delta.py +137 -0
- ogx_client/models/open_ai_response_object_stream_response_function_call_arguments_done.py +137 -0
- ogx_client/models/open_ai_response_object_stream_response_in_progress.py +146 -0
- ogx_client/models/open_ai_response_object_stream_response_incomplete.py +146 -0
- ogx_client/models/open_ai_response_object_stream_response_mcp_call_arguments_delta.py +137 -0
- ogx_client/models/open_ai_response_object_stream_response_mcp_call_arguments_done.py +137 -0
- ogx_client/models/open_ai_response_object_stream_response_mcp_call_completed.py +131 -0
- ogx_client/models/open_ai_response_object_stream_response_mcp_call_failed.py +131 -0
- ogx_client/models/open_ai_response_object_stream_response_mcp_call_in_progress.py +135 -0
- ogx_client/models/open_ai_response_object_stream_response_mcp_list_tools_completed.py +131 -0
- ogx_client/models/open_ai_response_object_stream_response_mcp_list_tools_failed.py +131 -0
- ogx_client/models/open_ai_response_object_stream_response_mcp_list_tools_in_progress.py +131 -0
- ogx_client/models/open_ai_response_object_stream_response_output_item_added.py +150 -0
- ogx_client/models/open_ai_response_object_stream_response_output_item_done.py +150 -0
- ogx_client/models/open_ai_response_object_stream_response_output_text_annotation_added.py +154 -0
- ogx_client/models/open_ai_response_object_stream_response_output_text_delta.py +157 -0
- ogx_client/models/open_ai_response_object_stream_response_output_text_done.py +139 -0
- ogx_client/models/open_ai_response_object_stream_response_reasoning_summary_part_added.py +152 -0
- ogx_client/models/open_ai_response_object_stream_response_reasoning_summary_part_done.py +152 -0
- ogx_client/models/open_ai_response_object_stream_response_reasoning_summary_text_delta.py +139 -0
- ogx_client/models/open_ai_response_object_stream_response_reasoning_summary_text_done.py +139 -0
- ogx_client/models/open_ai_response_object_stream_response_reasoning_text_delta.py +139 -0
- ogx_client/models/open_ai_response_object_stream_response_reasoning_text_done.py +139 -0
- ogx_client/models/open_ai_response_object_stream_response_refusal_delta.py +139 -0
- ogx_client/models/open_ai_response_object_stream_response_refusal_done.py +139 -0
- ogx_client/models/open_ai_response_object_stream_response_web_search_call_completed.py +135 -0
- ogx_client/models/open_ai_response_object_stream_response_web_search_call_in_progress.py +135 -0
- ogx_client/models/open_ai_response_object_stream_response_web_search_call_searching.py +135 -0
- ogx_client/models/open_ai_response_object_with_input.py +425 -0
- ogx_client/models/open_ai_response_output.py +702 -0
- ogx_client/models/open_ai_response_output_item.py +702 -0
- ogx_client/models/open_ai_response_output_message_content.py +396 -0
- ogx_client/models/open_ai_response_output_message_content_output_text.py +162 -0
- ogx_client/models/open_ai_response_output_message_content_output_text_input.py +162 -0
- ogx_client/models/open_ai_response_output_message_content_output_text_input_open_ai_response_content_part_refusal.py +396 -0
- ogx_client/models/open_ai_response_output_message_content_output_text_open_ai_response_content_part_refusal.py +396 -0
- ogx_client/models/open_ai_response_output_message_content_output_text_output.py +162 -0
- ogx_client/models/open_ai_response_output_message_content_output_text_output_open_ai_response_content_part_refusal.py +396 -0
- ogx_client/models/open_ai_response_output_message_file_search_tool_call.py +153 -0
- ogx_client/models/open_ai_response_output_message_file_search_tool_call_results.py +127 -0
- ogx_client/models/open_ai_response_output_message_function_tool_call.py +149 -0
- ogx_client/models/open_ai_response_output_message_mcp_call.py +151 -0
- ogx_client/models/open_ai_response_output_message_mcp_list_tools.py +146 -0
- ogx_client/models/open_ai_response_output_message_reasoning_content.py +131 -0
- ogx_client/models/open_ai_response_output_message_reasoning_item.py +179 -0
- ogx_client/models/open_ai_response_output_message_reasoning_summary.py +131 -0
- ogx_client/models/open_ai_response_output_message_web_search_tool_call.py +133 -0
- ogx_client/models/open_ai_response_prompt.py +151 -0
- ogx_client/models/open_ai_response_reasoning.py +168 -0
- ogx_client/models/open_ai_response_text.py +154 -0
- ogx_client/models/open_ai_response_text_format.py +157 -0
- ogx_client/models/open_ai_response_tool.py +516 -0
- ogx_client/models/open_ai_response_tool_mcp.py +151 -0
- ogx_client/models/open_ai_response_usage.py +153 -0
- ogx_client/models/open_ai_response_usage_input_tokens_details.py +119 -0
- ogx_client/models/open_ai_response_usage_output_tokens_details.py +119 -0
- ogx_client/models/open_ai_search_vector_store_request.py +171 -0
- ogx_client/models/open_ai_system_message_param.py +151 -0
- ogx_client/models/open_ai_token_log_prob.py +146 -0
- ogx_client/models/open_ai_tool_message_param.py +146 -0
- ogx_client/models/open_ai_top_log_prob.py +128 -0
- ogx_client/models/open_ai_update_vector_store_file_request.py +119 -0
- ogx_client/models/open_ai_update_vector_store_request.py +151 -0
- ogx_client/models/open_ai_user_message_param.py +151 -0
- ogx_client/models/open_ai_user_message_param_input.py +151 -0
- ogx_client/models/open_ai_user_message_param_input5_variants.py +549 -0
- ogx_client/models/open_ai_user_message_param_output.py +151 -0
- ogx_client/models/open_ai_user_message_param_output5_variants.py +549 -0
- ogx_client/models/open_aijson_schema.py +140 -0
- ogx_client/models/order.py +43 -0
- ogx_client/models/output_tokens_details.py +132 -0
- ogx_client/models/paginated_response.py +145 -0
- ogx_client/models/param_type.py +753 -0
- ogx_client/models/process_file_request.py +151 -0
- ogx_client/models/process_file_response.py +149 -0
- ogx_client/models/prompt.py +133 -0
- ogx_client/models/provider_info.py +127 -0
- ogx_client/models/provider_spec.py +169 -0
- ogx_client/models/query_chunks_request.py +141 -0
- ogx_client/models/query_chunks_response.py +149 -0
- ogx_client/models/register_model_request.py +155 -0
- ogx_client/models/remote_provider_spec.py +178 -0
- ogx_client/models/rerank_data.py +122 -0
- ogx_client/models/rerank_request.py +155 -0
- ogx_client/models/rerank_response.py +147 -0
- ogx_client/models/response_format.py +396 -0
- ogx_client/models/response_item_include.py +48 -0
- ogx_client/models/response_retrieve_item_v1_conversations_conversation_id_items_item_id_get.py +849 -0
- ogx_client/models/response_stream_options.py +119 -0
- ogx_client/models/response_truncation.py +43 -0
- ogx_client/models/retrieve_batch_request.py +119 -0
- ogx_client/models/retrieve_file_content_request.py +119 -0
- ogx_client/models/retrieve_file_request.py +119 -0
- ogx_client/models/retrieve_item_request.py +121 -0
- ogx_client/models/route_info.py +123 -0
- ogx_client/models/sampling_params.py +154 -0
- ogx_client/models/sampling_strategy.py +447 -0
- ogx_client/models/score_request.py +136 -0
- ogx_client/models/scoring_result.py +124 -0
- ogx_client/models/search_ranking_options.py +160 -0
- ogx_client/models/service_tier.py +45 -0
- ogx_client/models/set_default_version_body_request.py +119 -0
- ogx_client/models/set_default_version_request.py +121 -0
- ogx_client/models/string4_variants.py +415 -0
- ogx_client/models/string4_variants1.py +416 -0
- ogx_client/models/string_approval_filter.py +222 -0
- ogx_client/models/string_list_anthropic_text_block.py +272 -0
- ogx_client/models/string_list_anthropic_text_block1.py +272 -0
- ogx_client/models/string_list_anthropic_text_block_anthropic_image_block.py +266 -0
- ogx_client/models/string_list_google_input_turn.py +266 -0
- ogx_client/models/string_list_google_text_content_google_function_call_content_google_function_response_content.py +266 -0
- ogx_client/models/string_list_image_content_item_input_text_content_item.py +280 -0
- ogx_client/models/string_list_image_content_item_input_text_content_item1.py +280 -0
- ogx_client/models/string_list_image_content_item_output_text_content_item.py +280 -0
- ogx_client/models/string_list_image_content_item_text_content_item.py +286 -0
- ogx_client/models/string_list_image_content_item_text_content_item1.py +280 -0
- ogx_client/models/string_list_image_content_item_text_content_item2.py +286 -0
- ogx_client/models/string_list_image_content_item_text_content_item3.py +280 -0
- ogx_client/models/string_list_image_content_item_text_content_item4.py +280 -0
- ogx_client/models/string_list_image_content_item_text_content_item5.py +280 -0
- ogx_client/models/string_list_open_ai_chat_completion_content_part_text_param.py +272 -0
- ogx_client/models/string_list_open_ai_chat_completion_content_part_text_param1.py +266 -0
- ogx_client/models/string_list_open_ai_chat_completion_content_part_text_param2.py +266 -0
- ogx_client/models/string_list_open_ai_chat_completion_content_part_text_param3.py +266 -0
- ogx_client/models/string_list_open_ai_chat_completion_content_part_text_param4.py +272 -0
- ogx_client/models/string_list_open_ai_chat_completion_content_part_text_param_open_ai_chat_completion_content_part_image_param_open_ai_file.py +266 -0
- ogx_client/models/string_list_open_ai_response_input_message_content_text_open_ai_response_input_message_content_image_open_ai_response_input_message_content_file.py +266 -0
- ogx_client/models/string_list_open_ai_response_input_message_content_text_open_ai_response_input_message_content_image_open_ai_response_input_message_content_file_list_open_ai_response_output_message_content_output_text_input_open_ai_response_content_part_refusal.py +342 -0
- ogx_client/models/string_list_open_ai_response_input_message_content_text_open_ai_response_input_message_content_image_open_ai_response_input_message_content_file_list_open_ai_response_output_message_content_output_text_open_ai_response_content_part_refusal.py +342 -0
- ogx_client/models/string_list_open_ai_response_input_message_content_text_open_ai_response_input_message_content_image_open_ai_response_input_message_content_file_list_open_ai_response_output_message_content_output_text_output_open_ai_response_content_part_refusal.py +342 -0
- ogx_client/models/string_list_open_ai_response_message_union_open_ai_response_input_function_tool_call_output.py +272 -0
- ogx_client/models/string_list_open_ai_response_message_union_open_ai_response_input_function_tool_call_output1.py +266 -0
- ogx_client/models/string_list_string.py +271 -0
- ogx_client/models/string_list_string1.py +265 -0
- ogx_client/models/string_list_string2.py +265 -0
- ogx_client/models/string_number_boolean.py +225 -0
- ogx_client/models/string_number_boolean1.py +224 -0
- ogx_client/models/string_object.py +271 -0
- ogx_client/models/string_object1.py +271 -0
- ogx_client/models/string_open_ai_chat_completion_content_part_text_param_open_ai_chat_completion_content_part_image_param.py +220 -0
- ogx_client/models/string_open_ai_chat_completion_content_part_text_param_open_ai_chat_completion_content_part_image_param1.py +220 -0
- ogx_client/models/string_type.py +129 -0
- ogx_client/models/system_message.py +144 -0
- ogx_client/models/text_content_item.py +131 -0
- ogx_client/models/text_delta.py +131 -0
- ogx_client/models/token_log_probs.py +119 -0
- ogx_client/models/tool_config.py +119 -0
- ogx_client/models/tool_def.py +154 -0
- ogx_client/models/tool_group.py +167 -0
- ogx_client/models/tool_group_input.py +148 -0
- ogx_client/models/tool_invocation_result.py +158 -0
- ogx_client/models/tool_response_message.py +146 -0
- ogx_client/models/top_k_sampling_strategy.py +132 -0
- ogx_client/models/top_p_sampling_strategy.py +134 -0
- ogx_client/models/union_type.py +129 -0
- ogx_client/models/unregister_model_request.py +119 -0
- ogx_client/models/update_conversation_request.py +119 -0
- ogx_client/models/update_prompt_body_request.py +130 -0
- ogx_client/models/update_prompt_request.py +132 -0
- ogx_client/models/upload_file_request.py +140 -0
- ogx_client/models/url.py +119 -0
- ogx_client/models/urlor_data.py +144 -0
- ogx_client/models/user_message.py +164 -0
- ogx_client/models/vector_store_chunking_strategy.py +453 -0
- ogx_client/models/vector_store_chunking_strategy_auto.py +129 -0
- ogx_client/models/vector_store_chunking_strategy_auto_vector_store_chunking_strategy_static_vector_store_chunking_strategy_contextual.py +453 -0
- ogx_client/models/vector_store_chunking_strategy_auto_vector_store_chunking_strategy_static_vector_store_chunking_strategy_contextual1.py +447 -0
- ogx_client/models/vector_store_chunking_strategy_contextual.py +144 -0
- ogx_client/models/vector_store_chunking_strategy_contextual_config.py +145 -0
- ogx_client/models/vector_store_chunking_strategy_static.py +144 -0
- ogx_client/models/vector_store_chunking_strategy_static_config.py +122 -0
- ogx_client/models/vector_store_content.py +162 -0
- ogx_client/models/vector_store_create_request.py +167 -0
- ogx_client/models/vector_store_delete_response.py +133 -0
- ogx_client/models/vector_store_expiration_after.py +129 -0
- ogx_client/models/vector_store_file_batch_file_entry.py +164 -0
- ogx_client/models/vector_store_file_batch_object.py +159 -0
- ogx_client/models/vector_store_file_content_response.py +151 -0
- ogx_client/models/vector_store_file_counts.py +127 -0
- ogx_client/models/vector_store_file_delete_response.py +133 -0
- ogx_client/models/vector_store_file_last_error.py +128 -0
- ogx_client/models/vector_store_file_object.py +206 -0
- ogx_client/models/vector_store_file_status.py +45 -0
- ogx_client/models/vector_store_files_list_in_batch_response.py +148 -0
- ogx_client/models/vector_store_list_files_response.py +148 -0
- ogx_client/models/vector_store_list_response.py +148 -0
- ogx_client/models/vector_store_modify_request.py +151 -0
- ogx_client/models/vector_store_object.py +202 -0
- ogx_client/models/vector_store_search_request.py +151 -0
- ogx_client/models/vector_store_search_response.py +161 -0
- ogx_client/models/vector_store_search_response_page.py +153 -0
- ogx_client/models/vector_store_status.py +44 -0
- ogx_client/models/version_info.py +119 -0
- ogx_client/ogx_client.py +309 -0
- ogx_client/py.typed +0 -0
- ogx_client/rest.py +255 -0
- ogx_client/stream.py +183 -0
- ogx_open_client/__init__.py +1167 -0
- ogx_open_client/_exceptions.py +114 -0
- ogx_open_client/_types.py +312 -0
- ogx_open_client/_version.py +8 -0
- ogx_open_client/api/__init__.py +33 -0
- ogx_open_client/api/admin_api.py +1411 -0
- ogx_open_client/api/alpha_api.py +354 -0
- ogx_open_client/api/batches_api.py +1247 -0
- ogx_open_client/api/chat_api.py +352 -0
- ogx_open_client/api/chat_completions_api.py +1028 -0
- ogx_open_client/api/completions_api.py +440 -0
- ogx_open_client/api/connectors_api.py +1235 -0
- ogx_open_client/api/conversations_api.py +1288 -0
- ogx_open_client/api/embeddings_api.py +429 -0
- ogx_open_client/api/file_batches_api.py +1370 -0
- ogx_open_client/api/file_processors_api.py +442 -0
- ogx_open_client/api/files_api.py +1539 -0
- ogx_open_client/api/inference_api.py +429 -0
- ogx_open_client/api/input_items_api.py +472 -0
- ogx_open_client/api/inspect_api.py +617 -0
- ogx_open_client/api/interactions_api.py +430 -0
- ogx_open_client/api/items_api.py +1359 -0
- ogx_open_client/api/messages_api.py +2466 -0
- ogx_open_client/api/models_api.py +451 -0
- ogx_open_client/api/openai_api.py +481 -0
- ogx_open_client/api/prompts_api.py +1883 -0
- ogx_open_client/api/providers_api.py +636 -0
- ogx_open_client/api/responses_api.py +1876 -0
- ogx_open_client/api/routes_api.py +389 -0
- ogx_open_client/api/tools_api.py +389 -0
- ogx_open_client/api/vector_io_api.py +740 -0
- ogx_open_client/api/vector_stores_api.py +1936 -0
- ogx_open_client/api/vector_stores_files_api.py +2011 -0
- ogx_open_client/api/versions_api.py +386 -0
- ogx_open_client/api_client.py +833 -0
- ogx_open_client/api_response.py +21 -0
- ogx_open_client/async_api_client.py +203 -0
- ogx_open_client/async_api_response.py +134 -0
- ogx_open_client/async_stream.py +161 -0
- ogx_open_client/configuration.py +585 -0
- ogx_open_client/exceptions.py +253 -0
- ogx_open_client/lib/__init__.py +17 -0
- ogx_open_client/lib/_utils.py +26 -0
- ogx_open_client/lib/agents/__init__.py +5 -0
- ogx_open_client/lib/agents/agent.py +540 -0
- ogx_open_client/lib/agents/client_tool.py +258 -0
- ogx_open_client/lib/agents/event_logger.py +134 -0
- ogx_open_client/lib/agents/event_synthesizer.py +448 -0
- ogx_open_client/lib/agents/react/__init__.py +5 -0
- ogx_open_client/lib/agents/react/agent.py +94 -0
- ogx_open_client/lib/agents/react/prompts.py +151 -0
- ogx_open_client/lib/agents/react/tool_parser.py +59 -0
- ogx_open_client/lib/agents/tool_parser.py +42 -0
- ogx_open_client/lib/agents/turn_events.py +268 -0
- ogx_open_client/lib/agents/types.py +63 -0
- ogx_open_client/lib/cli/__init__.py +12 -0
- ogx_open_client/lib/cli/common/__init__.py +5 -0
- ogx_open_client/lib/cli/common/utils.py +54 -0
- ogx_open_client/lib/cli/configure.py +68 -0
- ogx_open_client/lib/cli/constants.py +14 -0
- ogx_open_client/lib/cli/datasets/__init__.py +9 -0
- ogx_open_client/lib/cli/datasets/datasets.py +22 -0
- ogx_open_client/lib/cli/datasets/list.py +32 -0
- ogx_open_client/lib/cli/datasets/register.py +78 -0
- ogx_open_client/lib/cli/datasets/unregister.py +20 -0
- ogx_open_client/lib/cli/eval/__init__.py +9 -0
- ogx_open_client/lib/cli/eval/eval.py +22 -0
- ogx_open_client/lib/cli/eval/run_benchmark.py +193 -0
- ogx_open_client/lib/cli/eval/run_scoring.py +116 -0
- ogx_open_client/lib/cli/eval/utils.py +59 -0
- ogx_open_client/lib/cli/eval_tasks/__init__.py +9 -0
- ogx_open_client/lib/cli/eval_tasks/eval_tasks.py +65 -0
- ogx_open_client/lib/cli/eval_tasks/list.py +35 -0
- ogx_open_client/lib/cli/inference/__init__.py +9 -0
- ogx_open_client/lib/cli/inference/inference.py +88 -0
- ogx_open_client/lib/cli/inspect/__init__.py +9 -0
- ogx_open_client/lib/cli/inspect/inspect.py +19 -0
- ogx_open_client/lib/cli/inspect/version.py +22 -0
- ogx_open_client/lib/cli/models/__init__.py +9 -0
- ogx_open_client/lib/cli/models/models.py +149 -0
- ogx_open_client/lib/cli/ogx_client.py +111 -0
- ogx_open_client/lib/cli/post_training/__init__.py +9 -0
- ogx_open_client/lib/cli/post_training/post_training.py +114 -0
- ogx_open_client/lib/cli/providers/__init__.py +9 -0
- ogx_open_client/lib/cli/providers/inspect.py +33 -0
- ogx_open_client/lib/cli/providers/list.py +32 -0
- ogx_open_client/lib/cli/providers/providers.py +21 -0
- ogx_open_client/lib/cli/scoring_functions/__init__.py +9 -0
- ogx_open_client/lib/cli/scoring_functions/list.py +38 -0
- ogx_open_client/lib/cli/scoring_functions/scoring_functions.py +62 -0
- ogx_open_client/lib/cli/toolgroups/__init__.py +9 -0
- ogx_open_client/lib/cli/toolgroups/toolgroups.py +129 -0
- ogx_open_client/lib/cli/vector_stores/__init__.py +9 -0
- ogx_open_client/lib/cli/vector_stores/vector_stores.py +138 -0
- ogx_open_client/lib/inference/__init__.py +5 -0
- ogx_open_client/lib/inference/event_logger.py +58 -0
- ogx_open_client/lib/inference/utils.py +21 -0
- ogx_open_client/lib/stream_printer.py +30 -0
- ogx_open_client/lib/tools/__init__.py +9 -0
- ogx_open_client/lib/tools/mcp_oauth.py +303 -0
- ogx_open_client/models/__init__.py +521 -0
- ogx_open_client/models/add_items_request.py +148 -0
- ogx_open_client/models/allowed_tools_config.py +145 -0
- ogx_open_client/models/allowed_tools_filter.py +141 -0
- ogx_open_client/models/anthropic_base64_image_source.py +140 -0
- ogx_open_client/models/anthropic_base64_image_source_anthropic_url_image_source.py +396 -0
- ogx_open_client/models/anthropic_bash_tool.py +161 -0
- ogx_open_client/models/anthropic_cache_control.py +129 -0
- ogx_open_client/models/anthropic_count_tokens_request.py +170 -0
- ogx_open_client/models/anthropic_count_tokens_response.py +119 -0
- ogx_open_client/models/anthropic_create_message_request.py +217 -0
- ogx_open_client/models/anthropic_custom_tool_def.py +160 -0
- ogx_open_client/models/anthropic_custom_tool_def4_variants.py +510 -0
- ogx_open_client/models/anthropic_image_block.py +164 -0
- ogx_open_client/models/anthropic_list_models_response.py +163 -0
- ogx_open_client/models/anthropic_message.py +141 -0
- ogx_open_client/models/anthropic_message_response.py +187 -0
- ogx_open_client/models/anthropic_model_info.py +149 -0
- ogx_open_client/models/anthropic_redacted_thinking_block.py +131 -0
- ogx_open_client/models/anthropic_text_block.py +151 -0
- ogx_open_client/models/anthropic_text_block5_variants.py +549 -0
- ogx_open_client/models/anthropic_text_block5_variants1.py +549 -0
- ogx_open_client/models/anthropic_text_block6_variants.py +600 -0
- ogx_open_client/models/anthropic_text_block6_variants1.py +600 -0
- ogx_open_client/models/anthropic_text_block_anthropic_image_block.py +203 -0
- ogx_open_client/models/anthropic_text_editor_tool.py +155 -0
- ogx_open_client/models/anthropic_thinking_block.py +158 -0
- ogx_open_client/models/anthropic_thinking_config.py +137 -0
- ogx_open_client/models/anthropic_tool_def.py +128 -0
- ogx_open_client/models/anthropic_tool_result_block_input.py +173 -0
- ogx_open_client/models/anthropic_tool_result_block_output.py +173 -0
- ogx_open_client/models/anthropic_tool_use_block.py +155 -0
- ogx_open_client/models/anthropic_url_image_source.py +131 -0
- ogx_open_client/models/anthropic_usage.py +135 -0
- ogx_open_client/models/anthropic_web_search_tool.py +202 -0
- ogx_open_client/models/api.py +59 -0
- ogx_open_client/models/approval_filter.py +148 -0
- ogx_open_client/models/array_type.py +129 -0
- ogx_open_client/models/batch.py +302 -0
- ogx_open_client/models/batch_error.py +158 -0
- ogx_open_client/models/batch_request_counts.py +136 -0
- ogx_open_client/models/batch_usage.py +166 -0
- ogx_open_client/models/bf16_quantization_config.py +129 -0
- ogx_open_client/models/boolean_type.py +129 -0
- ogx_open_client/models/cancel_batch_request.py +119 -0
- ogx_open_client/models/chat_completion_input_type.py +129 -0
- ogx_open_client/models/chat_completion_message.py +216 -0
- ogx_open_client/models/chat_completion_message_custom_tool_call.py +143 -0
- ogx_open_client/models/chat_completion_message_custom_tool_call_custom.py +121 -0
- ogx_open_client/models/chat_completion_message_function_call.py +121 -0
- ogx_open_client/models/chat_completion_message_list.py +165 -0
- ogx_open_client/models/chat_completion_message_tool_call.py +143 -0
- ogx_open_client/models/chat_completion_message_tool_call_chat_completion_message_custom_tool_call.py +203 -0
- ogx_open_client/models/chat_completion_message_tool_call_chat_completion_message_custom_tool_call1.py +206 -0
- ogx_open_client/models/chat_completion_message_tool_call_function.py +121 -0
- ogx_open_client/models/chunk.py +151 -0
- ogx_open_client/models/chunk_for_deletion.py +121 -0
- ogx_open_client/models/chunk_metadata.py +180 -0
- ogx_open_client/models/compact_response_request.py +239 -0
- ogx_open_client/models/comparison_filter.py +135 -0
- ogx_open_client/models/completion_input_type.py +129 -0
- ogx_open_client/models/compound_filter.py +128 -0
- ogx_open_client/models/connector.py +152 -0
- ogx_open_client/models/connector_input.py +131 -0
- ogx_open_client/models/connector_type.py +42 -0
- ogx_open_client/models/context_management.py +133 -0
- ogx_open_client/models/conversation.py +140 -0
- ogx_open_client/models/conversation_deleted_resource.py +133 -0
- ogx_open_client/models/conversation_item.py +855 -0
- ogx_open_client/models/conversation_item_create_request.py +148 -0
- ogx_open_client/models/conversation_item_deleted_resource.py +133 -0
- ogx_open_client/models/conversation_item_include.py +48 -0
- ogx_open_client/models/conversation_item_list.py +158 -0
- ogx_open_client/models/conversation_message.py +149 -0
- ogx_open_client/models/create_batch_request.py +144 -0
- ogx_open_client/models/create_conversation_request.py +159 -0
- ogx_open_client/models/create_message_batch_request.py +148 -0
- ogx_open_client/models/create_prompt_request.py +126 -0
- ogx_open_client/models/create_response_request.py +402 -0
- ogx_open_client/models/custom_tool_config.py +119 -0
- ogx_open_client/models/delete_chunks_request.py +132 -0
- ogx_open_client/models/delete_conversation_request.py +119 -0
- ogx_open_client/models/delete_file_request.py +119 -0
- ogx_open_client/models/delete_item_request.py +121 -0
- ogx_open_client/models/delete_prompt_request.py +119 -0
- ogx_open_client/models/dialog_type.py +129 -0
- ogx_open_client/models/embedded_chunk.py +157 -0
- ogx_open_client/models/embedded_chunk_input.py +157 -0
- ogx_open_client/models/embedded_chunk_output.py +157 -0
- ogx_open_client/models/embeddings_response.py +136 -0
- ogx_open_client/models/error.py +143 -0
- ogx_open_client/models/error_detail.py +313 -0
- ogx_open_client/models/errors.py +172 -0
- ogx_open_client/models/expires_after.py +129 -0
- ogx_open_client/models/fp8_quantization_config.py +129 -0
- ogx_open_client/models/function_tool_config.py +119 -0
- ogx_open_client/models/get_chat_completion_request.py +119 -0
- ogx_open_client/models/get_connector_request.py +119 -0
- ogx_open_client/models/get_connector_tool_request.py +121 -0
- ogx_open_client/models/get_conversation_request.py +119 -0
- ogx_open_client/models/get_model_request.py +119 -0
- ogx_open_client/models/get_model_v1_models_model_id_get200_response.py +414 -0
- ogx_open_client/models/get_prompt_request.py +126 -0
- ogx_open_client/models/google_create_interaction_request.py +213 -0
- ogx_open_client/models/google_function_call_content.py +153 -0
- ogx_open_client/models/google_function_call_output.py +153 -0
- ogx_open_client/models/google_function_declaration.py +146 -0
- ogx_open_client/models/google_function_response_content.py +160 -0
- ogx_open_client/models/google_generation_config.py +146 -0
- ogx_open_client/models/google_input_turn.py +141 -0
- ogx_open_client/models/google_interaction_response.py +199 -0
- ogx_open_client/models/google_list_models_response.py +147 -0
- ogx_open_client/models/google_model_info.py +123 -0
- ogx_open_client/models/google_text_content.py +131 -0
- ogx_open_client/models/google_text_content_google_function_call_content_google_function_response_content.py +218 -0
- ogx_open_client/models/google_text_output.py +131 -0
- ogx_open_client/models/google_text_output_google_function_call_output_google_thought_output.py +447 -0
- ogx_open_client/models/google_thought_output.py +149 -0
- ogx_open_client/models/google_tool.py +145 -0
- ogx_open_client/models/google_usage.py +136 -0
- ogx_open_client/models/grammar_response_format.py +131 -0
- ogx_open_client/models/greedy_sampling_strategy.py +129 -0
- ogx_open_client/models/greedy_sampling_strategy_top_p_sampling_strategy_top_k_sampling_strategy.py +447 -0
- ogx_open_client/models/health_info.py +120 -0
- ogx_open_client/models/health_status.py +44 -0
- ogx_open_client/models/image_content_item.py +144 -0
- ogx_open_client/models/image_content_item_input.py +144 -0
- ogx_open_client/models/image_content_item_input_text_content_item.py +396 -0
- ogx_open_client/models/image_content_item_output.py +144 -0
- ogx_open_client/models/image_content_item_output_text_content_item.py +396 -0
- ogx_open_client/models/image_content_item_text_content_item.py +396 -0
- ogx_open_client/models/image_delta.py +131 -0
- ogx_open_client/models/inline_provider_spec.py +183 -0
- ogx_open_client/models/input_tokens_details.py +132 -0
- ogx_open_client/models/insert_chunks_request.py +139 -0
- ogx_open_client/models/inspect_provider_request.py +119 -0
- ogx_open_client/models/int4_quantization_config.py +136 -0
- ogx_open_client/models/integer_number.py +207 -0
- ogx_open_client/models/interleaved_content.py +280 -0
- ogx_open_client/models/interleaved_content_item.py +396 -0
- ogx_open_client/models/job.py +122 -0
- ogx_open_client/models/job_status.py +46 -0
- ogx_open_client/models/json_schema_response_format.py +131 -0
- ogx_open_client/models/json_type.py +129 -0
- ogx_open_client/models/list_batches_request.py +126 -0
- ogx_open_client/models/list_batches_response.py +158 -0
- ogx_open_client/models/list_chat_completion_messages_request.py +142 -0
- ogx_open_client/models/list_chat_completions_request.py +147 -0
- ogx_open_client/models/list_connector_tools_request.py +119 -0
- ogx_open_client/models/list_connectors_response.py +147 -0
- ogx_open_client/models/list_files_request.py +147 -0
- ogx_open_client/models/list_items_request.py +158 -0
- ogx_open_client/models/list_message_batches_response.py +163 -0
- ogx_open_client/models/list_models_response.py +147 -0
- ogx_open_client/models/list_models_v1_models_get200_response.py +414 -0
- ogx_open_client/models/list_number_string.py +265 -0
- ogx_open_client/models/list_open_ai_chat_completion_response.py +165 -0
- ogx_open_client/models/list_open_ai_file_response.py +165 -0
- ogx_open_client/models/list_open_ai_response_input_item.py +159 -0
- ogx_open_client/models/list_open_ai_response_object.py +165 -0
- ogx_open_client/models/list_prompt_versions_request.py +119 -0
- ogx_open_client/models/list_prompts_response.py +147 -0
- ogx_open_client/models/list_providers_response.py +147 -0
- ogx_open_client/models/list_routes_request.py +134 -0
- ogx_open_client/models/list_routes_response.py +147 -0
- ogx_open_client/models/list_string_allowed_tools_filter.py +269 -0
- ogx_open_client/models/list_tool_defs_response.py +147 -0
- ogx_open_client/models/list_tool_groups_response.py +147 -0
- ogx_open_client/models/list_tools_request.py +124 -0
- ogx_open_client/models/list_tools_response.py +147 -0
- ogx_open_client/models/mcp_list_tools_tool.py +128 -0
- ogx_open_client/models/message_batch.py +187 -0
- ogx_open_client/models/message_batch_request_counts.py +127 -0
- ogx_open_client/models/message_batch_request_params.py +142 -0
- ogx_open_client/models/metric_in_response.py +141 -0
- ogx_open_client/models/model.py +171 -0
- ogx_open_client/models/model_type.py +44 -0
- ogx_open_client/models/number_type.py +129 -0
- ogx_open_client/models/object_type.py +129 -0
- ogx_open_client/models/open_ai_assistant_message_param.py +187 -0
- ogx_open_client/models/open_ai_assistant_message_param_input.py +187 -0
- ogx_open_client/models/open_ai_assistant_message_param_output.py +187 -0
- ogx_open_client/models/open_ai_attach_file_request.py +164 -0
- ogx_open_client/models/open_ai_chat_completion.py +173 -0
- ogx_open_client/models/open_ai_chat_completion_chunk.py +173 -0
- ogx_open_client/models/open_ai_chat_completion_content_part_image_param.py +144 -0
- ogx_open_client/models/open_ai_chat_completion_content_part_param.py +447 -0
- ogx_open_client/models/open_ai_chat_completion_content_part_text_param.py +131 -0
- ogx_open_client/models/open_ai_chat_completion_content_part_text_param_open_ai_chat_completion_content_part_image_param.py +203 -0
- ogx_open_client/models/open_ai_chat_completion_content_part_text_param_open_ai_chat_completion_content_part_image_param_open_ai_file.py +447 -0
- ogx_open_client/models/open_ai_chat_completion_custom_tool_call_function.py +121 -0
- ogx_open_client/models/open_ai_chat_completion_request_with_extra_body.py +377 -0
- ogx_open_client/models/open_ai_chat_completion_response_message.py +180 -0
- ogx_open_client/models/open_ai_chat_completion_tool_call_function.py +121 -0
- ogx_open_client/models/open_ai_chat_completion_tool_choice.py +447 -0
- ogx_open_client/models/open_ai_chat_completion_tool_choice_allowed_tools.py +144 -0
- ogx_open_client/models/open_ai_chat_completion_tool_choice_custom_tool.py +144 -0
- ogx_open_client/models/open_ai_chat_completion_tool_choice_function_tool.py +144 -0
- ogx_open_client/models/open_ai_chat_completion_usage.py +154 -0
- ogx_open_client/models/open_ai_chat_completion_usage_completion_tokens_details.py +120 -0
- ogx_open_client/models/open_ai_chat_completion_usage_prompt_tokens_details.py +120 -0
- ogx_open_client/models/open_ai_choice.py +167 -0
- ogx_open_client/models/open_ai_choice_delta.py +163 -0
- ogx_open_client/models/open_ai_choice_logprobs.py +169 -0
- ogx_open_client/models/open_ai_chunk_choice.py +162 -0
- ogx_open_client/models/open_ai_chunk_choice_logprobs.py +169 -0
- ogx_open_client/models/open_ai_compacted_response.py +161 -0
- ogx_open_client/models/open_ai_completion.py +149 -0
- ogx_open_client/models/open_ai_completion_choice.py +154 -0
- ogx_open_client/models/open_ai_completion_logprobs.py +162 -0
- ogx_open_client/models/open_ai_completion_request_with_extra_body.py +273 -0
- ogx_open_client/models/open_ai_completion_with_input_messages.py +186 -0
- ogx_open_client/models/open_ai_create_vector_store_file_batch_request_with_extra_body.py +212 -0
- ogx_open_client/models/open_ai_create_vector_store_request_with_extra_body.py +198 -0
- ogx_open_client/models/open_ai_delete_response_object.py +133 -0
- ogx_open_client/models/open_ai_developer_message_param.py +151 -0
- ogx_open_client/models/open_ai_embedding_data.py +147 -0
- ogx_open_client/models/open_ai_embedding_usage.py +121 -0
- ogx_open_client/models/open_ai_embeddings_request_with_extra_body.py +164 -0
- ogx_open_client/models/open_ai_embeddings_response.py +160 -0
- ogx_open_client/models/open_ai_file.py +144 -0
- ogx_open_client/models/open_ai_file_delete_response.py +133 -0
- ogx_open_client/models/open_ai_file_file.py +138 -0
- ogx_open_client/models/open_ai_file_object.py +153 -0
- ogx_open_client/models/open_ai_file_purpose.py +50 -0
- ogx_open_client/models/open_ai_file_upload_purpose.py +47 -0
- ogx_open_client/models/open_ai_finish_reason.py +46 -0
- ogx_open_client/models/open_ai_image_url.py +136 -0
- ogx_open_client/models/open_ai_list_models_response.py +142 -0
- ogx_open_client/models/open_ai_message_param.py +549 -0
- ogx_open_client/models/open_ai_model.py +142 -0
- ogx_open_client/models/open_ai_response_annotation_citation.py +137 -0
- ogx_open_client/models/open_ai_response_annotation_container_file_citation.py +139 -0
- ogx_open_client/models/open_ai_response_annotation_file_citation.py +135 -0
- ogx_open_client/models/open_ai_response_annotation_file_citation4_variants.py +498 -0
- ogx_open_client/models/open_ai_response_annotation_file_path.py +133 -0
- ogx_open_client/models/open_ai_response_annotations.py +498 -0
- ogx_open_client/models/open_ai_response_compaction.py +138 -0
- ogx_open_client/models/open_ai_response_content_part.py +447 -0
- ogx_open_client/models/open_ai_response_content_part_output_text.py +162 -0
- ogx_open_client/models/open_ai_response_content_part_output_text_open_ai_response_content_part_refusal_open_ai_response_content_part_reasoning_text.py +447 -0
- ogx_open_client/models/open_ai_response_content_part_reasoning_summary.py +131 -0
- ogx_open_client/models/open_ai_response_content_part_reasoning_text.py +131 -0
- ogx_open_client/models/open_ai_response_content_part_refusal.py +131 -0
- ogx_open_client/models/open_ai_response_error.py +121 -0
- ogx_open_client/models/open_ai_response_format_json_object.py +129 -0
- ogx_open_client/models/open_ai_response_format_json_schema.py +144 -0
- ogx_open_client/models/open_ai_response_format_param.py +447 -0
- ogx_open_client/models/open_ai_response_format_text.py +129 -0
- ogx_open_client/models/open_ai_response_format_text_open_ai_response_format_json_schema_open_ai_response_format_json_object.py +453 -0
- ogx_open_client/models/open_ai_response_incomplete_details.py +119 -0
- ogx_open_client/models/open_ai_response_input.py +251 -0
- ogx_open_client/models/open_ai_response_input_function_tool_call_output.py +160 -0
- ogx_open_client/models/open_ai_response_input_function_tool_call_output_open_ai_response_mcp_approval_response_open_ai_response_compaction.py +233 -0
- ogx_open_client/models/open_ai_response_input_message_content.py +447 -0
- ogx_open_client/models/open_ai_response_input_message_content_file.py +157 -0
- ogx_open_client/models/open_ai_response_input_message_content_image.py +155 -0
- ogx_open_client/models/open_ai_response_input_message_content_text.py +131 -0
- ogx_open_client/models/open_ai_response_input_message_content_text_open_ai_response_input_message_content_image_open_ai_response_input_message_content_file.py +447 -0
- ogx_open_client/models/open_ai_response_input_tool.py +516 -0
- ogx_open_client/models/open_ai_response_input_tool_choice.py +203 -0
- ogx_open_client/models/open_ai_response_input_tool_choice_allowed_tools.py +143 -0
- ogx_open_client/models/open_ai_response_input_tool_choice_allowed_tools6_variants.py +618 -0
- ogx_open_client/models/open_ai_response_input_tool_choice_custom_tool.py +131 -0
- ogx_open_client/models/open_ai_response_input_tool_choice_file_search.py +129 -0
- ogx_open_client/models/open_ai_response_input_tool_choice_function_tool.py +131 -0
- ogx_open_client/models/open_ai_response_input_tool_choice_mcp_tool.py +138 -0
- ogx_open_client/models/open_ai_response_input_tool_choice_mode.py +44 -0
- ogx_open_client/models/open_ai_response_input_tool_choice_mode1.py +209 -0
- ogx_open_client/models/open_ai_response_input_tool_choice_mode2.py +209 -0
- ogx_open_client/models/open_ai_response_input_tool_choice_web_search.py +129 -0
- ogx_open_client/models/open_ai_response_input_tool_file_search.py +166 -0
- ogx_open_client/models/open_ai_response_input_tool_function.py +152 -0
- ogx_open_client/models/open_ai_response_input_tool_mcp.py +194 -0
- ogx_open_client/models/open_ai_response_input_tool_web_search.py +186 -0
- ogx_open_client/models/open_ai_response_input_tool_web_search4_variants.py +516 -0
- ogx_open_client/models/open_ai_response_input_tool_web_search4_variants1.py +516 -0
- ogx_open_client/models/open_ai_response_mcp_approval_request.py +137 -0
- ogx_open_client/models/open_ai_response_mcp_approval_response.py +147 -0
- ogx_open_client/models/open_ai_response_message.py +167 -0
- ogx_open_client/models/open_ai_response_message11_variants.py +855 -0
- ogx_open_client/models/open_ai_response_message8_variants.py +702 -0
- ogx_open_client/models/open_ai_response_message_input.py +167 -0
- ogx_open_client/models/open_ai_response_message_input11_variants.py +855 -0
- ogx_open_client/models/open_ai_response_message_input8_variants.py +702 -0
- ogx_open_client/models/open_ai_response_message_output.py +167 -0
- ogx_open_client/models/open_ai_response_message_output11_variants.py +855 -0
- ogx_open_client/models/open_ai_response_message_output8_variants.py +702 -0
- ogx_open_client/models/open_ai_response_message_output_union.py +233 -0
- ogx_open_client/models/open_ai_response_object.py +407 -0
- ogx_open_client/models/open_ai_response_object_stream.py +2181 -0
- ogx_open_client/models/open_ai_response_object_stream_error.py +147 -0
- ogx_open_client/models/open_ai_response_object_stream_response_completed.py +146 -0
- ogx_open_client/models/open_ai_response_object_stream_response_content_part_added.py +154 -0
- ogx_open_client/models/open_ai_response_object_stream_response_content_part_done.py +154 -0
- ogx_open_client/models/open_ai_response_object_stream_response_created.py +146 -0
- ogx_open_client/models/open_ai_response_object_stream_response_failed.py +146 -0
- ogx_open_client/models/open_ai_response_object_stream_response_file_search_call_completed.py +135 -0
- ogx_open_client/models/open_ai_response_object_stream_response_file_search_call_in_progress.py +135 -0
- ogx_open_client/models/open_ai_response_object_stream_response_file_search_call_searching.py +135 -0
- ogx_open_client/models/open_ai_response_object_stream_response_function_call_arguments_delta.py +137 -0
- ogx_open_client/models/open_ai_response_object_stream_response_function_call_arguments_done.py +137 -0
- ogx_open_client/models/open_ai_response_object_stream_response_in_progress.py +146 -0
- ogx_open_client/models/open_ai_response_object_stream_response_incomplete.py +146 -0
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_call_arguments_delta.py +137 -0
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_call_arguments_done.py +137 -0
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_call_completed.py +131 -0
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_call_failed.py +131 -0
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_call_in_progress.py +135 -0
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_list_tools_completed.py +131 -0
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_list_tools_failed.py +131 -0
- ogx_open_client/models/open_ai_response_object_stream_response_mcp_list_tools_in_progress.py +131 -0
- ogx_open_client/models/open_ai_response_object_stream_response_output_item_added.py +150 -0
- ogx_open_client/models/open_ai_response_object_stream_response_output_item_done.py +150 -0
- ogx_open_client/models/open_ai_response_object_stream_response_output_text_annotation_added.py +154 -0
- ogx_open_client/models/open_ai_response_object_stream_response_output_text_delta.py +157 -0
- ogx_open_client/models/open_ai_response_object_stream_response_output_text_done.py +139 -0
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_summary_part_added.py +152 -0
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_summary_part_done.py +152 -0
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_summary_text_delta.py +139 -0
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_summary_text_done.py +139 -0
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_text_delta.py +139 -0
- ogx_open_client/models/open_ai_response_object_stream_response_reasoning_text_done.py +139 -0
- ogx_open_client/models/open_ai_response_object_stream_response_refusal_delta.py +139 -0
- ogx_open_client/models/open_ai_response_object_stream_response_refusal_done.py +139 -0
- ogx_open_client/models/open_ai_response_object_stream_response_web_search_call_completed.py +135 -0
- ogx_open_client/models/open_ai_response_object_stream_response_web_search_call_in_progress.py +135 -0
- ogx_open_client/models/open_ai_response_object_stream_response_web_search_call_searching.py +135 -0
- ogx_open_client/models/open_ai_response_object_with_input.py +425 -0
- ogx_open_client/models/open_ai_response_output.py +702 -0
- ogx_open_client/models/open_ai_response_output_item.py +702 -0
- ogx_open_client/models/open_ai_response_output_message_content.py +396 -0
- ogx_open_client/models/open_ai_response_output_message_content_output_text.py +162 -0
- ogx_open_client/models/open_ai_response_output_message_content_output_text_input.py +162 -0
- ogx_open_client/models/open_ai_response_output_message_content_output_text_input_open_ai_response_content_part_refusal.py +396 -0
- ogx_open_client/models/open_ai_response_output_message_content_output_text_open_ai_response_content_part_refusal.py +396 -0
- ogx_open_client/models/open_ai_response_output_message_content_output_text_output.py +162 -0
- ogx_open_client/models/open_ai_response_output_message_content_output_text_output_open_ai_response_content_part_refusal.py +396 -0
- ogx_open_client/models/open_ai_response_output_message_file_search_tool_call.py +153 -0
- ogx_open_client/models/open_ai_response_output_message_file_search_tool_call_results.py +127 -0
- ogx_open_client/models/open_ai_response_output_message_function_tool_call.py +149 -0
- ogx_open_client/models/open_ai_response_output_message_mcp_call.py +151 -0
- ogx_open_client/models/open_ai_response_output_message_mcp_list_tools.py +146 -0
- ogx_open_client/models/open_ai_response_output_message_reasoning_content.py +131 -0
- ogx_open_client/models/open_ai_response_output_message_reasoning_item.py +179 -0
- ogx_open_client/models/open_ai_response_output_message_reasoning_summary.py +131 -0
- ogx_open_client/models/open_ai_response_output_message_web_search_tool_call.py +153 -0
- ogx_open_client/models/open_ai_response_output_message_web_search_tool_call_input.py +153 -0
- ogx_open_client/models/open_ai_response_output_message_web_search_tool_call_output.py +153 -0
- ogx_open_client/models/open_ai_response_prompt.py +151 -0
- ogx_open_client/models/open_ai_response_reasoning.py +168 -0
- ogx_open_client/models/open_ai_response_text.py +154 -0
- ogx_open_client/models/open_ai_response_text_format.py +157 -0
- ogx_open_client/models/open_ai_response_tool.py +516 -0
- ogx_open_client/models/open_ai_response_tool_mcp.py +151 -0
- ogx_open_client/models/open_ai_response_usage.py +153 -0
- ogx_open_client/models/open_ai_response_usage_input_tokens_details.py +119 -0
- ogx_open_client/models/open_ai_response_usage_output_tokens_details.py +119 -0
- ogx_open_client/models/open_ai_search_vector_store_request.py +171 -0
- ogx_open_client/models/open_ai_system_message_param.py +151 -0
- ogx_open_client/models/open_ai_token_log_prob.py +146 -0
- ogx_open_client/models/open_ai_tool_message_param.py +146 -0
- ogx_open_client/models/open_ai_top_log_prob.py +128 -0
- ogx_open_client/models/open_ai_update_vector_store_file_request.py +119 -0
- ogx_open_client/models/open_ai_update_vector_store_request.py +151 -0
- ogx_open_client/models/open_ai_user_message_param.py +151 -0
- ogx_open_client/models/open_ai_user_message_param_input.py +151 -0
- ogx_open_client/models/open_ai_user_message_param_input5_variants.py +549 -0
- ogx_open_client/models/open_ai_user_message_param_output.py +151 -0
- ogx_open_client/models/open_ai_user_message_param_output5_variants.py +549 -0
- ogx_open_client/models/open_aijson_schema.py +140 -0
- ogx_open_client/models/order.py +43 -0
- ogx_open_client/models/output_tokens_details.py +132 -0
- ogx_open_client/models/paginated_response.py +145 -0
- ogx_open_client/models/param_type.py +753 -0
- ogx_open_client/models/process_file_request.py +151 -0
- ogx_open_client/models/process_file_response.py +149 -0
- ogx_open_client/models/prompt.py +133 -0
- ogx_open_client/models/provider_info.py +127 -0
- ogx_open_client/models/provider_spec.py +169 -0
- ogx_open_client/models/query_chunks_request.py +141 -0
- ogx_open_client/models/query_chunks_response.py +149 -0
- ogx_open_client/models/register_model_request.py +155 -0
- ogx_open_client/models/remote_provider_spec.py +178 -0
- ogx_open_client/models/rerank_data.py +122 -0
- ogx_open_client/models/rerank_request.py +155 -0
- ogx_open_client/models/rerank_response.py +147 -0
- ogx_open_client/models/response_format.py +396 -0
- ogx_open_client/models/response_item_include.py +48 -0
- ogx_open_client/models/response_retrieve_item_v1_conversations_conversation_id_items_item_id_get.py +849 -0
- ogx_open_client/models/response_stream_options.py +119 -0
- ogx_open_client/models/response_truncation.py +43 -0
- ogx_open_client/models/retrieve_batch_request.py +119 -0
- ogx_open_client/models/retrieve_file_content_request.py +119 -0
- ogx_open_client/models/retrieve_file_request.py +119 -0
- ogx_open_client/models/retrieve_item_request.py +121 -0
- ogx_open_client/models/route_info.py +123 -0
- ogx_open_client/models/sampling_params.py +154 -0
- ogx_open_client/models/sampling_strategy.py +447 -0
- ogx_open_client/models/score_request.py +136 -0
- ogx_open_client/models/scoring_result.py +124 -0
- ogx_open_client/models/search_ranking_options.py +160 -0
- ogx_open_client/models/service_tier.py +45 -0
- ogx_open_client/models/set_default_version_body_request.py +119 -0
- ogx_open_client/models/set_default_version_request.py +121 -0
- ogx_open_client/models/string4_variants.py +415 -0
- ogx_open_client/models/string4_variants1.py +416 -0
- ogx_open_client/models/string_approval_filter.py +222 -0
- ogx_open_client/models/string_list_anthropic_text_block.py +272 -0
- ogx_open_client/models/string_list_anthropic_text_block1.py +272 -0
- ogx_open_client/models/string_list_anthropic_text_block_anthropic_image_block.py +266 -0
- ogx_open_client/models/string_list_google_input_turn.py +266 -0
- ogx_open_client/models/string_list_google_text_content_google_function_call_content_google_function_response_content.py +266 -0
- ogx_open_client/models/string_list_image_content_item_input_text_content_item.py +280 -0
- ogx_open_client/models/string_list_image_content_item_input_text_content_item1.py +280 -0
- ogx_open_client/models/string_list_image_content_item_output_text_content_item.py +280 -0
- ogx_open_client/models/string_list_image_content_item_text_content_item.py +286 -0
- ogx_open_client/models/string_list_image_content_item_text_content_item1.py +280 -0
- ogx_open_client/models/string_list_image_content_item_text_content_item2.py +286 -0
- ogx_open_client/models/string_list_image_content_item_text_content_item3.py +280 -0
- ogx_open_client/models/string_list_image_content_item_text_content_item4.py +280 -0
- ogx_open_client/models/string_list_image_content_item_text_content_item5.py +280 -0
- ogx_open_client/models/string_list_open_ai_chat_completion_content_part_text_param.py +272 -0
- ogx_open_client/models/string_list_open_ai_chat_completion_content_part_text_param1.py +266 -0
- ogx_open_client/models/string_list_open_ai_chat_completion_content_part_text_param2.py +266 -0
- ogx_open_client/models/string_list_open_ai_chat_completion_content_part_text_param3.py +266 -0
- ogx_open_client/models/string_list_open_ai_chat_completion_content_part_text_param4.py +272 -0
- ogx_open_client/models/string_list_open_ai_chat_completion_content_part_text_param_open_ai_chat_completion_content_part_image_param_open_ai_file.py +266 -0
- ogx_open_client/models/string_list_open_ai_response_input_message_content_text_open_ai_response_input_message_content_image_open_ai_response_input_message_content_file.py +266 -0
- ogx_open_client/models/string_list_open_ai_response_input_message_content_text_open_ai_response_input_message_content_image_open_ai_response_input_message_content_file_list_open_ai_response_output_message_content_output_text_input_open_ai_response_content_part_refusal.py +342 -0
- ogx_open_client/models/string_list_open_ai_response_input_message_content_text_open_ai_response_input_message_content_image_open_ai_response_input_message_content_file_list_open_ai_response_output_message_content_output_text_open_ai_response_content_part_refusal.py +342 -0
- ogx_open_client/models/string_list_open_ai_response_input_message_content_text_open_ai_response_input_message_content_image_open_ai_response_input_message_content_file_list_open_ai_response_output_message_content_output_text_output_open_ai_response_content_part_refusal.py +342 -0
- ogx_open_client/models/string_list_open_ai_response_message_union_open_ai_response_input_function_tool_call_output.py +272 -0
- ogx_open_client/models/string_list_open_ai_response_message_union_open_ai_response_input_function_tool_call_output1.py +266 -0
- ogx_open_client/models/string_list_string.py +271 -0
- ogx_open_client/models/string_list_string1.py +265 -0
- ogx_open_client/models/string_list_string2.py +265 -0
- ogx_open_client/models/string_number_boolean.py +225 -0
- ogx_open_client/models/string_number_boolean1.py +224 -0
- ogx_open_client/models/string_object.py +271 -0
- ogx_open_client/models/string_object1.py +271 -0
- ogx_open_client/models/string_open_ai_chat_completion_content_part_text_param_open_ai_chat_completion_content_part_image_param.py +220 -0
- ogx_open_client/models/string_open_ai_chat_completion_content_part_text_param_open_ai_chat_completion_content_part_image_param1.py +220 -0
- ogx_open_client/models/string_type.py +129 -0
- ogx_open_client/models/system_message.py +144 -0
- ogx_open_client/models/text_content_item.py +131 -0
- ogx_open_client/models/text_delta.py +131 -0
- ogx_open_client/models/token_log_probs.py +119 -0
- ogx_open_client/models/tool_config.py +119 -0
- ogx_open_client/models/tool_def.py +154 -0
- ogx_open_client/models/tool_group.py +167 -0
- ogx_open_client/models/tool_group_input.py +148 -0
- ogx_open_client/models/tool_invocation_result.py +158 -0
- ogx_open_client/models/tool_response_message.py +146 -0
- ogx_open_client/models/top_k_sampling_strategy.py +132 -0
- ogx_open_client/models/top_p_sampling_strategy.py +134 -0
- ogx_open_client/models/union_type.py +129 -0
- ogx_open_client/models/unregister_model_request.py +119 -0
- ogx_open_client/models/update_conversation_request.py +119 -0
- ogx_open_client/models/update_prompt_body_request.py +130 -0
- ogx_open_client/models/update_prompt_request.py +132 -0
- ogx_open_client/models/upload_file_request.py +140 -0
- ogx_open_client/models/url.py +119 -0
- ogx_open_client/models/urlor_data.py +144 -0
- ogx_open_client/models/user_message.py +164 -0
- ogx_open_client/models/vector_store_chunking_strategy.py +453 -0
- ogx_open_client/models/vector_store_chunking_strategy_auto.py +129 -0
- ogx_open_client/models/vector_store_chunking_strategy_auto_vector_store_chunking_strategy_static_vector_store_chunking_strategy_contextual.py +453 -0
- ogx_open_client/models/vector_store_chunking_strategy_auto_vector_store_chunking_strategy_static_vector_store_chunking_strategy_contextual1.py +447 -0
- ogx_open_client/models/vector_store_chunking_strategy_contextual.py +144 -0
- ogx_open_client/models/vector_store_chunking_strategy_contextual_config.py +145 -0
- ogx_open_client/models/vector_store_chunking_strategy_static.py +144 -0
- ogx_open_client/models/vector_store_chunking_strategy_static_config.py +122 -0
- ogx_open_client/models/vector_store_content.py +162 -0
- ogx_open_client/models/vector_store_create_request.py +167 -0
- ogx_open_client/models/vector_store_delete_response.py +133 -0
- ogx_open_client/models/vector_store_expiration_after.py +129 -0
- ogx_open_client/models/vector_store_file_batch_file_entry.py +164 -0
- ogx_open_client/models/vector_store_file_batch_object.py +159 -0
- ogx_open_client/models/vector_store_file_content_response.py +151 -0
- ogx_open_client/models/vector_store_file_counts.py +127 -0
- ogx_open_client/models/vector_store_file_delete_response.py +133 -0
- ogx_open_client/models/vector_store_file_last_error.py +128 -0
- ogx_open_client/models/vector_store_file_object.py +206 -0
- ogx_open_client/models/vector_store_file_status.py +45 -0
- ogx_open_client/models/vector_store_files_list_in_batch_response.py +148 -0
- ogx_open_client/models/vector_store_list_files_response.py +148 -0
- ogx_open_client/models/vector_store_list_response.py +148 -0
- ogx_open_client/models/vector_store_modify_request.py +151 -0
- ogx_open_client/models/vector_store_object.py +202 -0
- ogx_open_client/models/vector_store_search_request.py +151 -0
- ogx_open_client/models/vector_store_search_response.py +161 -0
- ogx_open_client/models/vector_store_search_response_page.py +153 -0
- ogx_open_client/models/vector_store_status.py +44 -0
- ogx_open_client/models/version_info.py +119 -0
- ogx_open_client/models/web_search_action_find.py +133 -0
- ogx_open_client/models/web_search_action_open_page.py +136 -0
- ogx_open_client/models/web_search_action_search.py +156 -0
- ogx_open_client/models/web_search_action_search_web_search_action_open_page_web_search_action_find.py +224 -0
- ogx_open_client/models/web_search_action_search_web_search_action_open_page_web_search_action_find1.py +224 -0
- ogx_open_client/models/web_search_filters.py +141 -0
- ogx_open_client/models/web_search_source.py +131 -0
- ogx_open_client/models/web_search_user_location.py +157 -0
- ogx_open_client/ogx_client.py +309 -0
- ogx_open_client/py.typed +0 -0
- ogx_open_client/rest.py +255 -0
- ogx_open_client/stream.py +183 -0
- ogx_open_client-1.0.3.dev0.dist-info/METADATA +723 -0
- ogx_open_client-1.0.3.dev0.dist-info/RECORD +1199 -0
- ogx_open_client-1.0.3.dev0.dist-info/WHEEL +5 -0
- ogx_open_client-1.0.3.dev0.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,1235 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# Copyright (c) The OGX Contributors.
|
|
4
|
+
# All rights reserved.
|
|
5
|
+
#
|
|
6
|
+
# This source code is licensed under the terms described in the LICENSE file in
|
|
7
|
+
# the root directory of this source tree.
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
OGX Specification - Stable & Experimental APIs
|
|
11
|
+
|
|
12
|
+
This is the specification of the OGX that provides a set of endpoints and their corresponding interfaces that are tailored to best leverage Llama Models. **🔗 COMBINED**: This specification includes both stable production-ready APIs and experimental pre-release APIs. Use stable APIs for production deployments and experimental APIs for testing new features.
|
|
13
|
+
|
|
14
|
+
The version of the OpenAPI document: v1
|
|
15
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
16
|
+
|
|
17
|
+
Do not edit the class manually.
|
|
18
|
+
""" # noqa: E501
|
|
19
|
+
|
|
20
|
+
import importlib
|
|
21
|
+
import json
|
|
22
|
+
import logging
|
|
23
|
+
import re
|
|
24
|
+
import sys
|
|
25
|
+
import warnings
|
|
26
|
+
|
|
27
|
+
from pydantic import validate_call, Field, SkipValidation, StrictFloat, StrictStr, StrictInt
|
|
28
|
+
from typing import Any
|
|
29
|
+
from typing_extensions import Annotated
|
|
30
|
+
|
|
31
|
+
from pydantic import Field, StrictStr
|
|
32
|
+
from typing import Optional
|
|
33
|
+
from typing_extensions import Annotated
|
|
34
|
+
from ogx_client.models.connector import Connector
|
|
35
|
+
from ogx_client.models.list_connectors_response import ListConnectorsResponse
|
|
36
|
+
from ogx_client.models.list_tools_response import ListToolsResponse
|
|
37
|
+
from ogx_client.models.tool_def import ToolDef
|
|
38
|
+
|
|
39
|
+
from ogx_client.api_client import ApiClient, RequestSerialized
|
|
40
|
+
from ogx_client.api_response import ApiResponse
|
|
41
|
+
from ogx_client.rest import RESTResponseType
|
|
42
|
+
from ogx_client.stream import Stream
|
|
43
|
+
from ogx_client.lib._utils import pascal_to_snake_case
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class ConnectorsApi:
|
|
47
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
48
|
+
Ref: https://openapi-generator.tech
|
|
49
|
+
|
|
50
|
+
Do not edit the class manually.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def __init__(self, api_client=None) -> None:
|
|
54
|
+
if api_client is None:
|
|
55
|
+
api_client = ApiClient.get_default()
|
|
56
|
+
self.api_client = api_client
|
|
57
|
+
self.logger = logging.getLogger(ConnectorsApi.__name__)
|
|
58
|
+
|
|
59
|
+
# Child API attributes (set by OgxClient based on x-nesting-path)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _create_event_stream(self, response_data: RESTResponseType, stream_type_name: str) -> Stream[Any]:
|
|
63
|
+
"""Create a typed event stream from an SSE response.
|
|
64
|
+
|
|
65
|
+
Args:
|
|
66
|
+
response_data: The raw HTTP response containing the SSE stream.
|
|
67
|
+
stream_type_name: The schema name for the streaming response type
|
|
68
|
+
(e.g., 'OpenAIChatCompletionChunk', 'OpenAIResponseObjectStream').
|
|
69
|
+
"""
|
|
70
|
+
# Import the stream type class once
|
|
71
|
+
stream_class = None
|
|
72
|
+
discriminator_map = None
|
|
73
|
+
discriminator_property = None
|
|
74
|
+
try:
|
|
75
|
+
module_name = pascal_to_snake_case(stream_type_name)
|
|
76
|
+
model_module = importlib.import_module('ogx_client.models.' + module_name)
|
|
77
|
+
stream_class = getattr(model_module, stream_type_name)
|
|
78
|
+
# Check if the stream type has a discriminator (e.g., oneOf with propertyName)
|
|
79
|
+
discriminator_map = getattr(stream_class, 'discriminator_value_class_map', None)
|
|
80
|
+
discriminator_property = getattr(stream_class, 'discriminator_property_name', None)
|
|
81
|
+
except (ImportError, ModuleNotFoundError, AttributeError) as e:
|
|
82
|
+
self.logger.debug(f"Could not import stream type {stream_type_name}: {e}")
|
|
83
|
+
|
|
84
|
+
def stream_decoder(data_str: str) -> Any:
|
|
85
|
+
if not data_str:
|
|
86
|
+
return None
|
|
87
|
+
try:
|
|
88
|
+
data = json.loads(data_str)
|
|
89
|
+
except json.JSONDecodeError:
|
|
90
|
+
return data_str
|
|
91
|
+
|
|
92
|
+
# If we have a discriminator, resolve the specific variant class
|
|
93
|
+
if discriminator_map and discriminator_property:
|
|
94
|
+
disc_value = data.get(discriminator_property, '')
|
|
95
|
+
variant_class_name = discriminator_map.get(disc_value)
|
|
96
|
+
if variant_class_name:
|
|
97
|
+
try:
|
|
98
|
+
variant_module_name = pascal_to_snake_case(variant_class_name)
|
|
99
|
+
variant_module = importlib.import_module('ogx_client.models.' + variant_module_name)
|
|
100
|
+
variant_class = getattr(variant_module, variant_class_name)
|
|
101
|
+
return variant_class.from_dict(data)
|
|
102
|
+
except Exception as e:
|
|
103
|
+
self.logger.debug(f"Failed to deserialize as {variant_class_name}: {e}")
|
|
104
|
+
|
|
105
|
+
# Non-discriminated: deserialize as stream type directly
|
|
106
|
+
if stream_class is not None:
|
|
107
|
+
try:
|
|
108
|
+
result = stream_class.from_dict(data)
|
|
109
|
+
# Unwrap oneOf/anyOf wrappers
|
|
110
|
+
if hasattr(result, 'actual_instance') and result.actual_instance is not None:
|
|
111
|
+
return result.actual_instance
|
|
112
|
+
return result
|
|
113
|
+
except Exception as e:
|
|
114
|
+
self.logger.debug(f"Failed to deserialize as {stream_type_name}: {e}")
|
|
115
|
+
|
|
116
|
+
# Final fallback: return raw dict
|
|
117
|
+
return data
|
|
118
|
+
|
|
119
|
+
return Stream(
|
|
120
|
+
response=response_data.response,
|
|
121
|
+
client=self.api_client,
|
|
122
|
+
decoder=stream_decoder,
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
@validate_call
|
|
127
|
+
def connector_tool_v1alpha_admin_connectors_connector_id_tools_tool_name_get(
|
|
128
|
+
self,
|
|
129
|
+
connector_id: Annotated[StrictStr, Field(description="Identifier for the connector")],
|
|
130
|
+
tool_name: Annotated[StrictStr, Field(description="Name of the tool")],
|
|
131
|
+
authorization: Annotated[Optional[StrictStr], Field(description="Authorization token")] = None,
|
|
132
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
133
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
134
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
135
|
+
] | None = None,
|
|
136
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
137
|
+
_content_type: StrictStr | None = None,
|
|
138
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
139
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
140
|
+
) -> ToolDef:
|
|
141
|
+
"""Get a tool by name from a connector.
|
|
142
|
+
|
|
143
|
+
Get a tool definition by its name from a connector.
|
|
144
|
+
|
|
145
|
+
:param connector_id: Identifier for the connector (required)
|
|
146
|
+
:type connector_id: str
|
|
147
|
+
:param tool_name: Name of the tool (required)
|
|
148
|
+
:type tool_name: str
|
|
149
|
+
:param authorization: Authorization token
|
|
150
|
+
:type authorization: str
|
|
151
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
152
|
+
number provided, it will be total request
|
|
153
|
+
timeout. It can also be a pair (tuple) of
|
|
154
|
+
(connection, read) timeouts.
|
|
155
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
156
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
157
|
+
request; this effectively ignores the
|
|
158
|
+
authentication in the spec for a single request.
|
|
159
|
+
:type _request_auth: dict, optional
|
|
160
|
+
:param _content_type: force content-type for the request.
|
|
161
|
+
:type _content_type: str, Optional
|
|
162
|
+
:param _headers: set to override the headers for a single
|
|
163
|
+
request; this effectively ignores the headers
|
|
164
|
+
in the spec for a single request.
|
|
165
|
+
:type _headers: dict, optional
|
|
166
|
+
:param _host_index: set to override the host_index for a single
|
|
167
|
+
request; this effectively ignores the host_index
|
|
168
|
+
in the spec for a single request.
|
|
169
|
+
:type _host_index: int, optional
|
|
170
|
+
:return: Returns the result object.
|
|
171
|
+
""" # noqa: E501
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
_param = self._connector_tool_v1alpha_admin_connectors_connector_id_tools_tool_name_get_serialize(
|
|
175
|
+
connector_id=connector_id,
|
|
176
|
+
tool_name=tool_name,
|
|
177
|
+
authorization=authorization,
|
|
178
|
+
_request_auth=_request_auth,
|
|
179
|
+
_content_type=_content_type,
|
|
180
|
+
_headers=_headers,
|
|
181
|
+
_host_index=_host_index
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
_response_types_map: dict[str, str | None] = {
|
|
185
|
+
'200': "ToolDef",
|
|
186
|
+
'400': "Error",
|
|
187
|
+
'429': "Error",
|
|
188
|
+
'500': "Error",
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
response_data = self.api_client.call_api(
|
|
192
|
+
*_param,
|
|
193
|
+
_request_timeout=_request_timeout
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
response_data.read()
|
|
197
|
+
_deserialized = self.api_client.response_deserialize(
|
|
198
|
+
response_data=response_data,
|
|
199
|
+
response_types_map=_response_types_map,
|
|
200
|
+
).data
|
|
201
|
+
# Unwrap List*Response wrappers to return the data field directly
|
|
202
|
+
return _deserialized
|
|
203
|
+
|
|
204
|
+
@validate_call
|
|
205
|
+
def connector_tool_v1alpha_admin_connectors_connector_id_tools_tool_name_get_with_http_info(
|
|
206
|
+
self,
|
|
207
|
+
connector_id: Annotated[StrictStr, Field(description="Identifier for the connector")],
|
|
208
|
+
tool_name: Annotated[StrictStr, Field(description="Name of the tool")],
|
|
209
|
+
authorization: Annotated[Optional[StrictStr], Field(description="Authorization token")] = None,
|
|
210
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
211
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
212
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
213
|
+
] | None = None,
|
|
214
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
215
|
+
_content_type: StrictStr | None = None,
|
|
216
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
217
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
218
|
+
) -> ApiResponse[ToolDef]:
|
|
219
|
+
"""Get a tool by name from a connector.
|
|
220
|
+
|
|
221
|
+
Get a tool definition by its name from a connector.
|
|
222
|
+
|
|
223
|
+
:param connector_id: Identifier for the connector (required)
|
|
224
|
+
:type connector_id: str
|
|
225
|
+
:param tool_name: Name of the tool (required)
|
|
226
|
+
:type tool_name: str
|
|
227
|
+
:param authorization: Authorization token
|
|
228
|
+
:type authorization: str
|
|
229
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
230
|
+
number provided, it will be total request
|
|
231
|
+
timeout. It can also be a pair (tuple) of
|
|
232
|
+
(connection, read) timeouts.
|
|
233
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
234
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
235
|
+
request; this effectively ignores the
|
|
236
|
+
authentication in the spec for a single request.
|
|
237
|
+
:type _request_auth: dict, optional
|
|
238
|
+
:param _content_type: force content-type for the request.
|
|
239
|
+
:type _content_type: str, Optional
|
|
240
|
+
:param _headers: set to override the headers for a single
|
|
241
|
+
request; this effectively ignores the headers
|
|
242
|
+
in the spec for a single request.
|
|
243
|
+
:type _headers: dict, optional
|
|
244
|
+
:param _host_index: set to override the host_index for a single
|
|
245
|
+
request; this effectively ignores the host_index
|
|
246
|
+
in the spec for a single request.
|
|
247
|
+
:type _host_index: int, optional
|
|
248
|
+
:return: Returns the result object.
|
|
249
|
+
""" # noqa: E501
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
_param = self._connector_tool_v1alpha_admin_connectors_connector_id_tools_tool_name_get_serialize(
|
|
253
|
+
connector_id=connector_id,
|
|
254
|
+
tool_name=tool_name,
|
|
255
|
+
authorization=authorization,
|
|
256
|
+
_request_auth=_request_auth,
|
|
257
|
+
_content_type=_content_type,
|
|
258
|
+
_headers=_headers,
|
|
259
|
+
_host_index=_host_index
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
_response_types_map: dict[str, str | None] = {
|
|
263
|
+
'200': "ToolDef",
|
|
264
|
+
'400': "Error",
|
|
265
|
+
'429': "Error",
|
|
266
|
+
'500': "Error",
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
response_data = self.api_client.call_api(
|
|
270
|
+
*_param,
|
|
271
|
+
_request_timeout=_request_timeout
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
response_data.read()
|
|
275
|
+
return self.api_client.response_deserialize(
|
|
276
|
+
response_data=response_data,
|
|
277
|
+
response_types_map=_response_types_map,
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
@validate_call
|
|
281
|
+
def connector_tool_v1alpha_admin_connectors_connector_id_tools_tool_name_get_without_preload_content(
|
|
282
|
+
self,
|
|
283
|
+
connector_id: Annotated[StrictStr, Field(description="Identifier for the connector")],
|
|
284
|
+
tool_name: Annotated[StrictStr, Field(description="Name of the tool")],
|
|
285
|
+
authorization: Annotated[Optional[StrictStr], Field(description="Authorization token")] = None,
|
|
286
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
287
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
288
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
289
|
+
] | None = None,
|
|
290
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
291
|
+
_content_type: StrictStr | None = None,
|
|
292
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
293
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
294
|
+
) -> RESTResponseType:
|
|
295
|
+
"""Get a tool by name from a connector.
|
|
296
|
+
|
|
297
|
+
Get a tool definition by its name from a connector.
|
|
298
|
+
|
|
299
|
+
:param connector_id: Identifier for the connector (required)
|
|
300
|
+
:type connector_id: str
|
|
301
|
+
:param tool_name: Name of the tool (required)
|
|
302
|
+
:type tool_name: str
|
|
303
|
+
:param authorization: Authorization token
|
|
304
|
+
:type authorization: str
|
|
305
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
306
|
+
number provided, it will be total request
|
|
307
|
+
timeout. It can also be a pair (tuple) of
|
|
308
|
+
(connection, read) timeouts.
|
|
309
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
310
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
311
|
+
request; this effectively ignores the
|
|
312
|
+
authentication in the spec for a single request.
|
|
313
|
+
:type _request_auth: dict, optional
|
|
314
|
+
:param _content_type: force content-type for the request.
|
|
315
|
+
:type _content_type: str, Optional
|
|
316
|
+
:param _headers: set to override the headers for a single
|
|
317
|
+
request; this effectively ignores the headers
|
|
318
|
+
in the spec for a single request.
|
|
319
|
+
:type _headers: dict, optional
|
|
320
|
+
:param _host_index: set to override the host_index for a single
|
|
321
|
+
request; this effectively ignores the host_index
|
|
322
|
+
in the spec for a single request.
|
|
323
|
+
:type _host_index: int, optional
|
|
324
|
+
:return: Returns the result object.
|
|
325
|
+
""" # noqa: E501
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
_param = self._connector_tool_v1alpha_admin_connectors_connector_id_tools_tool_name_get_serialize(
|
|
329
|
+
connector_id=connector_id,
|
|
330
|
+
tool_name=tool_name,
|
|
331
|
+
authorization=authorization,
|
|
332
|
+
_request_auth=_request_auth,
|
|
333
|
+
_content_type=_content_type,
|
|
334
|
+
_headers=_headers,
|
|
335
|
+
_host_index=_host_index
|
|
336
|
+
)
|
|
337
|
+
|
|
338
|
+
_response_types_map: dict[str, str | None] = {
|
|
339
|
+
'200': "ToolDef",
|
|
340
|
+
'400': "Error",
|
|
341
|
+
'429': "Error",
|
|
342
|
+
'500': "Error",
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
response_data = self.api_client.call_api(
|
|
346
|
+
*_param,
|
|
347
|
+
_request_timeout=_request_timeout
|
|
348
|
+
)
|
|
349
|
+
return response_data.response
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
def _connector_tool_v1alpha_admin_connectors_connector_id_tools_tool_name_get_serialize(
|
|
353
|
+
self,
|
|
354
|
+
connector_id,
|
|
355
|
+
tool_name,
|
|
356
|
+
authorization,
|
|
357
|
+
_request_auth,
|
|
358
|
+
_content_type,
|
|
359
|
+
_headers,
|
|
360
|
+
_host_index,
|
|
361
|
+
) -> RequestSerialized:
|
|
362
|
+
|
|
363
|
+
_host = None
|
|
364
|
+
|
|
365
|
+
_collection_formats: dict[str, str] = {
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
_path_params: dict[str, str] = {}
|
|
369
|
+
_query_params: list[tuple[str, str]] = []
|
|
370
|
+
_header_params: dict[str, str | None] = _headers or {}
|
|
371
|
+
_form_params: list[tuple[str, str]] = []
|
|
372
|
+
_files: dict[
|
|
373
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
374
|
+
] = {}
|
|
375
|
+
_body_params: bytes | None = None
|
|
376
|
+
|
|
377
|
+
# process the path parameters
|
|
378
|
+
if connector_id is not None:
|
|
379
|
+
_path_params['connector_id'] = connector_id
|
|
380
|
+
if tool_name is not None:
|
|
381
|
+
_path_params['tool_name'] = tool_name
|
|
382
|
+
# process the query parameters
|
|
383
|
+
if authorization is not None:
|
|
384
|
+
|
|
385
|
+
_query_params.append(('authorization', authorization))
|
|
386
|
+
|
|
387
|
+
# process the header parameters
|
|
388
|
+
# process the form parameters
|
|
389
|
+
# process the body parameter
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
# set the HTTP header `Accept`
|
|
393
|
+
if 'Accept' not in _header_params:
|
|
394
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
395
|
+
[
|
|
396
|
+
'application/json'
|
|
397
|
+
]
|
|
398
|
+
)
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
# authentication setting
|
|
402
|
+
_auth_settings: list[str] = [
|
|
403
|
+
]
|
|
404
|
+
|
|
405
|
+
return self.api_client.param_serialize(
|
|
406
|
+
method='GET',
|
|
407
|
+
resource_path='/v1alpha/admin/connectors/{connector_id}/tools/{tool_name}',
|
|
408
|
+
path_params=_path_params,
|
|
409
|
+
query_params=_query_params,
|
|
410
|
+
header_params=_header_params,
|
|
411
|
+
body=_body_params,
|
|
412
|
+
post_params=_form_params,
|
|
413
|
+
files=_files,
|
|
414
|
+
auth_settings=_auth_settings,
|
|
415
|
+
collection_formats=_collection_formats,
|
|
416
|
+
_host=_host,
|
|
417
|
+
_request_auth=_request_auth
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
@validate_call
|
|
423
|
+
def connector_tools_v1alpha_admin_connectors_connector_id_tools_get(
|
|
424
|
+
self,
|
|
425
|
+
connector_id: Annotated[StrictStr, Field(description="Identifier for the connector")],
|
|
426
|
+
authorization: Annotated[Optional[StrictStr], Field(description="Authorization token")] = None,
|
|
427
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
428
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
429
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
430
|
+
] | None = None,
|
|
431
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
432
|
+
_content_type: StrictStr | None = None,
|
|
433
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
434
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
435
|
+
) -> ListToolsResponse:
|
|
436
|
+
"""List tools from a connector.
|
|
437
|
+
|
|
438
|
+
List all tools available from a connector.
|
|
439
|
+
|
|
440
|
+
:param connector_id: Identifier for the connector (required)
|
|
441
|
+
:type connector_id: str
|
|
442
|
+
:param authorization: Authorization token
|
|
443
|
+
:type authorization: str
|
|
444
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
445
|
+
number provided, it will be total request
|
|
446
|
+
timeout. It can also be a pair (tuple) of
|
|
447
|
+
(connection, read) timeouts.
|
|
448
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
449
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
450
|
+
request; this effectively ignores the
|
|
451
|
+
authentication in the spec for a single request.
|
|
452
|
+
:type _request_auth: dict, optional
|
|
453
|
+
:param _content_type: force content-type for the request.
|
|
454
|
+
:type _content_type: str, Optional
|
|
455
|
+
:param _headers: set to override the headers for a single
|
|
456
|
+
request; this effectively ignores the headers
|
|
457
|
+
in the spec for a single request.
|
|
458
|
+
:type _headers: dict, optional
|
|
459
|
+
:param _host_index: set to override the host_index for a single
|
|
460
|
+
request; this effectively ignores the host_index
|
|
461
|
+
in the spec for a single request.
|
|
462
|
+
:type _host_index: int, optional
|
|
463
|
+
:return: Returns the result object.
|
|
464
|
+
""" # noqa: E501
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
_param = self._connector_tools_v1alpha_admin_connectors_connector_id_tools_get_serialize(
|
|
468
|
+
connector_id=connector_id,
|
|
469
|
+
authorization=authorization,
|
|
470
|
+
_request_auth=_request_auth,
|
|
471
|
+
_content_type=_content_type,
|
|
472
|
+
_headers=_headers,
|
|
473
|
+
_host_index=_host_index
|
|
474
|
+
)
|
|
475
|
+
|
|
476
|
+
_response_types_map: dict[str, str | None] = {
|
|
477
|
+
'200': "ListToolsResponse",
|
|
478
|
+
'400': "Error",
|
|
479
|
+
'429': "Error",
|
|
480
|
+
'500': "Error",
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
response_data = self.api_client.call_api(
|
|
484
|
+
*_param,
|
|
485
|
+
_request_timeout=_request_timeout
|
|
486
|
+
)
|
|
487
|
+
|
|
488
|
+
response_data.read()
|
|
489
|
+
_deserialized = self.api_client.response_deserialize(
|
|
490
|
+
response_data=response_data,
|
|
491
|
+
response_types_map=_response_types_map,
|
|
492
|
+
).data
|
|
493
|
+
# Unwrap List*Response wrappers to return the data field directly
|
|
494
|
+
if _deserialized is not None and hasattr(_deserialized, 'data'):
|
|
495
|
+
return _deserialized.data
|
|
496
|
+
return _deserialized
|
|
497
|
+
|
|
498
|
+
@validate_call
|
|
499
|
+
def connector_tools_v1alpha_admin_connectors_connector_id_tools_get_with_http_info(
|
|
500
|
+
self,
|
|
501
|
+
connector_id: Annotated[StrictStr, Field(description="Identifier for the connector")],
|
|
502
|
+
authorization: Annotated[Optional[StrictStr], Field(description="Authorization token")] = None,
|
|
503
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
504
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
505
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
506
|
+
] | None = None,
|
|
507
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
508
|
+
_content_type: StrictStr | None = None,
|
|
509
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
510
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
511
|
+
) -> ApiResponse[ListToolsResponse]:
|
|
512
|
+
"""List tools from a connector.
|
|
513
|
+
|
|
514
|
+
List all tools available from a connector.
|
|
515
|
+
|
|
516
|
+
:param connector_id: Identifier for the connector (required)
|
|
517
|
+
:type connector_id: str
|
|
518
|
+
:param authorization: Authorization token
|
|
519
|
+
:type authorization: str
|
|
520
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
521
|
+
number provided, it will be total request
|
|
522
|
+
timeout. It can also be a pair (tuple) of
|
|
523
|
+
(connection, read) timeouts.
|
|
524
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
525
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
526
|
+
request; this effectively ignores the
|
|
527
|
+
authentication in the spec for a single request.
|
|
528
|
+
:type _request_auth: dict, optional
|
|
529
|
+
:param _content_type: force content-type for the request.
|
|
530
|
+
:type _content_type: str, Optional
|
|
531
|
+
:param _headers: set to override the headers for a single
|
|
532
|
+
request; this effectively ignores the headers
|
|
533
|
+
in the spec for a single request.
|
|
534
|
+
:type _headers: dict, optional
|
|
535
|
+
:param _host_index: set to override the host_index for a single
|
|
536
|
+
request; this effectively ignores the host_index
|
|
537
|
+
in the spec for a single request.
|
|
538
|
+
:type _host_index: int, optional
|
|
539
|
+
:return: Returns the result object.
|
|
540
|
+
""" # noqa: E501
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
_param = self._connector_tools_v1alpha_admin_connectors_connector_id_tools_get_serialize(
|
|
544
|
+
connector_id=connector_id,
|
|
545
|
+
authorization=authorization,
|
|
546
|
+
_request_auth=_request_auth,
|
|
547
|
+
_content_type=_content_type,
|
|
548
|
+
_headers=_headers,
|
|
549
|
+
_host_index=_host_index
|
|
550
|
+
)
|
|
551
|
+
|
|
552
|
+
_response_types_map: dict[str, str | None] = {
|
|
553
|
+
'200': "ListToolsResponse",
|
|
554
|
+
'400': "Error",
|
|
555
|
+
'429': "Error",
|
|
556
|
+
'500': "Error",
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
response_data = self.api_client.call_api(
|
|
560
|
+
*_param,
|
|
561
|
+
_request_timeout=_request_timeout
|
|
562
|
+
)
|
|
563
|
+
|
|
564
|
+
response_data.read()
|
|
565
|
+
return self.api_client.response_deserialize(
|
|
566
|
+
response_data=response_data,
|
|
567
|
+
response_types_map=_response_types_map,
|
|
568
|
+
)
|
|
569
|
+
|
|
570
|
+
@validate_call
|
|
571
|
+
def connector_tools_v1alpha_admin_connectors_connector_id_tools_get_without_preload_content(
|
|
572
|
+
self,
|
|
573
|
+
connector_id: Annotated[StrictStr, Field(description="Identifier for the connector")],
|
|
574
|
+
authorization: Annotated[Optional[StrictStr], Field(description="Authorization token")] = None,
|
|
575
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
576
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
577
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
578
|
+
] | None = None,
|
|
579
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
580
|
+
_content_type: StrictStr | None = None,
|
|
581
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
582
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
583
|
+
) -> RESTResponseType:
|
|
584
|
+
"""List tools from a connector.
|
|
585
|
+
|
|
586
|
+
List all tools available from a connector.
|
|
587
|
+
|
|
588
|
+
:param connector_id: Identifier for the connector (required)
|
|
589
|
+
:type connector_id: str
|
|
590
|
+
:param authorization: Authorization token
|
|
591
|
+
:type authorization: str
|
|
592
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
593
|
+
number provided, it will be total request
|
|
594
|
+
timeout. It can also be a pair (tuple) of
|
|
595
|
+
(connection, read) timeouts.
|
|
596
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
597
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
598
|
+
request; this effectively ignores the
|
|
599
|
+
authentication in the spec for a single request.
|
|
600
|
+
:type _request_auth: dict, optional
|
|
601
|
+
:param _content_type: force content-type for the request.
|
|
602
|
+
:type _content_type: str, Optional
|
|
603
|
+
:param _headers: set to override the headers for a single
|
|
604
|
+
request; this effectively ignores the headers
|
|
605
|
+
in the spec for a single request.
|
|
606
|
+
:type _headers: dict, optional
|
|
607
|
+
:param _host_index: set to override the host_index for a single
|
|
608
|
+
request; this effectively ignores the host_index
|
|
609
|
+
in the spec for a single request.
|
|
610
|
+
:type _host_index: int, optional
|
|
611
|
+
:return: Returns the result object.
|
|
612
|
+
""" # noqa: E501
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
_param = self._connector_tools_v1alpha_admin_connectors_connector_id_tools_get_serialize(
|
|
616
|
+
connector_id=connector_id,
|
|
617
|
+
authorization=authorization,
|
|
618
|
+
_request_auth=_request_auth,
|
|
619
|
+
_content_type=_content_type,
|
|
620
|
+
_headers=_headers,
|
|
621
|
+
_host_index=_host_index
|
|
622
|
+
)
|
|
623
|
+
|
|
624
|
+
_response_types_map: dict[str, str | None] = {
|
|
625
|
+
'200': "ListToolsResponse",
|
|
626
|
+
'400': "Error",
|
|
627
|
+
'429': "Error",
|
|
628
|
+
'500': "Error",
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
response_data = self.api_client.call_api(
|
|
632
|
+
*_param,
|
|
633
|
+
_request_timeout=_request_timeout
|
|
634
|
+
)
|
|
635
|
+
return response_data.response
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
def _connector_tools_v1alpha_admin_connectors_connector_id_tools_get_serialize(
|
|
639
|
+
self,
|
|
640
|
+
connector_id,
|
|
641
|
+
authorization,
|
|
642
|
+
_request_auth,
|
|
643
|
+
_content_type,
|
|
644
|
+
_headers,
|
|
645
|
+
_host_index,
|
|
646
|
+
) -> RequestSerialized:
|
|
647
|
+
|
|
648
|
+
_host = None
|
|
649
|
+
|
|
650
|
+
_collection_formats: dict[str, str] = {
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
_path_params: dict[str, str] = {}
|
|
654
|
+
_query_params: list[tuple[str, str]] = []
|
|
655
|
+
_header_params: dict[str, str | None] = _headers or {}
|
|
656
|
+
_form_params: list[tuple[str, str]] = []
|
|
657
|
+
_files: dict[
|
|
658
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
659
|
+
] = {}
|
|
660
|
+
_body_params: bytes | None = None
|
|
661
|
+
|
|
662
|
+
# process the path parameters
|
|
663
|
+
if connector_id is not None:
|
|
664
|
+
_path_params['connector_id'] = connector_id
|
|
665
|
+
# process the query parameters
|
|
666
|
+
if authorization is not None:
|
|
667
|
+
|
|
668
|
+
_query_params.append(('authorization', authorization))
|
|
669
|
+
|
|
670
|
+
# process the header parameters
|
|
671
|
+
# process the form parameters
|
|
672
|
+
# process the body parameter
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
# set the HTTP header `Accept`
|
|
676
|
+
if 'Accept' not in _header_params:
|
|
677
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
678
|
+
[
|
|
679
|
+
'application/json'
|
|
680
|
+
]
|
|
681
|
+
)
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
# authentication setting
|
|
685
|
+
_auth_settings: list[str] = [
|
|
686
|
+
]
|
|
687
|
+
|
|
688
|
+
return self.api_client.param_serialize(
|
|
689
|
+
method='GET',
|
|
690
|
+
resource_path='/v1alpha/admin/connectors/{connector_id}/tools',
|
|
691
|
+
path_params=_path_params,
|
|
692
|
+
query_params=_query_params,
|
|
693
|
+
header_params=_header_params,
|
|
694
|
+
body=_body_params,
|
|
695
|
+
post_params=_form_params,
|
|
696
|
+
files=_files,
|
|
697
|
+
auth_settings=_auth_settings,
|
|
698
|
+
collection_formats=_collection_formats,
|
|
699
|
+
_host=_host,
|
|
700
|
+
_request_auth=_request_auth
|
|
701
|
+
)
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
@validate_call
|
|
706
|
+
def connector_v1alpha_admin_connectors_connector_id_get(
|
|
707
|
+
self,
|
|
708
|
+
connector_id: Annotated[StrictStr, Field(description="Identifier for the connector")],
|
|
709
|
+
authorization: Annotated[Optional[StrictStr], Field(description="Authorization token")] = None,
|
|
710
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
711
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
712
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
713
|
+
] | None = None,
|
|
714
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
715
|
+
_content_type: StrictStr | None = None,
|
|
716
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
717
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
718
|
+
) -> Connector:
|
|
719
|
+
"""Get a connector by its ID.
|
|
720
|
+
|
|
721
|
+
Get a connector by its ID.
|
|
722
|
+
|
|
723
|
+
:param connector_id: Identifier for the connector (required)
|
|
724
|
+
:type connector_id: str
|
|
725
|
+
:param authorization: Authorization token
|
|
726
|
+
:type authorization: str
|
|
727
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
728
|
+
number provided, it will be total request
|
|
729
|
+
timeout. It can also be a pair (tuple) of
|
|
730
|
+
(connection, read) timeouts.
|
|
731
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
732
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
733
|
+
request; this effectively ignores the
|
|
734
|
+
authentication in the spec for a single request.
|
|
735
|
+
:type _request_auth: dict, optional
|
|
736
|
+
:param _content_type: force content-type for the request.
|
|
737
|
+
:type _content_type: str, Optional
|
|
738
|
+
:param _headers: set to override the headers for a single
|
|
739
|
+
request; this effectively ignores the headers
|
|
740
|
+
in the spec for a single request.
|
|
741
|
+
:type _headers: dict, optional
|
|
742
|
+
:param _host_index: set to override the host_index for a single
|
|
743
|
+
request; this effectively ignores the host_index
|
|
744
|
+
in the spec for a single request.
|
|
745
|
+
:type _host_index: int, optional
|
|
746
|
+
:return: Returns the result object.
|
|
747
|
+
""" # noqa: E501
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
_param = self._connector_v1alpha_admin_connectors_connector_id_get_serialize(
|
|
751
|
+
connector_id=connector_id,
|
|
752
|
+
authorization=authorization,
|
|
753
|
+
_request_auth=_request_auth,
|
|
754
|
+
_content_type=_content_type,
|
|
755
|
+
_headers=_headers,
|
|
756
|
+
_host_index=_host_index
|
|
757
|
+
)
|
|
758
|
+
|
|
759
|
+
_response_types_map: dict[str, str | None] = {
|
|
760
|
+
'200': "Connector",
|
|
761
|
+
'400': "Error",
|
|
762
|
+
'429': "Error",
|
|
763
|
+
'500': "Error",
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
response_data = self.api_client.call_api(
|
|
767
|
+
*_param,
|
|
768
|
+
_request_timeout=_request_timeout
|
|
769
|
+
)
|
|
770
|
+
|
|
771
|
+
response_data.read()
|
|
772
|
+
_deserialized = self.api_client.response_deserialize(
|
|
773
|
+
response_data=response_data,
|
|
774
|
+
response_types_map=_response_types_map,
|
|
775
|
+
).data
|
|
776
|
+
# Unwrap List*Response wrappers to return the data field directly
|
|
777
|
+
return _deserialized
|
|
778
|
+
|
|
779
|
+
@validate_call
|
|
780
|
+
def connector_v1alpha_admin_connectors_connector_id_get_with_http_info(
|
|
781
|
+
self,
|
|
782
|
+
connector_id: Annotated[StrictStr, Field(description="Identifier for the connector")],
|
|
783
|
+
authorization: Annotated[Optional[StrictStr], Field(description="Authorization token")] = None,
|
|
784
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
785
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
786
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
787
|
+
] | None = None,
|
|
788
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
789
|
+
_content_type: StrictStr | None = None,
|
|
790
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
791
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
792
|
+
) -> ApiResponse[Connector]:
|
|
793
|
+
"""Get a connector by its ID.
|
|
794
|
+
|
|
795
|
+
Get a connector by its ID.
|
|
796
|
+
|
|
797
|
+
:param connector_id: Identifier for the connector (required)
|
|
798
|
+
:type connector_id: str
|
|
799
|
+
:param authorization: Authorization token
|
|
800
|
+
:type authorization: str
|
|
801
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
802
|
+
number provided, it will be total request
|
|
803
|
+
timeout. It can also be a pair (tuple) of
|
|
804
|
+
(connection, read) timeouts.
|
|
805
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
806
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
807
|
+
request; this effectively ignores the
|
|
808
|
+
authentication in the spec for a single request.
|
|
809
|
+
:type _request_auth: dict, optional
|
|
810
|
+
:param _content_type: force content-type for the request.
|
|
811
|
+
:type _content_type: str, Optional
|
|
812
|
+
:param _headers: set to override the headers for a single
|
|
813
|
+
request; this effectively ignores the headers
|
|
814
|
+
in the spec for a single request.
|
|
815
|
+
:type _headers: dict, optional
|
|
816
|
+
:param _host_index: set to override the host_index for a single
|
|
817
|
+
request; this effectively ignores the host_index
|
|
818
|
+
in the spec for a single request.
|
|
819
|
+
:type _host_index: int, optional
|
|
820
|
+
:return: Returns the result object.
|
|
821
|
+
""" # noqa: E501
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
_param = self._connector_v1alpha_admin_connectors_connector_id_get_serialize(
|
|
825
|
+
connector_id=connector_id,
|
|
826
|
+
authorization=authorization,
|
|
827
|
+
_request_auth=_request_auth,
|
|
828
|
+
_content_type=_content_type,
|
|
829
|
+
_headers=_headers,
|
|
830
|
+
_host_index=_host_index
|
|
831
|
+
)
|
|
832
|
+
|
|
833
|
+
_response_types_map: dict[str, str | None] = {
|
|
834
|
+
'200': "Connector",
|
|
835
|
+
'400': "Error",
|
|
836
|
+
'429': "Error",
|
|
837
|
+
'500': "Error",
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
response_data = self.api_client.call_api(
|
|
841
|
+
*_param,
|
|
842
|
+
_request_timeout=_request_timeout
|
|
843
|
+
)
|
|
844
|
+
|
|
845
|
+
response_data.read()
|
|
846
|
+
return self.api_client.response_deserialize(
|
|
847
|
+
response_data=response_data,
|
|
848
|
+
response_types_map=_response_types_map,
|
|
849
|
+
)
|
|
850
|
+
|
|
851
|
+
@validate_call
|
|
852
|
+
def connector_v1alpha_admin_connectors_connector_id_get_without_preload_content(
|
|
853
|
+
self,
|
|
854
|
+
connector_id: Annotated[StrictStr, Field(description="Identifier for the connector")],
|
|
855
|
+
authorization: Annotated[Optional[StrictStr], Field(description="Authorization token")] = None,
|
|
856
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
857
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
858
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
859
|
+
] | None = None,
|
|
860
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
861
|
+
_content_type: StrictStr | None = None,
|
|
862
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
863
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
864
|
+
) -> RESTResponseType:
|
|
865
|
+
"""Get a connector by its ID.
|
|
866
|
+
|
|
867
|
+
Get a connector by its ID.
|
|
868
|
+
|
|
869
|
+
:param connector_id: Identifier for the connector (required)
|
|
870
|
+
:type connector_id: str
|
|
871
|
+
:param authorization: Authorization token
|
|
872
|
+
:type authorization: str
|
|
873
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
874
|
+
number provided, it will be total request
|
|
875
|
+
timeout. It can also be a pair (tuple) of
|
|
876
|
+
(connection, read) timeouts.
|
|
877
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
878
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
879
|
+
request; this effectively ignores the
|
|
880
|
+
authentication in the spec for a single request.
|
|
881
|
+
:type _request_auth: dict, optional
|
|
882
|
+
:param _content_type: force content-type for the request.
|
|
883
|
+
:type _content_type: str, Optional
|
|
884
|
+
:param _headers: set to override the headers for a single
|
|
885
|
+
request; this effectively ignores the headers
|
|
886
|
+
in the spec for a single request.
|
|
887
|
+
:type _headers: dict, optional
|
|
888
|
+
:param _host_index: set to override the host_index for a single
|
|
889
|
+
request; this effectively ignores the host_index
|
|
890
|
+
in the spec for a single request.
|
|
891
|
+
:type _host_index: int, optional
|
|
892
|
+
:return: Returns the result object.
|
|
893
|
+
""" # noqa: E501
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
_param = self._connector_v1alpha_admin_connectors_connector_id_get_serialize(
|
|
897
|
+
connector_id=connector_id,
|
|
898
|
+
authorization=authorization,
|
|
899
|
+
_request_auth=_request_auth,
|
|
900
|
+
_content_type=_content_type,
|
|
901
|
+
_headers=_headers,
|
|
902
|
+
_host_index=_host_index
|
|
903
|
+
)
|
|
904
|
+
|
|
905
|
+
_response_types_map: dict[str, str | None] = {
|
|
906
|
+
'200': "Connector",
|
|
907
|
+
'400': "Error",
|
|
908
|
+
'429': "Error",
|
|
909
|
+
'500': "Error",
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
response_data = self.api_client.call_api(
|
|
913
|
+
*_param,
|
|
914
|
+
_request_timeout=_request_timeout
|
|
915
|
+
)
|
|
916
|
+
return response_data.response
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
def _connector_v1alpha_admin_connectors_connector_id_get_serialize(
|
|
920
|
+
self,
|
|
921
|
+
connector_id,
|
|
922
|
+
authorization,
|
|
923
|
+
_request_auth,
|
|
924
|
+
_content_type,
|
|
925
|
+
_headers,
|
|
926
|
+
_host_index,
|
|
927
|
+
) -> RequestSerialized:
|
|
928
|
+
|
|
929
|
+
_host = None
|
|
930
|
+
|
|
931
|
+
_collection_formats: dict[str, str] = {
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
_path_params: dict[str, str] = {}
|
|
935
|
+
_query_params: list[tuple[str, str]] = []
|
|
936
|
+
_header_params: dict[str, str | None] = _headers or {}
|
|
937
|
+
_form_params: list[tuple[str, str]] = []
|
|
938
|
+
_files: dict[
|
|
939
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
940
|
+
] = {}
|
|
941
|
+
_body_params: bytes | None = None
|
|
942
|
+
|
|
943
|
+
# process the path parameters
|
|
944
|
+
if connector_id is not None:
|
|
945
|
+
_path_params['connector_id'] = connector_id
|
|
946
|
+
# process the query parameters
|
|
947
|
+
if authorization is not None:
|
|
948
|
+
|
|
949
|
+
_query_params.append(('authorization', authorization))
|
|
950
|
+
|
|
951
|
+
# process the header parameters
|
|
952
|
+
# process the form parameters
|
|
953
|
+
# process the body parameter
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
# set the HTTP header `Accept`
|
|
957
|
+
if 'Accept' not in _header_params:
|
|
958
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
959
|
+
[
|
|
960
|
+
'application/json'
|
|
961
|
+
]
|
|
962
|
+
)
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
# authentication setting
|
|
966
|
+
_auth_settings: list[str] = [
|
|
967
|
+
]
|
|
968
|
+
|
|
969
|
+
return self.api_client.param_serialize(
|
|
970
|
+
method='GET',
|
|
971
|
+
resource_path='/v1alpha/admin/connectors/{connector_id}',
|
|
972
|
+
path_params=_path_params,
|
|
973
|
+
query_params=_query_params,
|
|
974
|
+
header_params=_header_params,
|
|
975
|
+
body=_body_params,
|
|
976
|
+
post_params=_form_params,
|
|
977
|
+
files=_files,
|
|
978
|
+
auth_settings=_auth_settings,
|
|
979
|
+
collection_formats=_collection_formats,
|
|
980
|
+
_host=_host,
|
|
981
|
+
_request_auth=_request_auth
|
|
982
|
+
)
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
@validate_call
|
|
987
|
+
def connectors_v1alpha_admin_connectors_get(
|
|
988
|
+
self,
|
|
989
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
990
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
991
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
992
|
+
] | None = None,
|
|
993
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
994
|
+
_content_type: StrictStr | None = None,
|
|
995
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
996
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
997
|
+
) -> ListConnectorsResponse:
|
|
998
|
+
"""List all connectors.
|
|
999
|
+
|
|
1000
|
+
List all configured connectors.
|
|
1001
|
+
|
|
1002
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1003
|
+
number provided, it will be total request
|
|
1004
|
+
timeout. It can also be a pair (tuple) of
|
|
1005
|
+
(connection, read) timeouts.
|
|
1006
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1007
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1008
|
+
request; this effectively ignores the
|
|
1009
|
+
authentication in the spec for a single request.
|
|
1010
|
+
:type _request_auth: dict, optional
|
|
1011
|
+
:param _content_type: force content-type for the request.
|
|
1012
|
+
:type _content_type: str, Optional
|
|
1013
|
+
:param _headers: set to override the headers for a single
|
|
1014
|
+
request; this effectively ignores the headers
|
|
1015
|
+
in the spec for a single request.
|
|
1016
|
+
:type _headers: dict, optional
|
|
1017
|
+
:param _host_index: set to override the host_index for a single
|
|
1018
|
+
request; this effectively ignores the host_index
|
|
1019
|
+
in the spec for a single request.
|
|
1020
|
+
:type _host_index: int, optional
|
|
1021
|
+
:return: Returns the result object.
|
|
1022
|
+
""" # noqa: E501
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
_param = self._connectors_v1alpha_admin_connectors_get_serialize(
|
|
1026
|
+
_request_auth=_request_auth,
|
|
1027
|
+
_content_type=_content_type,
|
|
1028
|
+
_headers=_headers,
|
|
1029
|
+
_host_index=_host_index
|
|
1030
|
+
)
|
|
1031
|
+
|
|
1032
|
+
_response_types_map: dict[str, str | None] = {
|
|
1033
|
+
'200': "ListConnectorsResponse",
|
|
1034
|
+
'400': "Error",
|
|
1035
|
+
'429': "Error",
|
|
1036
|
+
'500': "Error",
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
response_data = self.api_client.call_api(
|
|
1040
|
+
*_param,
|
|
1041
|
+
_request_timeout=_request_timeout
|
|
1042
|
+
)
|
|
1043
|
+
|
|
1044
|
+
response_data.read()
|
|
1045
|
+
_deserialized = self.api_client.response_deserialize(
|
|
1046
|
+
response_data=response_data,
|
|
1047
|
+
response_types_map=_response_types_map,
|
|
1048
|
+
).data
|
|
1049
|
+
# Unwrap List*Response wrappers to return the data field directly
|
|
1050
|
+
if _deserialized is not None and hasattr(_deserialized, 'data'):
|
|
1051
|
+
return _deserialized.data
|
|
1052
|
+
return _deserialized
|
|
1053
|
+
|
|
1054
|
+
@validate_call
|
|
1055
|
+
def connectors_v1alpha_admin_connectors_get_with_http_info(
|
|
1056
|
+
self,
|
|
1057
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
1058
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1059
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1060
|
+
] | None = None,
|
|
1061
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
1062
|
+
_content_type: StrictStr | None = None,
|
|
1063
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
1064
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
1065
|
+
) -> ApiResponse[ListConnectorsResponse]:
|
|
1066
|
+
"""List all connectors.
|
|
1067
|
+
|
|
1068
|
+
List all configured connectors.
|
|
1069
|
+
|
|
1070
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1071
|
+
number provided, it will be total request
|
|
1072
|
+
timeout. It can also be a pair (tuple) of
|
|
1073
|
+
(connection, read) timeouts.
|
|
1074
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1075
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1076
|
+
request; this effectively ignores the
|
|
1077
|
+
authentication in the spec for a single request.
|
|
1078
|
+
:type _request_auth: dict, optional
|
|
1079
|
+
:param _content_type: force content-type for the request.
|
|
1080
|
+
:type _content_type: str, Optional
|
|
1081
|
+
:param _headers: set to override the headers for a single
|
|
1082
|
+
request; this effectively ignores the headers
|
|
1083
|
+
in the spec for a single request.
|
|
1084
|
+
:type _headers: dict, optional
|
|
1085
|
+
:param _host_index: set to override the host_index for a single
|
|
1086
|
+
request; this effectively ignores the host_index
|
|
1087
|
+
in the spec for a single request.
|
|
1088
|
+
:type _host_index: int, optional
|
|
1089
|
+
:return: Returns the result object.
|
|
1090
|
+
""" # noqa: E501
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
_param = self._connectors_v1alpha_admin_connectors_get_serialize(
|
|
1094
|
+
_request_auth=_request_auth,
|
|
1095
|
+
_content_type=_content_type,
|
|
1096
|
+
_headers=_headers,
|
|
1097
|
+
_host_index=_host_index
|
|
1098
|
+
)
|
|
1099
|
+
|
|
1100
|
+
_response_types_map: dict[str, str | None] = {
|
|
1101
|
+
'200': "ListConnectorsResponse",
|
|
1102
|
+
'400': "Error",
|
|
1103
|
+
'429': "Error",
|
|
1104
|
+
'500': "Error",
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
response_data = self.api_client.call_api(
|
|
1108
|
+
*_param,
|
|
1109
|
+
_request_timeout=_request_timeout
|
|
1110
|
+
)
|
|
1111
|
+
|
|
1112
|
+
response_data.read()
|
|
1113
|
+
return self.api_client.response_deserialize(
|
|
1114
|
+
response_data=response_data,
|
|
1115
|
+
response_types_map=_response_types_map,
|
|
1116
|
+
)
|
|
1117
|
+
|
|
1118
|
+
@validate_call
|
|
1119
|
+
def connectors_v1alpha_admin_connectors_get_without_preload_content(
|
|
1120
|
+
self,
|
|
1121
|
+
_request_timeout: Annotated[StrictFloat, Field(gt=0)] | tuple[
|
|
1122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1123
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1124
|
+
] | None = None,
|
|
1125
|
+
_request_auth: dict[StrictStr, Any] | None = None,
|
|
1126
|
+
_content_type: StrictStr | None = None,
|
|
1127
|
+
_headers: dict[StrictStr, Any] | None = None,
|
|
1128
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0
|
|
1129
|
+
) -> RESTResponseType:
|
|
1130
|
+
"""List all connectors.
|
|
1131
|
+
|
|
1132
|
+
List all configured connectors.
|
|
1133
|
+
|
|
1134
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1135
|
+
number provided, it will be total request
|
|
1136
|
+
timeout. It can also be a pair (tuple) of
|
|
1137
|
+
(connection, read) timeouts.
|
|
1138
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1139
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1140
|
+
request; this effectively ignores the
|
|
1141
|
+
authentication in the spec for a single request.
|
|
1142
|
+
:type _request_auth: dict, optional
|
|
1143
|
+
:param _content_type: force content-type for the request.
|
|
1144
|
+
:type _content_type: str, Optional
|
|
1145
|
+
:param _headers: set to override the headers for a single
|
|
1146
|
+
request; this effectively ignores the headers
|
|
1147
|
+
in the spec for a single request.
|
|
1148
|
+
:type _headers: dict, optional
|
|
1149
|
+
:param _host_index: set to override the host_index for a single
|
|
1150
|
+
request; this effectively ignores the host_index
|
|
1151
|
+
in the spec for a single request.
|
|
1152
|
+
:type _host_index: int, optional
|
|
1153
|
+
:return: Returns the result object.
|
|
1154
|
+
""" # noqa: E501
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
_param = self._connectors_v1alpha_admin_connectors_get_serialize(
|
|
1158
|
+
_request_auth=_request_auth,
|
|
1159
|
+
_content_type=_content_type,
|
|
1160
|
+
_headers=_headers,
|
|
1161
|
+
_host_index=_host_index
|
|
1162
|
+
)
|
|
1163
|
+
|
|
1164
|
+
_response_types_map: dict[str, str | None] = {
|
|
1165
|
+
'200': "ListConnectorsResponse",
|
|
1166
|
+
'400': "Error",
|
|
1167
|
+
'429': "Error",
|
|
1168
|
+
'500': "Error",
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
response_data = self.api_client.call_api(
|
|
1172
|
+
*_param,
|
|
1173
|
+
_request_timeout=_request_timeout
|
|
1174
|
+
)
|
|
1175
|
+
return response_data.response
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
def _connectors_v1alpha_admin_connectors_get_serialize(
|
|
1179
|
+
self,
|
|
1180
|
+
_request_auth,
|
|
1181
|
+
_content_type,
|
|
1182
|
+
_headers,
|
|
1183
|
+
_host_index,
|
|
1184
|
+
) -> RequestSerialized:
|
|
1185
|
+
|
|
1186
|
+
_host = None
|
|
1187
|
+
|
|
1188
|
+
_collection_formats: dict[str, str] = {
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
_path_params: dict[str, str] = {}
|
|
1192
|
+
_query_params: list[tuple[str, str]] = []
|
|
1193
|
+
_header_params: dict[str, str | None] = _headers or {}
|
|
1194
|
+
_form_params: list[tuple[str, str]] = []
|
|
1195
|
+
_files: dict[
|
|
1196
|
+
str, str | bytes | list[str] | list[bytes] | list[tuple[str, bytes]]
|
|
1197
|
+
] = {}
|
|
1198
|
+
_body_params: bytes | None = None
|
|
1199
|
+
|
|
1200
|
+
# process the path parameters
|
|
1201
|
+
# process the query parameters
|
|
1202
|
+
# process the header parameters
|
|
1203
|
+
# process the form parameters
|
|
1204
|
+
# process the body parameter
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
# set the HTTP header `Accept`
|
|
1208
|
+
if 'Accept' not in _header_params:
|
|
1209
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1210
|
+
[
|
|
1211
|
+
'application/json'
|
|
1212
|
+
]
|
|
1213
|
+
)
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
# authentication setting
|
|
1217
|
+
_auth_settings: list[str] = [
|
|
1218
|
+
]
|
|
1219
|
+
|
|
1220
|
+
return self.api_client.param_serialize(
|
|
1221
|
+
method='GET',
|
|
1222
|
+
resource_path='/v1alpha/admin/connectors',
|
|
1223
|
+
path_params=_path_params,
|
|
1224
|
+
query_params=_query_params,
|
|
1225
|
+
header_params=_header_params,
|
|
1226
|
+
body=_body_params,
|
|
1227
|
+
post_params=_form_params,
|
|
1228
|
+
files=_files,
|
|
1229
|
+
auth_settings=_auth_settings,
|
|
1230
|
+
collection_formats=_collection_formats,
|
|
1231
|
+
_host=_host,
|
|
1232
|
+
_request_auth=_request_auth
|
|
1233
|
+
)
|
|
1234
|
+
|
|
1235
|
+
|