c63a5cfe-b235-4fbe-8bbb-82a9e02a482a-python 0.1.0a3__py3-none-any.whl → 0.1.0a4__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.
- {c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a3.dist-info → c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a4.dist-info}/METADATA +91 -59
- c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a4.dist-info/RECORD +217 -0
- {c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a3.dist-info → c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a4.dist-info}/licenses/LICENSE +1 -1
- {digitalocean_genai_sdk → gradientai}/__init__.py +10 -9
- {digitalocean_genai_sdk → gradientai}/_base_client.py +39 -3
- {digitalocean_genai_sdk → gradientai}/_client.py +69 -148
- {digitalocean_genai_sdk → gradientai}/_exceptions.py +2 -2
- {digitalocean_genai_sdk → gradientai}/_resource.py +5 -5
- {digitalocean_genai_sdk → gradientai}/_response.py +6 -6
- {digitalocean_genai_sdk → gradientai}/_streaming.py +3 -3
- {digitalocean_genai_sdk → gradientai}/_types.py +1 -1
- {digitalocean_genai_sdk → gradientai}/_utils/_logs.py +3 -3
- gradientai/_utils/_resources_proxy.py +24 -0
- digitalocean_genai_sdk/types/providers/__init__.py → gradientai/_version.py +2 -1
- {digitalocean_genai_sdk → gradientai}/resources/__init__.py +13 -41
- {digitalocean_genai_sdk → gradientai}/resources/agents/agents.py +40 -16
- {digitalocean_genai_sdk → gradientai}/resources/agents/api_keys.py +34 -14
- {digitalocean_genai_sdk → gradientai}/resources/agents/child_agents.py +28 -12
- {digitalocean_genai_sdk → gradientai}/resources/agents/functions.py +22 -10
- {digitalocean_genai_sdk → gradientai}/resources/agents/knowledge_bases.py +22 -10
- {digitalocean_genai_sdk → gradientai}/resources/agents/versions.py +16 -8
- gradientai/resources/chat/__init__.py +33 -0
- gradientai/resources/chat/chat.py +102 -0
- digitalocean_genai_sdk/resources/chat.py → gradientai/resources/chat/completions.py +61 -57
- {digitalocean_genai_sdk → gradientai}/resources/indexing_jobs.py +34 -14
- gradientai/resources/inference/__init__.py +47 -0
- digitalocean_genai_sdk/resources/api_keys/api_keys_.py → gradientai/resources/inference/api_keys.py +40 -20
- gradientai/resources/inference/inference.py +134 -0
- {digitalocean_genai_sdk/resources → gradientai/resources/inference}/models.py +19 -15
- {digitalocean_genai_sdk → gradientai}/resources/knowledge_bases/data_sources.py +25 -12
- {digitalocean_genai_sdk → gradientai}/resources/knowledge_bases/knowledge_bases.py +34 -14
- digitalocean_genai_sdk/resources/api_keys/api_keys.py → gradientai/resources/models.py +51 -72
- {digitalocean_genai_sdk → gradientai}/resources/providers/anthropic/anthropic.py +4 -4
- {digitalocean_genai_sdk → gradientai}/resources/providers/anthropic/keys.py +40 -16
- {digitalocean_genai_sdk → gradientai}/resources/providers/openai/keys.py +40 -16
- {digitalocean_genai_sdk → gradientai}/resources/providers/openai/openai.py +4 -4
- {digitalocean_genai_sdk → gradientai}/resources/providers/providers.py +4 -4
- gradientai/resources/regions/__init__.py +61 -0
- gradientai/resources/regions/evaluation_datasets.py +292 -0
- gradientai/resources/regions/evaluation_runs/__init__.py +33 -0
- gradientai/resources/regions/evaluation_runs/evaluation_runs.py +316 -0
- gradientai/resources/regions/evaluation_runs/results.py +264 -0
- gradientai/resources/regions/evaluation_test_cases.py +618 -0
- gradientai/resources/regions/regions.py +352 -0
- {digitalocean_genai_sdk → gradientai}/types/__init__.py +7 -11
- {digitalocean_genai_sdk → gradientai}/types/agent_list_response.py +3 -3
- {digitalocean_genai_sdk → gradientai}/types/api_agent.py +8 -3
- digitalocean_genai_sdk/types/api_model.py → gradientai/types/api_agent_model.py +2 -2
- gradientai/types/api_evaluation_metric.py +24 -0
- digitalocean_genai_sdk/types/api_key_list_response.py → gradientai/types/api_model.py +3 -13
- {digitalocean_genai_sdk → gradientai}/types/api_openai_api_key_info.py +2 -2
- gradientai/types/api_workspace.py +36 -0
- gradientai/types/chat/__init__.py +7 -0
- {digitalocean_genai_sdk/types → gradientai/types/chat}/chat_completion_token_logprob.py +1 -1
- digitalocean_genai_sdk/types/chat_create_completion_params.py → gradientai/types/chat/completion_create_params.py +6 -29
- digitalocean_genai_sdk/types/chat_create_completion_response.py → gradientai/types/chat/completion_create_response.py +3 -3
- {digitalocean_genai_sdk/types/api_keys → gradientai/types/inference}/__init__.py +2 -0
- {digitalocean_genai_sdk/types → gradientai/types/inference}/model.py +1 -1
- {digitalocean_genai_sdk/types → gradientai/types/inference}/model_list_response.py +1 -1
- {digitalocean_genai_sdk → gradientai}/types/knowledge_base_create_params.py +3 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/__init__.py +1 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/api_knowledge_base_data_source.py +11 -1
- gradientai/types/knowledge_bases/aws_data_source_param.py +19 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/data_source_create_params.py +3 -14
- digitalocean_genai_sdk/types/api_key_list_params.py → gradientai/types/model_list_params.py +2 -2
- gradientai/types/model_list_response.py +18 -0
- gradientai/types/region_list_evaluation_metrics_response.py +12 -0
- gradientai/types/regions/__init__.py +32 -0
- gradientai/types/regions/api_evaluation_test_case.py +46 -0
- gradientai/types/regions/api_star_metric.py +19 -0
- gradientai/types/regions/api_star_metric_param.py +19 -0
- gradientai/types/regions/evaluation_dataset_create_file_upload_presigned_urls_params.py +20 -0
- gradientai/types/regions/evaluation_dataset_create_file_upload_presigned_urls_response.py +30 -0
- gradientai/types/regions/evaluation_dataset_create_params.py +17 -0
- gradientai/types/regions/evaluation_dataset_create_response.py +12 -0
- gradientai/types/regions/evaluation_run_create_params.py +17 -0
- gradientai/types/regions/evaluation_run_create_response.py +11 -0
- gradientai/types/regions/evaluation_run_retrieve_response.py +12 -0
- gradientai/types/regions/evaluation_runs/__init__.py +9 -0
- gradientai/types/regions/evaluation_runs/api_evaluation_metric_result.py +17 -0
- gradientai/types/regions/evaluation_runs/api_evaluation_run.py +56 -0
- gradientai/types/regions/evaluation_runs/api_prompt.py +42 -0
- gradientai/types/regions/evaluation_runs/result_retrieve_prompt_response.py +12 -0
- gradientai/types/regions/evaluation_runs/result_retrieve_response.py +16 -0
- gradientai/types/regions/evaluation_test_case_create_params.py +29 -0
- gradientai/types/regions/evaluation_test_case_create_response.py +12 -0
- gradientai/types/regions/evaluation_test_case_list_evaluation_runs_params.py +12 -0
- gradientai/types/regions/evaluation_test_case_list_evaluation_runs_response.py +13 -0
- gradientai/types/regions/evaluation_test_case_list_response.py +12 -0
- gradientai/types/regions/evaluation_test_case_retrieve_response.py +12 -0
- gradientai/types/regions/evaluation_test_case_update_params.py +32 -0
- gradientai/types/regions/evaluation_test_case_update_response.py +14 -0
- c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a3.dist-info/RECORD +0 -190
- digitalocean_genai_sdk/_utils/_resources_proxy.py +0 -24
- digitalocean_genai_sdk/_version.py +0 -4
- digitalocean_genai_sdk/resources/api_keys/__init__.py +0 -19
- digitalocean_genai_sdk/resources/auth/__init__.py +0 -33
- digitalocean_genai_sdk/resources/auth/agents/__init__.py +0 -33
- digitalocean_genai_sdk/resources/auth/agents/agents.py +0 -102
- digitalocean_genai_sdk/resources/auth/agents/token.py +0 -173
- digitalocean_genai_sdk/resources/auth/auth.py +0 -102
- digitalocean_genai_sdk/resources/embeddings.py +0 -201
- digitalocean_genai_sdk/resources/regions.py +0 -191
- digitalocean_genai_sdk/types/auth/agents/__init__.py +0 -6
- digitalocean_genai_sdk/types/auth/agents/token_create_params.py +0 -13
- digitalocean_genai_sdk/types/auth/agents/token_create_response.py +0 -13
- digitalocean_genai_sdk/types/chat_completion_request_message_content_part_text_param.py +0 -15
- digitalocean_genai_sdk/types/embedding_create_params.py +0 -28
- digitalocean_genai_sdk/types/embedding_create_response.py +0 -41
- {c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a3.dist-info → c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a4.dist-info}/WHEEL +0 -0
- {digitalocean_genai_sdk → gradientai}/_compat.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_constants.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_files.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_models.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_qs.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_utils/__init__.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_utils/_proxy.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_utils/_reflection.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_utils/_streams.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_utils/_sync.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_utils/_transform.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_utils/_typing.py +0 -0
- {digitalocean_genai_sdk → gradientai}/_utils/_utils.py +0 -0
- {digitalocean_genai_sdk → gradientai}/lib/.keep +0 -0
- {digitalocean_genai_sdk → gradientai}/py.typed +0 -0
- {digitalocean_genai_sdk → gradientai}/resources/agents/__init__.py +0 -0
- {digitalocean_genai_sdk → gradientai}/resources/knowledge_bases/__init__.py +0 -0
- {digitalocean_genai_sdk → gradientai}/resources/providers/__init__.py +0 -0
- {digitalocean_genai_sdk → gradientai}/resources/providers/anthropic/__init__.py +0 -0
- {digitalocean_genai_sdk → gradientai}/resources/providers/openai/__init__.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agent_create_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agent_create_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agent_delete_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agent_list_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agent_retrieve_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agent_update_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agent_update_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agent_update_status_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agent_update_status_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/__init__.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_key_create_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_key_create_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_key_delete_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_key_list_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_key_list_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_key_regenerate_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_key_update_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_key_update_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_link_knowledge_base_output.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_links.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/api_meta.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/child_agent_add_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/child_agent_add_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/child_agent_delete_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/child_agent_update_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/child_agent_update_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/child_agent_view_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/function_create_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/function_create_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/function_delete_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/function_update_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/function_update_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/knowledge_base_detach_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/version_list_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/version_list_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/version_update_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/agents/version_update_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/api_agent_api_key_info.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/api_agreement.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/api_anthropic_api_key_info.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/api_deployment_visibility.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/api_indexing_job.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/api_knowledge_base.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/api_model_version.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/api_retrieval_method.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/indexing_job_create_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/indexing_job_create_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/indexing_job_list_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/indexing_job_list_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/indexing_job_retrieve_data_sources_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/indexing_job_retrieve_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/indexing_job_update_cancel_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/indexing_job_update_cancel_response.py +0 -0
- {digitalocean_genai_sdk/types/api_keys → gradientai/types/inference}/api_key_create_params.py +0 -0
- {digitalocean_genai_sdk/types/api_keys → gradientai/types/inference}/api_key_create_response.py +0 -0
- {digitalocean_genai_sdk/types/api_keys → gradientai/types/inference}/api_key_delete_response.py +0 -0
- {digitalocean_genai_sdk/types/api_keys → gradientai/types/inference}/api_key_list_params.py +0 -0
- {digitalocean_genai_sdk/types/api_keys → gradientai/types/inference}/api_key_list_response.py +0 -0
- {digitalocean_genai_sdk/types/api_keys → gradientai/types/inference}/api_key_update_params.py +0 -0
- {digitalocean_genai_sdk/types/api_keys → gradientai/types/inference}/api_key_update_regenerate_response.py +0 -0
- {digitalocean_genai_sdk/types/api_keys → gradientai/types/inference}/api_key_update_response.py +0 -0
- {digitalocean_genai_sdk/types/api_keys → gradientai/types/inference}/api_model_api_key_info.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_base_create_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_base_delete_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_base_list_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_base_list_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_base_retrieve_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_base_update_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_base_update_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/api_file_upload_data_source.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/api_file_upload_data_source_param.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/api_spaces_data_source.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/api_spaces_data_source_param.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/api_web_crawler_data_source.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/api_web_crawler_data_source_param.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/data_source_create_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/data_source_delete_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/data_source_list_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/knowledge_bases/data_source_list_response.py +0 -0
- {digitalocean_genai_sdk/types/auth → gradientai/types/providers}/__init__.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/__init__.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/key_create_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/key_create_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/key_delete_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/key_list_agents_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/key_list_agents_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/key_list_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/key_list_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/key_retrieve_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/key_update_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/anthropic/key_update_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/__init__.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/key_create_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/key_create_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/key_delete_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/key_list_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/key_list_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/key_retrieve_agents_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/key_retrieve_agents_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/key_retrieve_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/key_update_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/providers/openai/key_update_response.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/region_list_params.py +0 -0
- {digitalocean_genai_sdk → gradientai}/types/region_list_response.py +0 -0
@@ -1,10 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: c63a5cfe-b235-4fbe-8bbb-82a9e02a482a-python
|
3
|
-
Version: 0.1.
|
4
|
-
Summary: The official Python library for the
|
5
|
-
Project-URL: Homepage, https://github.com/digitalocean/
|
6
|
-
Project-URL: Repository, https://github.com/digitalocean/
|
7
|
-
Author:
|
3
|
+
Version: 0.1.0a4
|
4
|
+
Summary: The official Python library for the GradientAI API
|
5
|
+
Project-URL: Homepage, https://github.com/digitalocean/gradientai-python
|
6
|
+
Project-URL: Repository, https://github.com/digitalocean/gradientai-python
|
7
|
+
Author: Gradient AI
|
8
8
|
License: Apache-2.0
|
9
9
|
Classifier: Intended Audience :: Developers
|
10
10
|
Classifier: License :: OSI Approved :: Apache Software License
|
@@ -27,13 +27,16 @@ Requires-Dist: httpx<1,>=0.23.0
|
|
27
27
|
Requires-Dist: pydantic<3,>=1.9.0
|
28
28
|
Requires-Dist: sniffio
|
29
29
|
Requires-Dist: typing-extensions<5,>=4.10
|
30
|
+
Provides-Extra: aiohttp
|
31
|
+
Requires-Dist: aiohttp; extra == 'aiohttp'
|
32
|
+
Requires-Dist: httpx-aiohttp>=0.1.6; extra == 'aiohttp'
|
30
33
|
Description-Content-Type: text/markdown
|
31
34
|
|
32
|
-
#
|
35
|
+
# Gradient AI Python API library
|
33
36
|
|
34
|
-
[](https://pypi.org/project/c63a5cfe-b235-4fbe-8bbb-82a9e02a482a-python/)
|
37
|
+
[>)](https://pypi.org/project/c63a5cfe-b235-4fbe-8bbb-82a9e02a482a-python/)
|
35
38
|
|
36
|
-
The
|
39
|
+
The Gradient AI Python library provides convenient access to the Gradient AI REST API from any Python 3.8+
|
37
40
|
application. The library includes type definitions for all request params and response fields,
|
38
41
|
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
|
39
42
|
|
@@ -41,7 +44,7 @@ It is generated with [Stainless](https://www.stainless.com/).
|
|
41
44
|
|
42
45
|
## Documentation
|
43
46
|
|
44
|
-
The REST API documentation can be found on [developers.digitalocean.com](https://developers.digitalocean.com/documentation/v2/). The full API of this library can be found in [api.md](https://github.com/digitalocean/
|
47
|
+
The REST API documentation can be found on [developers.digitalocean.com](https://developers.digitalocean.com/documentation/v2/). The full API of this library can be found in [api.md](https://github.com/digitalocean/gradientai-python/tree/main/api.md).
|
45
48
|
|
46
49
|
## Installation
|
47
50
|
|
@@ -52,16 +55,14 @@ pip install --pre c63a5cfe-b235-4fbe-8bbb-82a9e02a482a-python
|
|
52
55
|
|
53
56
|
## Usage
|
54
57
|
|
55
|
-
The full API of this library can be found in [api.md](https://github.com/digitalocean/
|
58
|
+
The full API of this library can be found in [api.md](https://github.com/digitalocean/gradientai-python/tree/main/api.md).
|
56
59
|
|
57
60
|
```python
|
58
61
|
import os
|
59
|
-
from
|
62
|
+
from gradientai import GradientAI
|
60
63
|
|
61
|
-
client =
|
62
|
-
api_key=os.environ.get(
|
63
|
-
"DIGITALOCEAN_GENAI_SDK_API_KEY"
|
64
|
-
), # This is the default and can be omitted
|
64
|
+
client = GradientAI(
|
65
|
+
api_key=os.environ.get("GRADIENTAI_API_KEY"), # This is the default and can be omitted
|
65
66
|
)
|
66
67
|
|
67
68
|
versions = client.agents.versions.list(
|
@@ -72,22 +73,20 @@ print(versions.agent_versions)
|
|
72
73
|
|
73
74
|
While you can provide an `api_key` keyword argument,
|
74
75
|
we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
|
75
|
-
to add `
|
76
|
+
to add `GRADIENTAI_API_KEY="My API Key"` to your `.env` file
|
76
77
|
so that your API Key is not stored in source control.
|
77
78
|
|
78
79
|
## Async usage
|
79
80
|
|
80
|
-
Simply import `
|
81
|
+
Simply import `AsyncGradientAI` instead of `GradientAI` and use `await` with each API call:
|
81
82
|
|
82
83
|
```python
|
83
84
|
import os
|
84
85
|
import asyncio
|
85
|
-
from
|
86
|
+
from gradientai import AsyncGradientAI
|
86
87
|
|
87
|
-
client =
|
88
|
-
api_key=os.environ.get(
|
89
|
-
"DIGITALOCEAN_GENAI_SDK_API_KEY"
|
90
|
-
), # This is the default and can be omitted
|
88
|
+
client = AsyncGradientAI(
|
89
|
+
api_key=os.environ.get("GRADIENTAI_API_KEY"), # This is the default and can be omitted
|
91
90
|
)
|
92
91
|
|
93
92
|
|
@@ -103,6 +102,40 @@ asyncio.run(main())
|
|
103
102
|
|
104
103
|
Functionality between the synchronous and asynchronous clients is otherwise identical.
|
105
104
|
|
105
|
+
### With aiohttp
|
106
|
+
|
107
|
+
By default, the async client uses `httpx` for HTTP requests. However, for improved concurrency performance you may also use `aiohttp` as the HTTP backend.
|
108
|
+
|
109
|
+
You can enable this by installing `aiohttp`:
|
110
|
+
|
111
|
+
```sh
|
112
|
+
# install from PyPI
|
113
|
+
pip install --pre c63a5cfe-b235-4fbe-8bbb-82a9e02a482a-python[aiohttp]
|
114
|
+
```
|
115
|
+
|
116
|
+
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
|
117
|
+
|
118
|
+
```python
|
119
|
+
import os
|
120
|
+
import asyncio
|
121
|
+
from gradientai import DefaultAioHttpClient
|
122
|
+
from gradientai import AsyncGradientAI
|
123
|
+
|
124
|
+
|
125
|
+
async def main() -> None:
|
126
|
+
async with AsyncGradientAI(
|
127
|
+
api_key=os.environ.get("GRADIENTAI_API_KEY"), # This is the default and can be omitted
|
128
|
+
http_client=DefaultAioHttpClient(),
|
129
|
+
) as client:
|
130
|
+
versions = await client.agents.versions.list(
|
131
|
+
uuid="REPLACE_ME",
|
132
|
+
)
|
133
|
+
print(versions.agent_versions)
|
134
|
+
|
135
|
+
|
136
|
+
asyncio.run(main())
|
137
|
+
```
|
138
|
+
|
106
139
|
## Using types
|
107
140
|
|
108
141
|
Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev) which also provide helper methods for things like:
|
@@ -117,42 +150,41 @@ Typed requests and responses provide autocomplete and documentation within your
|
|
117
150
|
Nested parameters are dictionaries, typed using `TypedDict`, for example:
|
118
151
|
|
119
152
|
```python
|
120
|
-
from
|
153
|
+
from gradientai import GradientAI
|
121
154
|
|
122
|
-
client =
|
155
|
+
client = GradientAI()
|
123
156
|
|
124
|
-
|
125
|
-
|
126
|
-
aws_data_source={},
|
157
|
+
evaluation_test_case = client.regions.evaluation_test_cases.create(
|
158
|
+
star_metric={},
|
127
159
|
)
|
128
|
-
print(
|
160
|
+
print(evaluation_test_case.star_metric)
|
129
161
|
```
|
130
162
|
|
131
163
|
## Handling errors
|
132
164
|
|
133
|
-
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `
|
165
|
+
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `gradientai.APIConnectionError` is raised.
|
134
166
|
|
135
167
|
When the API returns a non-success status code (that is, 4xx or 5xx
|
136
|
-
response), a subclass of `
|
168
|
+
response), a subclass of `gradientai.APIStatusError` is raised, containing `status_code` and `response` properties.
|
137
169
|
|
138
|
-
All errors inherit from `
|
170
|
+
All errors inherit from `gradientai.APIError`.
|
139
171
|
|
140
172
|
```python
|
141
|
-
import
|
142
|
-
from
|
173
|
+
import gradientai
|
174
|
+
from gradientai import GradientAI
|
143
175
|
|
144
|
-
client =
|
176
|
+
client = GradientAI()
|
145
177
|
|
146
178
|
try:
|
147
179
|
client.agents.versions.list(
|
148
180
|
uuid="REPLACE_ME",
|
149
181
|
)
|
150
|
-
except
|
182
|
+
except gradientai.APIConnectionError as e:
|
151
183
|
print("The server could not be reached")
|
152
184
|
print(e.__cause__) # an underlying Exception, likely raised within httpx.
|
153
|
-
except
|
185
|
+
except gradientai.RateLimitError as e:
|
154
186
|
print("A 429 status code was received; we should back off a bit.")
|
155
|
-
except
|
187
|
+
except gradientai.APIStatusError as e:
|
156
188
|
print("Another non-200-range status code was received")
|
157
189
|
print(e.status_code)
|
158
190
|
print(e.response)
|
@@ -180,10 +212,10 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
|
|
180
212
|
You can use the `max_retries` option to configure or disable retry settings:
|
181
213
|
|
182
214
|
```python
|
183
|
-
from
|
215
|
+
from gradientai import GradientAI
|
184
216
|
|
185
217
|
# Configure the default for all requests:
|
186
|
-
client =
|
218
|
+
client = GradientAI(
|
187
219
|
# default is 2
|
188
220
|
max_retries=0,
|
189
221
|
)
|
@@ -197,19 +229,19 @@ client.with_options(max_retries=5).agents.versions.list(
|
|
197
229
|
### Timeouts
|
198
230
|
|
199
231
|
By default requests time out after 1 minute. You can configure this with a `timeout` option,
|
200
|
-
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/#fine-tuning-the-configuration) object:
|
232
|
+
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
|
201
233
|
|
202
234
|
```python
|
203
|
-
from
|
235
|
+
from gradientai import GradientAI
|
204
236
|
|
205
237
|
# Configure the default for all requests:
|
206
|
-
client =
|
238
|
+
client = GradientAI(
|
207
239
|
# 20 seconds (default is 1 minute)
|
208
240
|
timeout=20.0,
|
209
241
|
)
|
210
242
|
|
211
243
|
# More granular control:
|
212
|
-
client =
|
244
|
+
client = GradientAI(
|
213
245
|
timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
|
214
246
|
)
|
215
247
|
|
@@ -221,7 +253,7 @@ client.with_options(timeout=5.0).agents.versions.list(
|
|
221
253
|
|
222
254
|
On timeout, an `APITimeoutError` is thrown.
|
223
255
|
|
224
|
-
Note that requests that time out are [retried twice by default](https://github.com/digitalocean/
|
256
|
+
Note that requests that time out are [retried twice by default](https://github.com/digitalocean/gradientai-python/tree/main/#retries).
|
225
257
|
|
226
258
|
## Advanced
|
227
259
|
|
@@ -229,10 +261,10 @@ Note that requests that time out are [retried twice by default](https://github.c
|
|
229
261
|
|
230
262
|
We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
|
231
263
|
|
232
|
-
You can enable logging by setting the environment variable `
|
264
|
+
You can enable logging by setting the environment variable `GRADIENT_AI_LOG` to `info`.
|
233
265
|
|
234
266
|
```shell
|
235
|
-
$ export
|
267
|
+
$ export GRADIENT_AI_LOG=info
|
236
268
|
```
|
237
269
|
|
238
270
|
Or to `debug` for more verbose logging.
|
@@ -254,9 +286,9 @@ if response.my_field is None:
|
|
254
286
|
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
|
255
287
|
|
256
288
|
```py
|
257
|
-
from
|
289
|
+
from gradientai import GradientAI
|
258
290
|
|
259
|
-
client =
|
291
|
+
client = GradientAI()
|
260
292
|
response = client.agents.versions.with_raw_response.list(
|
261
293
|
uuid="REPLACE_ME",
|
262
294
|
)
|
@@ -266,9 +298,9 @@ version = response.parse() # get the object that `agents.versions.list()` would
|
|
266
298
|
print(version.agent_versions)
|
267
299
|
```
|
268
300
|
|
269
|
-
These methods return an [`APIResponse`](https://github.com/digitalocean/
|
301
|
+
These methods return an [`APIResponse`](https://github.com/digitalocean/gradientai-python/tree/main/src/gradientai/_response.py) object.
|
270
302
|
|
271
|
-
The async client returns an [`AsyncAPIResponse`](https://github.com/digitalocean/
|
303
|
+
The async client returns an [`AsyncAPIResponse`](https://github.com/digitalocean/gradientai-python/tree/main/src/gradientai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
|
272
304
|
|
273
305
|
#### `.with_streaming_response`
|
274
306
|
|
@@ -332,10 +364,10 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
|
|
332
364
|
|
333
365
|
```python
|
334
366
|
import httpx
|
335
|
-
from
|
367
|
+
from gradientai import GradientAI, DefaultHttpxClient
|
336
368
|
|
337
|
-
client =
|
338
|
-
# Or use the `
|
369
|
+
client = GradientAI(
|
370
|
+
# Or use the `GRADIENT_AI_BASE_URL` env var
|
339
371
|
base_url="http://my.test.server.example.com:8083",
|
340
372
|
http_client=DefaultHttpxClient(
|
341
373
|
proxy="http://my.test.proxy.example.com",
|
@@ -355,9 +387,9 @@ client.with_options(http_client=DefaultHttpxClient(...))
|
|
355
387
|
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
|
356
388
|
|
357
389
|
```py
|
358
|
-
from
|
390
|
+
from gradientai import GradientAI
|
359
391
|
|
360
|
-
with
|
392
|
+
with GradientAI() as client:
|
361
393
|
# make requests here
|
362
394
|
...
|
363
395
|
|
@@ -374,7 +406,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
|
|
374
406
|
|
375
407
|
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
|
376
408
|
|
377
|
-
We are keen for your feedback; please open an [issue](https://www.github.com/digitalocean/
|
409
|
+
We are keen for your feedback; please open an [issue](https://www.github.com/digitalocean/gradientai-python/issues) with questions, bugs, or suggestions.
|
378
410
|
|
379
411
|
### Determining the installed version
|
380
412
|
|
@@ -383,8 +415,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
|
|
383
415
|
You can determine the version that is being used at runtime with:
|
384
416
|
|
385
417
|
```py
|
386
|
-
import
|
387
|
-
print(
|
418
|
+
import gradientai
|
419
|
+
print(gradientai.__version__)
|
388
420
|
```
|
389
421
|
|
390
422
|
## Requirements
|
@@ -393,4 +425,4 @@ Python 3.8 or higher.
|
|
393
425
|
|
394
426
|
## Contributing
|
395
427
|
|
396
|
-
See [the contributing documentation](https://github.com/digitalocean/
|
428
|
+
See [the contributing documentation](https://github.com/digitalocean/gradientai-python/tree/main/./CONTRIBUTING.md).
|
@@ -0,0 +1,217 @@
|
|
1
|
+
gradientai/__init__.py,sha256=yqy3yZnX0JVUS-H01MAvroChzqS67Qf072OrPfNckjI,2655
|
2
|
+
gradientai/_base_client.py,sha256=TADFnPHK7WpsNuJUY76SxMFf2IVoOdz_tlloQEXkutk,66719
|
3
|
+
gradientai/_client.py,sha256=Gw09z9s3RJ5VkGSddstksCMUbRXNXABxwaE_52QBE6I,26891
|
4
|
+
gradientai/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
5
|
+
gradientai/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
6
|
+
gradientai/_exceptions.py,sha256=o1GvaW36c7_LMj5WasVKUBOpae8tzETBJsfbVphb3Vk,3228
|
7
|
+
gradientai/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
|
8
|
+
gradientai/_models.py,sha256=G1vczEodX0vUySeVKbF-mbzlaObNL1oVAYH4c65agRk,29131
|
9
|
+
gradientai/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
10
|
+
gradientai/_resource.py,sha256=4NZbH2h8dQ-t-DQPida4VANJ_oZJNA7qxV84mwJT8oM,1124
|
11
|
+
gradientai/_response.py,sha256=RhlDdupxTcKNyDDj045MZD3-a_lsEc3yjiOzxWg0cDc,28842
|
12
|
+
gradientai/_streaming.py,sha256=AWqY4cmmmTplZperXnkkMkeQ11gmpqYbt6TIXByqCv8,10116
|
13
|
+
gradientai/_types.py,sha256=22gBoIuoGJ1R6l5nPwquWCRzJodKhO-3e7k22-h37JQ,6201
|
14
|
+
gradientai/_version.py,sha256=tmdbLShVf7Cqp0JI3L-RIsjYh_OqTvIPiEuHkOeCFxk,170
|
15
|
+
gradientai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
|
+
gradientai/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
|
+
gradientai/_utils/_logs.py,sha256=1QuZcxzSKHcqNFbPoz_pvfLD5eDfOMBzGMyanAm_2gw,787
|
18
|
+
gradientai/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
|
19
|
+
gradientai/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
|
20
|
+
gradientai/_utils/_resources_proxy.py,sha256=NDJuLXxRGC4t6-ySSK6WI-uyqJzx3Z-doQRGfCkuP3w,609
|
21
|
+
gradientai/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
|
22
|
+
gradientai/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
|
23
|
+
gradientai/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWkdj88,15617
|
24
|
+
gradientai/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,4602
|
25
|
+
gradientai/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
|
26
|
+
gradientai/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
27
|
+
gradientai/resources/__init__.py,sha256=qM_7RzdGLxvPNsbuzJMx-tx22uOYwPEUMEJvxRu69KY,3951
|
28
|
+
gradientai/resources/indexing_jobs.py,sha256=SIxT6ONHlLoFUSeRfVtyf4GDiIaPo34kD8ugBpB1Hvk,23060
|
29
|
+
gradientai/resources/models.py,sha256=SKdBMKr6NP1ldD_xzbr-gUL8hdo33omUAz5UPAJ0KWQ,9434
|
30
|
+
gradientai/resources/agents/__init__.py,sha256=g7RE6uq7nxVbg2vQuei1DHvdp8GopokdkT5VQFyP718,3052
|
31
|
+
gradientai/resources/agents/agents.py,sha256=8cBy5zOAl3AkFHNir3ilkvE9_LwqDDxVlHDPRwNQqWg,39691
|
32
|
+
gradientai/resources/agents/api_keys.py,sha256=1Uh77vhUD0WYUkvX0RD4VcLCOWFG6vL6Lz1EQRDx-t4,24632
|
33
|
+
gradientai/resources/agents/child_agents.py,sha256=o3R388I34Gtv3N2VPYURlsJja4Qi6bmdNgPlFIOgANQ,22405
|
34
|
+
gradientai/resources/agents/functions.py,sha256=ZAOelsCnOl8lRuF5RpZDVGMN-E0yTG4Vo3hA-wv5Ldg,18492
|
35
|
+
gradientai/resources/agents/knowledge_bases.py,sha256=rFIrqsT7nXFJ_Sy4OWpUc8QmBGKSN_PhYpFpWvYHTfg,15191
|
36
|
+
gradientai/resources/agents/versions.py,sha256=hmHDaawFkpqoUEYI4Vi5jckH3mamkPKupXO3cZccyKE,11546
|
37
|
+
gradientai/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
|
38
|
+
gradientai/resources/chat/chat.py,sha256=ANOEzzDATXj-onkkdtvVad9O-Dfwe7Uza7yfA_3bU4U,3696
|
39
|
+
gradientai/resources/chat/completions.py,sha256=I9XQiY7JsWiLGKN4Yr9mRxlQAkfG7Mi0f7KvJIWyRRA,18208
|
40
|
+
gradientai/resources/inference/__init__.py,sha256=y-CpQwkBQ2dmwB_VsNIDl4RG8dl5PiOOP8oyudt7KwA,1505
|
41
|
+
gradientai/resources/inference/api_keys.py,sha256=xgWTFTp8IVRkw2nvXnfjBZPOTJyLUDIKlE7fSmb1y2I,22021
|
42
|
+
gradientai/resources/inference/inference.py,sha256=11SbjCT5Kd5ljWXsHqUmWBUWbx2LWjYn-lWDYHzDu70,4852
|
43
|
+
gradientai/resources/inference/models.py,sha256=iVpwkdyIoNL_OPp023YPEcukqPmzAQJ4K3Nq38X4058,8624
|
44
|
+
gradientai/resources/knowledge_bases/__init__.py,sha256=QEpOfT6q4B_U2c274p-CcEzBly2G20q9hhNTOGmAYyg,1173
|
45
|
+
gradientai/resources/knowledge_bases/data_sources.py,sha256=uSX40BBVrjnEpa3DATR2XH76gmJANG-oFnMe5N8MTis,17889
|
46
|
+
gradientai/resources/knowledge_bases/knowledge_bases.py,sha256=-xm_zKLw9CErFLjCn8curjSI8GnORAJ4XS6gzeGM9fw,28171
|
47
|
+
gradientai/resources/providers/__init__.py,sha256=5ZD8jGQM1E9T9fijxpyOvXbs4kTV4-U49Bk1iDa_Yyc,1530
|
48
|
+
gradientai/resources/providers/providers.py,sha256=5EQ42roZY5TWFGl5bRT6tQeR0H8NvKt_4wxAozgMuKE,4916
|
49
|
+
gradientai/resources/providers/anthropic/__init__.py,sha256=07ZXCxoPjF79SZEYuffvDn-WcVsSjhNZm7HBMb_6pYI,1015
|
50
|
+
gradientai/resources/providers/anthropic/anthropic.py,sha256=F056ue6d1WI8amKsarHh-Sfe_E3DRgxlEZOUL5S5JkU,3675
|
51
|
+
gradientai/resources/providers/anthropic/keys.py,sha256=eAqaWahRdTWto6gPZaXXokExB9o5227Km7L2q3w9Ur8,26432
|
52
|
+
gradientai/resources/providers/openai/__init__.py,sha256=77LFIe5ko8imMJR7pkAn3E9r4rzw7j2fF9ZSpBaLZyo,976
|
53
|
+
gradientai/resources/providers/openai/keys.py,sha256=J__usZ3hHnphMvGejEb2vcQFO_jPwIaSDET_QXDvUW0,26325
|
54
|
+
gradientai/resources/providers/openai/openai.py,sha256=MfV9fB4EJVa6RYIfVS2QJW_BSkShLKCscDuxDV8wCBE,3567
|
55
|
+
gradientai/resources/regions/__init__.py,sha256=yYEKyvpSHWtq7HityPJNUGWagcq_5XF4qqBDRIdyxYg,2348
|
56
|
+
gradientai/resources/regions/evaluation_datasets.py,sha256=HGhu5gd1-dAo85NBJLRKxCFbNb2oi55ebLShBShflbw,12597
|
57
|
+
gradientai/resources/regions/evaluation_test_cases.py,sha256=0BZtXY0EhrDOpsYwBVc207OqreOLIxgXy8aFMLEsuEU,26465
|
58
|
+
gradientai/resources/regions/regions.py,sha256=tJ57tQ6yszMyOJ2-pULZhNh14gIevOo3qNhYGfZjQCA,14221
|
59
|
+
gradientai/resources/regions/evaluation_runs/__init__.py,sha256=98TXHKtILDwZdKz9B4vsfHtc_3srH_ysrb4Ytdo-fhs,1120
|
60
|
+
gradientai/resources/regions/evaluation_runs/evaluation_runs.py,sha256=GJpkgeuNmjYfYcKoUHzugR2dh0Nn7IFuq3YPbA1eX44,12542
|
61
|
+
gradientai/resources/regions/evaluation_runs/results.py,sha256=xSpsgpJPG2BxUGEoegcJ1g-e3aWRJjo19FneRPKEloM,10738
|
62
|
+
gradientai/types/__init__.py,sha256=7qRMlDFqnNAyZLoxVSOQPdAUlWXH0uzXNzbAaLlI3Vw,3917
|
63
|
+
gradientai/types/agent_create_params.py,sha256=nvLpM8V64762cwAn7ggyvbSzQ0mgjwOopOUZ_bVL1-I,912
|
64
|
+
gradientai/types/agent_create_response.py,sha256=frBMp76xLUzznVzWP70fb49drn3r3-2l4kX1xpQrNmg,332
|
65
|
+
gradientai/types/agent_delete_response.py,sha256=_1ciIOuRDvbeuaBvbCOpLV7QF6TufMX5MXNsBZv6H4s,332
|
66
|
+
gradientai/types/agent_list_params.py,sha256=RC6oo07xNp6vfHRLvwS5wRrM6yjpEUf7Q0RNyc3lUQM,396
|
67
|
+
gradientai/types/agent_list_response.py,sha256=tnbIoQFQlGY625k8g723c-YQ5kO-jc1719LjcwoLDQs,4873
|
68
|
+
gradientai/types/agent_retrieve_response.py,sha256=y7F3MascI1aBoVkPORghe_CQHstUXBVF4oMJcjDByMk,336
|
69
|
+
gradientai/types/agent_update_params.py,sha256=aIuFbZmb0fBXvGFnjL4nWobXgwfVUe1IEiMqYzYPAJ8,1771
|
70
|
+
gradientai/types/agent_update_response.py,sha256=tLXl32VqNHwi8oW9A9jRKMFcGjXR1edflnr7ermyspQ,332
|
71
|
+
gradientai/types/agent_update_status_params.py,sha256=rK-txkmPGkR4cChMVJ0_t5fy3XZWBPlTP2eEykPST0w,467
|
72
|
+
gradientai/types/agent_update_status_response.py,sha256=pbl3IO_hNYlVh3cFmXQccUZKSJe97pC-LFS-QZ5Ab2U,344
|
73
|
+
gradientai/types/api_agent.py,sha256=dUGm4_bD_R7OQ_fSvQWZU6fSUVIMhFUAfnzUIfmZ2W0,6017
|
74
|
+
gradientai/types/api_agent_api_key_info.py,sha256=fXqCbC6UVQg3X15WhGFoDn1g0x6IJ9ec5uK3siAnmE0,476
|
75
|
+
gradientai/types/api_agent_model.py,sha256=GHX8w9IBBOsYnIFv8E0SF_vOWvETAG8kkrYqvz8S59g,1435
|
76
|
+
gradientai/types/api_agreement.py,sha256=hMeoGBF2HySVHDm4dFTyamq19BexwhezL6Y1e_R1uFk,342
|
77
|
+
gradientai/types/api_anthropic_api_key_info.py,sha256=Ii_1zvwZselJjf9XwUGDFWq-fT7VlgC_l-cfXQfpc-s,489
|
78
|
+
gradientai/types/api_deployment_visibility.py,sha256=WT2fj4lgBorEOB9EirE50Xn0-J56a5v1zXuNpKCrzf0,340
|
79
|
+
gradientai/types/api_evaluation_metric.py,sha256=veJhs4Qw7-06-e3_tXkC_mYokJXtWBiH5gT0losFEn8,672
|
80
|
+
gradientai/types/api_indexing_job.py,sha256=kcnTvlBHxsvEQNlwVqZLx286tSHeB9J28KWuAnu0IuQ,1053
|
81
|
+
gradientai/types/api_knowledge_base.py,sha256=EhP7oIFttRVUlAR495zzb8nu9cD1l5K4hVKvyjY5JlE,823
|
82
|
+
gradientai/types/api_model.py,sha256=cTBrApG2za1_mR6Cca9vL254XczcxZM0lVMfXEqhFnE,718
|
83
|
+
gradientai/types/api_model_version.py,sha256=heTuejUUfP0GVFThpYEhwPqBc331hrMBGF_8Uq2qcME,313
|
84
|
+
gradientai/types/api_openai_api_key_info.py,sha256=_vfDX_fAIwHB1BXqNk7dUeA7meSU5GVTLbdDblSK5rY,582
|
85
|
+
gradientai/types/api_retrieval_method.py,sha256=hbD5272cHgAqDCwPv7tqIUlqNnDAOIjkwDUTciglitE,377
|
86
|
+
gradientai/types/api_workspace.py,sha256=cQLU3dFUJP24rbVlcyphD6YjZX7wTKsV9oESast9nYE,816
|
87
|
+
gradientai/types/indexing_job_create_params.py,sha256=OhQcaCShz4GB3N27erLsRCDLJOXJMSTPnAL8jN099hg,346
|
88
|
+
gradientai/types/indexing_job_create_response.py,sha256=TM02ila6BiuGjf7jh3wM3vGOuc8NRS8AHEknYvDEIrE,321
|
89
|
+
gradientai/types/indexing_job_list_params.py,sha256=6bECitbPQGnm-WdSIULUcX47CeEVa5wqKWfYhWZC4Wo,337
|
90
|
+
gradientai/types/indexing_job_list_response.py,sha256=6E0yPeaor5EYprBgXx4w5SW8jrAOi0umPe6YiYN38h4,480
|
91
|
+
gradientai/types/indexing_job_retrieve_data_sources_response.py,sha256=-cmdbgm2WgygZER6JQp4E2kTkeXbAjjxZmIc1Jw-oW8,1361
|
92
|
+
gradientai/types/indexing_job_retrieve_response.py,sha256=xqnOC9HhwZWpgDPDQC46dBtSrNJUupoqjphh5Da-OBM,325
|
93
|
+
gradientai/types/indexing_job_update_cancel_params.py,sha256=b9t1-RXUbT45Qp4LkmJ1P6KxAA7OMLVJpqHdti8Mibk,426
|
94
|
+
gradientai/types/indexing_job_update_cancel_response.py,sha256=zgUun3J5_KvzFZqSuNzSPXDXCxDq5GhkgMNNnBkH6QU,333
|
95
|
+
gradientai/types/knowledge_base_create_params.py,sha256=qr9msSag-RTna-wcjDeGJ4xMi7vhnXbtGOub4b3nhME,2076
|
96
|
+
gradientai/types/knowledge_base_create_response.py,sha256=bpVpd6X2_OfBZMQPdvkFXQb6YfHTPsXw3F1RpX4Vaso,342
|
97
|
+
gradientai/types/knowledge_base_delete_response.py,sha256=Qwzyk1akgmNrjfYmtm53onng5UtFSXYxLzHKQNSuW6A,270
|
98
|
+
gradientai/types/knowledge_base_list_params.py,sha256=ix0uGYXNXrRhZNRFtun3sLhE6Hd_yoSlgzvGyPqT0XY,341
|
99
|
+
gradientai/types/knowledge_base_list_response.py,sha256=nPb2zOk8vja4jPGUknKLCk4zYOzUmsXe-Xt2c1GjBxg,501
|
100
|
+
gradientai/types/knowledge_base_retrieve_response.py,sha256=zwsKaL1KEfgFbglBriT4XorDz6PUwmvgkIrnD0mzWpI,758
|
101
|
+
gradientai/types/knowledge_base_update_params.py,sha256=8TRWSRY6c1tRTKPwBNkjwdw_1FbJ1Jmy7vX3covlj64,681
|
102
|
+
gradientai/types/knowledge_base_update_response.py,sha256=hNxnfwd-eyRIAuy7KxcQfG-dEK3TZITMYmAv7VH7AyE,342
|
103
|
+
gradientai/types/model_list_params.py,sha256=RGl48iwa2txemByFNe1EypUyE3CjPgsyr_bOu2mKesY,1335
|
104
|
+
gradientai/types/model_list_response.py,sha256=mhviLaxxVtIuJiHWT_-ozDeQStg5FXV1VRbd-sz80kc,451
|
105
|
+
gradientai/types/region_list_evaluation_metrics_response.py,sha256=XoQ7I-ChlgLsiJ8psWAbj37ANO0TyCFH8X3cNkcTF8Y,372
|
106
|
+
gradientai/types/region_list_params.py,sha256=_oeMCCqhoSpB4rb3BvQw97w-Zo6eblgye3iuIoTjMHs,418
|
107
|
+
gradientai/types/region_list_response.py,sha256=JyPfcqxMTafktlkuq5S2Vog77rMQ1RJ6_3cCa-gi0yA,515
|
108
|
+
gradientai/types/agents/__init__.py,sha256=7lIU6xpoGfD6x16uuNW14EOGyck5nje5lt4DdOXD7Ds,2313
|
109
|
+
gradientai/types/agents/api_key_create_params.py,sha256=nbdADmTDS1_MbQZYsGTPkmpHvWQV7s6R815uSBJO3KA,381
|
110
|
+
gradientai/types/agents/api_key_create_response.py,sha256=3GURkoTxf4JQ3vegYIN5Ph68jz82k2UG6yKbLIN8Xqk,336
|
111
|
+
gradientai/types/agents/api_key_delete_response.py,sha256=jDUrMgujEeW-Y-KqvoG28IGZSgPOOZ2XjuVIIo2lVrU,336
|
112
|
+
gradientai/types/agents/api_key_list_params.py,sha256=2bqdW2M_aw0ae7qY-zDgnxa96gun0V9Wzv2hwISss-8,327
|
113
|
+
gradientai/types/agents/api_key_list_response.py,sha256=wBycxE1gngdzPsB-BMVEtLf0NeYutTKCpF1pIz6Op0k,481
|
114
|
+
gradientai/types/agents/api_key_regenerate_response.py,sha256=TML0mOW1vJ7A1E49xJsVfJSs4BTcNmhsKMNPv0GeGF8,344
|
115
|
+
gradientai/types/agents/api_key_update_params.py,sha256=dK14YjCCy8GThEOBykQhgAvCuYPAHxFsf0nHIrmO534,547
|
116
|
+
gradientai/types/agents/api_key_update_response.py,sha256=t8QvQ1HJT2DadyMUjCpmthK8OpqAUwo-7SKmqcs1RSI,336
|
117
|
+
gradientai/types/agents/api_link_knowledge_base_output.py,sha256=7CppA-k04phV0oaqBiZssJKTfWHyDybJrNGY56NBT5k,348
|
118
|
+
gradientai/types/agents/api_links.py,sha256=Iq5iQwOkRYuwLcuDLk54dUfrq0f2ZVEOXSpF744gYgA,403
|
119
|
+
gradientai/types/agents/api_meta.py,sha256=-KyinzQqM5GSjD7E5xm7A4UALXAvLOyVNR1SYVOUFJM,297
|
120
|
+
gradientai/types/agents/child_agent_add_params.py,sha256=VmIFWrFQxJjrGVgPX-bCYAR1ESUMTKEuuGHthQOzfDo,661
|
121
|
+
gradientai/types/agents/child_agent_add_response.py,sha256=cZuIFwGWdgWhHk5KrYfSVvhNXRE4m5qnmzhTK4b7ZeE,368
|
122
|
+
gradientai/types/agents/child_agent_delete_response.py,sha256=uufcv13FRiTra7WcnDxWylprHJ59k9_TWiR09-NH2oI,322
|
123
|
+
gradientai/types/agents/child_agent_update_params.py,sha256=UWrF4dBq8cpv3GNXg4Q0lYKIKsBchDS5nodyvcW1sGA,682
|
124
|
+
gradientai/types/agents/child_agent_update_response.py,sha256=iYpJdWB1zpBhTqsnn7Mn94ABh2Yt-kJJwXwTrn-118k,443
|
125
|
+
gradientai/types/agents/child_agent_view_response.py,sha256=nbUgwyIbDmm5XuGycdl4QgNMUWaTxBsnFJG_0QoEbTI,355
|
126
|
+
gradientai/types/agents/function_create_params.py,sha256=AagCrtptfN15XA0WdFWvzcDTsVqjH_ztjvW3yZXxIQU,514
|
127
|
+
gradientai/types/agents/function_create_response.py,sha256=_HlKLn7L6NtRQJEQLTYAZRk1XLq8AmrspjxJ7NO3FOI,340
|
128
|
+
gradientai/types/agents/function_delete_response.py,sha256=mXVfs4hsYbiRijPwfEAz3xhmpsGrJbz58YF-BLt-NrY,340
|
129
|
+
gradientai/types/agents/function_update_params.py,sha256=rTc1J3VwUikAk3WR3lbWe_dq8QebS39C1LKm8kkXYs0,682
|
130
|
+
gradientai/types/agents/function_update_response.py,sha256=_u_a9cf7DSx6wplCKx7ZkzM4-TBWNhIXgtVZY83gCWQ,340
|
131
|
+
gradientai/types/agents/knowledge_base_detach_response.py,sha256=dCFJvnfuz6otqLZ9Lae11S3ouSSM9xkYU9UWenaKPjg,350
|
132
|
+
gradientai/types/agents/version_list_params.py,sha256=0_3DhUbFDRyjUnn2G4saFOvuotRXI5EFZ4n4s6qUF8o,329
|
133
|
+
gradientai/types/agents/version_list_response.py,sha256=vZhI4hcTxSAdnR7W6HVGMVJ7pN3scoNFE2HEoy-tD4I,2709
|
134
|
+
gradientai/types/agents/version_update_params.py,sha256=j9tOda5wXmSOHsmcxQONo2mM-hEtrYi5-19HfGU_XnI,379
|
135
|
+
gradientai/types/agents/version_update_response.py,sha256=nspPIkxQskT82tcW0JyG7bBVlXq_KU6CZzodTd9jfkQ,709
|
136
|
+
gradientai/types/chat/__init__.py,sha256=zdTzozOxKOf2jRrwHBHU2Rmtz4nOTwQkYQl2ZbLJZyg,403
|
137
|
+
gradientai/types/chat/chat_completion_token_logprob.py,sha256=6-ipUFfsXMf5L7FDFi127NaVkDtmEooVgGBF6Ts965A,1769
|
138
|
+
gradientai/types/chat/completion_create_params.py,sha256=F4Dcrt5aYC_GEWUSN2OA3Zm5ImevZ7tFuTxBH7RyooM,6635
|
139
|
+
gradientai/types/chat/completion_create_response.py,sha256=5nCsU9BeXjB5HmkBNemRZHyFwegvKouSBHjzxvb4EFM,2405
|
140
|
+
gradientai/types/inference/__init__.py,sha256=HiiX53VbRzJh0c3PQlGFEbqo5ikr4BPPj6uJsWmeOPM,963
|
141
|
+
gradientai/types/inference/api_key_create_params.py,sha256=MOy5Bdr1wNBqCvqzyZ0FLfFY2a97q6eXCzgCR1wcLAE,263
|
142
|
+
gradientai/types/inference/api_key_create_response.py,sha256=HjTGC3rpPKqYPE-D6Z9jIE8fqrmo2hTTGBrt00cMwIU,335
|
143
|
+
gradientai/types/inference/api_key_delete_response.py,sha256=18JbFhk0T0qsNM8PosxQDaBwy-fzKLclG_cAbk8WqS4,335
|
144
|
+
gradientai/types/inference/api_key_list_params.py,sha256=2bqdW2M_aw0ae7qY-zDgnxa96gun0V9Wzv2hwISss-8,327
|
145
|
+
gradientai/types/inference/api_key_list_response.py,sha256=H0b-9av4znmQ7MnrvlVu3fe0kaGBIUrve2su1klDLrU,496
|
146
|
+
gradientai/types/inference/api_key_update_params.py,sha256=Jeq5mm_HXgkh77SjYpct-vdc1UZBWAo9fUtoZSAxCpQ,385
|
147
|
+
gradientai/types/inference/api_key_update_regenerate_response.py,sha256=EdejYl_Kuu3r0O-Zzu8sO7P32lQSzsVpJu-m7j1TkpI,355
|
148
|
+
gradientai/types/inference/api_key_update_response.py,sha256=x77TF5sMy-k9wVEBP0h1bkp2bi1nX1oP4SpzetnF-Rc,335
|
149
|
+
gradientai/types/inference/api_model_api_key_info.py,sha256=P8vLRvhdCqqkD6Jbzfa6cijmCRMeJGHw70nMEvcOKCU,477
|
150
|
+
gradientai/types/inference/model.py,sha256=90sZfC9edkPIt6surNqQZFe1w9_U0ZIw-BkBVT_4wXs,533
|
151
|
+
gradientai/types/inference/model_list_response.py,sha256=e1WSiLVb7UKeJ9jGv3eaAT70Z7s087VTu_1aawy5FmY,330
|
152
|
+
gradientai/types/knowledge_bases/__init__.py,sha256=K6rMh3H59755Scp5BHYR5qziUtuAABXHDiauUdCxXHM,1320
|
153
|
+
gradientai/types/knowledge_bases/api_file_upload_data_source.py,sha256=pwuooMktHMl3-c9_XAqisMW2euFXE_WzLW2MrH4cphY,363
|
154
|
+
gradientai/types/knowledge_bases/api_file_upload_data_source_param.py,sha256=BYJsp891zGJL9NxKAQA9wj7ZI5oW8O7ktpGQTf78-Z4,349
|
155
|
+
gradientai/types/knowledge_bases/api_knowledge_base_data_source.py,sha256=TaEbI8aDSIbqWWz4eH1bxsLixGf3HskPBe49dCRqRUE,1260
|
156
|
+
gradientai/types/knowledge_bases/api_spaces_data_source.py,sha256=hikZqBGk2a6deuYtL5o0x2a0ShTk_-r6Mrlocw04g54,333
|
157
|
+
gradientai/types/knowledge_bases/api_spaces_data_source_param.py,sha256=fHHNZiL9k5JX8NLFJSrrh11S6mHE6l1Tv_GOs5HmSvw,319
|
158
|
+
gradientai/types/knowledge_bases/api_web_crawler_data_source.py,sha256=TwP9_tIh7lZyYBYA8vcUBsJ8t1njlqvRnSkbe5kBFx4,927
|
159
|
+
gradientai/types/knowledge_bases/api_web_crawler_data_source_param.py,sha256=5RNeniApD7_5LobZWFhQ3iZ2RaLa2Lj4hpqXvIPAfco,884
|
160
|
+
gradientai/types/knowledge_bases/aws_data_source_param.py,sha256=MXImPMnxy2B2LEof2CSGH2BRIs77HrN6lYgwdYHFx7k,345
|
161
|
+
gradientai/types/knowledge_bases/data_source_create_params.py,sha256=qXoTkAJ3Mta5Lx3q8-Fd5EXwsQXhGmOw1NH2PjQJ-pY,739
|
162
|
+
gradientai/types/knowledge_bases/data_source_create_response.py,sha256=Pr6z8AvrNNvgABGB9cL_-gdwBYQn8z3OYDrramZeWIY,381
|
163
|
+
gradientai/types/knowledge_bases/data_source_delete_response.py,sha256=9W0vPF3zE6aoO4pKKY1FWNFhvyBSJ4UJ0bq-jIf5Rug,324
|
164
|
+
gradientai/types/knowledge_bases/data_source_list_params.py,sha256=LE15JRXzJdFffHga_aS1JUnGc-gDdTbSfdV-hyywVTw,335
|
165
|
+
gradientai/types/knowledge_bases/data_source_list_response.py,sha256=dk2gRIfd-mhF-r8OrbOI2J2DxLQ-SSwTkiKJ5jzqXnI,542
|
166
|
+
gradientai/types/providers/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
167
|
+
gradientai/types/providers/anthropic/__init__.py,sha256=Rc-P39qouKDD0KcLrR0xXtDercCG-01WvVGfITLxH3w,839
|
168
|
+
gradientai/types/providers/anthropic/key_create_params.py,sha256=Wpo2FgKsoMDwT0DrN9QiFdxGL93QUV7PsyZjU_dZwVo,275
|
169
|
+
gradientai/types/providers/anthropic/key_create_response.py,sha256=QMr7WcgcSAU4-X3OBzZ_x8z37UQKN4gVNctFjFx35ZU,344
|
170
|
+
gradientai/types/providers/anthropic/key_delete_response.py,sha256=woDhj5cV-I-bl-8SahR4yIhLzXXOl4YQjuZq9JhQXow,344
|
171
|
+
gradientai/types/providers/anthropic/key_list_agents_params.py,sha256=ZOwFGGQpBm0H-jceINE2yFj5SQsRi3eAYJldIIhdZG0,333
|
172
|
+
gradientai/types/providers/anthropic/key_list_agents_response.py,sha256=G1YsCwvbTgCh60VMIW1rVnQ_Oc4-YMZfxIWyTsDa1JI,507
|
173
|
+
gradientai/types/providers/anthropic/key_list_params.py,sha256=NIUqtMZ4wCEmsf4pSVYf52rlKg4j98VeXHdsBHvJkb0,321
|
174
|
+
gradientai/types/providers/anthropic/key_list_response.py,sha256=ynKrmMkMxxB0eQFWg4vfWM0UVBysKBTBR-dC_3jzuPE,507
|
175
|
+
gradientai/types/providers/anthropic/key_retrieve_response.py,sha256=kwlHSeYuNimwsfAc11EYYiONL1QEuj-nRSyYbenCdMA,348
|
176
|
+
gradientai/types/providers/anthropic/key_update_params.py,sha256=Y3soYvQEpYbnofgxQoLdeZFolk-NcUSnlUg8BQ2BliU,398
|
177
|
+
gradientai/types/providers/anthropic/key_update_response.py,sha256=RsO2ImbQNdJgGNDUPwnOMrE2Bq_pw4e8f_DBB01ZsPw,344
|
178
|
+
gradientai/types/providers/openai/__init__.py,sha256=vTB3oppxWE1E9S4c2XzsDERHaaRUkUKGuWUsgp2PY5Y,863
|
179
|
+
gradientai/types/providers/openai/key_create_params.py,sha256=Wpo2FgKsoMDwT0DrN9QiFdxGL93QUV7PsyZjU_dZwVo,275
|
180
|
+
gradientai/types/providers/openai/key_create_response.py,sha256=D8eRhllf50P3LJHMDzMT2YWuymUXtV-2KgfAZdRHM08,335
|
181
|
+
gradientai/types/providers/openai/key_delete_response.py,sha256=AOF_SSCaagPjxP9mEHEXuTX2G8mBYyyaVwviNC0PfTg,335
|
182
|
+
gradientai/types/providers/openai/key_list_params.py,sha256=NIUqtMZ4wCEmsf4pSVYf52rlKg4j98VeXHdsBHvJkb0,321
|
183
|
+
gradientai/types/providers/openai/key_list_response.py,sha256=MRJSatW-aQhlBA0gcKpbnX5Kso_BJZE9oO3BrVnEMHc,498
|
184
|
+
gradientai/types/providers/openai/key_retrieve_agents_params.py,sha256=iXx-1E5feJfrtjuNIXV0SsCTMB_wA88edXunaMd0sEY,341
|
185
|
+
gradientai/types/providers/openai/key_retrieve_agents_response.py,sha256=3sLjYKvtp3L51dfToRiR3fj9cDEK-6e0yVpADZhzO4s,515
|
186
|
+
gradientai/types/providers/openai/key_retrieve_response.py,sha256=96ZitCFjLlTzk8UhB2Q1ekmLYF2fer_9TGZ1kzhT2Ck,339
|
187
|
+
gradientai/types/providers/openai/key_update_params.py,sha256=Y3soYvQEpYbnofgxQoLdeZFolk-NcUSnlUg8BQ2BliU,398
|
188
|
+
gradientai/types/providers/openai/key_update_response.py,sha256=918Y7yxffOe0DmFci54fq0-zTO_1Lc6jruSok8WsBX4,335
|
189
|
+
gradientai/types/regions/__init__.py,sha256=u91FCpT0l2cMLBak4gNeSOthBXDe26ohmJP8mgr6MGc,2302
|
190
|
+
gradientai/types/regions/api_evaluation_test_case.py,sha256=7uflno1wTs7QEfDi2tSYiv5laOxTtgWraRLOlHdRhMY,1111
|
191
|
+
gradientai/types/regions/api_star_metric.py,sha256=zoIdToH1tDzi1rXSev8ys-VFDHOiL-PLDVk4NgM6jF8,444
|
192
|
+
gradientai/types/regions/api_star_metric_param.py,sha256=21SYQ7J8rgYtw8JIDgPb2d_Xh1plzBjVPPgWuwqZYwY,430
|
193
|
+
gradientai/types/regions/evaluation_dataset_create_file_upload_presigned_urls_params.py,sha256=5VmGf4WuVMmIhjFbJcVRoyOTXq-Z484Z0utiza2b4k8,555
|
194
|
+
gradientai/types/regions/evaluation_dataset_create_file_upload_presigned_urls_response.py,sha256=D71yt5RvwxzY0M33uTPGcxlC8xhhf2pske-0-Uur8x8,964
|
195
|
+
gradientai/types/regions/evaluation_dataset_create_params.py,sha256=_Ab7rv6id0zOWDsZynBVZH9T_OL35l39HY-hMROynp8,546
|
196
|
+
gradientai/types/regions/evaluation_dataset_create_response.py,sha256=UJGh8WSeleKopfjG9MAy5uCW-l0L8vtDYt_rPm-yiTE,333
|
197
|
+
gradientai/types/regions/evaluation_run_create_params.py,sha256=zIPxUmneZmi0NziqiLuQ2wYou9KtrwWKiRmY5yBnsVA,409
|
198
|
+
gradientai/types/regions/evaluation_run_create_response.py,sha256=YhKW6GO9hisJSDGW1v_wAIYG45iaFCpYT2MAYAE66HE,286
|
199
|
+
gradientai/types/regions/evaluation_run_retrieve_response.py,sha256=12575A9wS1NXSr4zSRTLgMfo-u_SE5mjDcTgxUa8k-A,363
|
200
|
+
gradientai/types/regions/evaluation_test_case_create_params.py,sha256=MDzlgUtT_TvI3AEBi10oqqqh46GY7Hzbhzks-9NWzL8,721
|
201
|
+
gradientai/types/regions/evaluation_test_case_create_response.py,sha256=6o_tJW7oECyIFtOl9C96eaHoMF_GwIGuwK772BMkcNY,319
|
202
|
+
gradientai/types/regions/evaluation_test_case_list_evaluation_runs_params.py,sha256=YpIdWEwwEtBStTZl6fuD60fT7xmMXk8cj2yuWTQz-NY,371
|
203
|
+
gradientai/types/regions/evaluation_test_case_list_evaluation_runs_response.py,sha256=0rO1nzO1rGMV_5pUIkbhS_h3rjPMLMH6nBJg3KOyImM,441
|
204
|
+
gradientai/types/regions/evaluation_test_case_list_response.py,sha256=8BqMiIhwizpSFles_MpvcDWkYqzEFfFwY6icGzBkSfY,384
|
205
|
+
gradientai/types/regions/evaluation_test_case_retrieve_response.py,sha256=zr5U956-FgFoPAUSSEvOI8CsyBFDdGG-dpC5rIfxZ60,379
|
206
|
+
gradientai/types/regions/evaluation_test_case_update_params.py,sha256=S0FRlU-b1dRQlDKJFthcAmIGmjb4IwAy4zL9uQ0XKqM,809
|
207
|
+
gradientai/types/regions/evaluation_test_case_update_response.py,sha256=SBsxKPG4_0T6LoL7rKj9kp0J4sHqtamRszprgD064h4,369
|
208
|
+
gradientai/types/regions/evaluation_runs/__init__.py,sha256=ksej1cfeP_8Xx1O5fCCpjyS61SdLc0zUoFgWeuXqylg,529
|
209
|
+
gradientai/types/regions/evaluation_runs/api_evaluation_metric_result.py,sha256=CalVWddc_GbeusCj3LpR6cqt2Rlg0SkWXEjIdx0EQlg,451
|
210
|
+
gradientai/types/regions/evaluation_runs/api_evaluation_run.py,sha256=v9GeMFcbqjrcGCDyl--DdUS6BOBMJSJmDJh7ySRlJRI,1595
|
211
|
+
gradientai/types/regions/evaluation_runs/api_prompt.py,sha256=7tTPcgBSbc-RhaSs307Q5MfHV_4v5aRX5nntPyetP8k,1199
|
212
|
+
gradientai/types/regions/evaluation_runs/result_retrieve_prompt_response.py,sha256=sRbS-N1wTK76RFuQ7_nZzAXUg7KHAae_Hdm7rSW01Us,316
|
213
|
+
gradientai/types/regions/evaluation_runs/result_retrieve_response.py,sha256=KYCiSDZy199tcGicweZ8elywirPOCtsBuTUQfU7SPII,457
|
214
|
+
c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a4.dist-info/METADATA,sha256=130pVBC_dDmGSNGxmiTzESf_9leItYZ27IabBd44D6s,14523
|
215
|
+
c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a4.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
216
|
+
c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a4.dist-info/licenses/LICENSE,sha256=AzxEF8mEks6hu5V_87CXF8gLdL875WeO8FmQtEZTFok,11341
|
217
|
+
c63a5cfe_b235_4fbe_8bbb_82a9e02a482a_python-0.1.0a4.dist-info/RECORD,,
|
@@ -186,7 +186,7 @@
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
187
187
|
identification within third-party archives.
|
188
188
|
|
189
|
-
Copyright 2025
|
189
|
+
Copyright 2025 Gradient AI
|
190
190
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
192
192
|
you may not use this file except in compliance with the License.
|
@@ -10,11 +10,11 @@ from ._client import (
|
|
10
10
|
Stream,
|
11
11
|
Timeout,
|
12
12
|
Transport,
|
13
|
+
GradientAI,
|
13
14
|
AsyncClient,
|
14
15
|
AsyncStream,
|
15
16
|
RequestOptions,
|
16
|
-
|
17
|
-
AsyncDigitaloceanGenaiSDK,
|
17
|
+
AsyncGradientAI,
|
18
18
|
)
|
19
19
|
from ._models import BaseModel
|
20
20
|
from ._version import __title__, __version__
|
@@ -28,15 +28,15 @@ from ._exceptions import (
|
|
28
28
|
RateLimitError,
|
29
29
|
APITimeoutError,
|
30
30
|
BadRequestError,
|
31
|
+
GradientAIError,
|
31
32
|
APIConnectionError,
|
32
33
|
AuthenticationError,
|
33
34
|
InternalServerError,
|
34
35
|
PermissionDeniedError,
|
35
36
|
UnprocessableEntityError,
|
36
|
-
DigitaloceanGenaiSDKError,
|
37
37
|
APIResponseValidationError,
|
38
38
|
)
|
39
|
-
from ._base_client import DefaultHttpxClient, DefaultAsyncHttpxClient
|
39
|
+
from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
|
40
40
|
from ._utils._logs import setup_logging as _setup_logging
|
41
41
|
|
42
42
|
__all__ = [
|
@@ -49,7 +49,7 @@ __all__ = [
|
|
49
49
|
"NotGiven",
|
50
50
|
"NOT_GIVEN",
|
51
51
|
"Omit",
|
52
|
-
"
|
52
|
+
"GradientAIError",
|
53
53
|
"APIError",
|
54
54
|
"APIStatusError",
|
55
55
|
"APITimeoutError",
|
@@ -69,8 +69,8 @@ __all__ = [
|
|
69
69
|
"AsyncClient",
|
70
70
|
"Stream",
|
71
71
|
"AsyncStream",
|
72
|
-
"
|
73
|
-
"
|
72
|
+
"GradientAI",
|
73
|
+
"AsyncGradientAI",
|
74
74
|
"file_from_path",
|
75
75
|
"BaseModel",
|
76
76
|
"DEFAULT_TIMEOUT",
|
@@ -78,6 +78,7 @@ __all__ = [
|
|
78
78
|
"DEFAULT_CONNECTION_LIMITS",
|
79
79
|
"DefaultHttpxClient",
|
80
80
|
"DefaultAsyncHttpxClient",
|
81
|
+
"DefaultAioHttpClient",
|
81
82
|
]
|
82
83
|
|
83
84
|
if not _t.TYPE_CHECKING:
|
@@ -88,12 +89,12 @@ _setup_logging()
|
|
88
89
|
# Update the __module__ attribute for exported symbols so that
|
89
90
|
# error messages point to this module instead of the module
|
90
91
|
# it was originally defined in, e.g.
|
91
|
-
#
|
92
|
+
# gradientai._exceptions.NotFoundError -> gradientai.NotFoundError
|
92
93
|
__locals = locals()
|
93
94
|
for __name in __all__:
|
94
95
|
if not __name.startswith("__"):
|
95
96
|
try:
|
96
|
-
__locals[__name].__module__ = "
|
97
|
+
__locals[__name].__module__ = "gradientai"
|
97
98
|
except (TypeError, AttributeError):
|
98
99
|
# Some of our exported symbols are builtins which we can't set attributes for.
|
99
100
|
pass
|