usecortex-ai 0.3.6__tar.gz → 0.4.0__tar.gz
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.
- {usecortex_ai-0.3.6/src/usecortex_ai.egg-info → usecortex_ai-0.4.0}/PKG-INFO +2 -2
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/pyproject.toml +2 -2
- usecortex_ai-0.4.0/src/usecortex_ai/__init__.py +154 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/client.py +25 -23
- usecortex_ai-0.4.0/src/usecortex_ai/dashboard/client.py +448 -0
- {usecortex_ai-0.3.6/src/usecortex_ai/sources → usecortex_ai-0.4.0/src/usecortex_ai/dashboard}/raw_client.py +464 -247
- usecortex_ai-0.4.0/src/usecortex_ai/embeddings/client.py +537 -0
- {usecortex_ai-0.3.6/src/usecortex_ai/user_memory → usecortex_ai-0.4.0/src/usecortex_ai/embeddings}/raw_client.py +338 -328
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/errors/__init__.py +2 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/errors/bad_request_error.py +1 -2
- usecortex_ai-0.4.0/src/usecortex_ai/errors/forbidden_error.py +10 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/errors/internal_server_error.py +1 -2
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/errors/not_found_error.py +1 -2
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/errors/service_unavailable_error.py +1 -2
- usecortex_ai-0.3.6/src/usecortex_ai/errors/forbidden_error.py → usecortex_ai-0.4.0/src/usecortex_ai/errors/too_many_requests_error.py +2 -2
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/errors/unauthorized_error.py +1 -2
- {usecortex_ai-0.3.6/src/usecortex_ai/sources → usecortex_ai-0.4.0/src/usecortex_ai/fetch}/client.py +207 -67
- {usecortex_ai-0.3.6/src/usecortex_ai/embeddings → usecortex_ai-0.4.0/src/usecortex_ai/fetch}/raw_client.py +292 -249
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/raw_client.py +8 -2
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/search/client.py +293 -257
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/search/raw_client.py +445 -346
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/search/types/alpha.py +1 -1
- {usecortex_ai-0.3.6/src/usecortex_ai/document → usecortex_ai-0.4.0/src/usecortex_ai/sources}/client.py +30 -32
- {usecortex_ai-0.3.6/src/usecortex_ai/document → usecortex_ai-0.4.0/src/usecortex_ai/sources}/raw_client.py +53 -56
- usecortex_ai-0.4.0/src/usecortex_ai/tenant/client.py +305 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/tenant/raw_client.py +227 -350
- usecortex_ai-0.4.0/src/usecortex_ai/types/__init__.py +117 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/add_memory_response.py +39 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/relations.py → usecortex_ai-0.4.0/src/usecortex_ai/types/api_key_info.py +25 -5
- usecortex_ai-0.4.0/src/usecortex_ai/types/app_sources_upload_data.py +39 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/file_upload_result.py → usecortex_ai-0.4.0/src/usecortex_ai/types/collection_stats.py +5 -5
- usecortex_ai-0.4.0/src/usecortex_ai/types/custom_property_definition.py +75 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/dashboard_apis_response.py +33 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/dashboard_sources_response.py +33 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/dashboard_tenants_response.py +33 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/list_sources_response.py → usecortex_ai-0.4.0/src/usecortex_ai/types/delete_result.py +10 -7
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/delete_user_memory_response.py +1 -1
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/entity.py +4 -4
- usecortex_ai-0.4.0/src/usecortex_ai/types/fetch_mode.py +5 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/batch_upload_data.py → usecortex_ai-0.4.0/src/usecortex_ai/types/graph_context.py +6 -10
- usecortex_ai-0.3.6/src/usecortex_ai/types/related_chunk.py → usecortex_ai-0.4.0/src/usecortex_ai/types/infra.py +4 -5
- usecortex_ai-0.3.6/src/usecortex_ai/types/fetch_content_data.py → usecortex_ai-0.4.0/src/usecortex_ai/types/insert_result.py +12 -8
- usecortex_ai-0.4.0/src/usecortex_ai/types/memory_item.py +82 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/memory_result_item.py +47 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/milvus_data_type.py +21 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/delete_sources.py → usecortex_ai-0.4.0/src/usecortex_ai/types/path_triplet.py +6 -3
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/processing_status.py +3 -2
- usecortex_ai-0.4.0/src/usecortex_ai/types/processing_status_indexing_status.py +7 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/qn_a_search_response.py +49 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/retrieve_response.py → usecortex_ai-0.4.0/src/usecortex_ai/types/raw_embedding_document.py +11 -8
- usecortex_ai-0.4.0/src/usecortex_ai/types/raw_embedding_search_result.py +47 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/user_memory.py → usecortex_ai-0.4.0/src/usecortex_ai/types/raw_embedding_vector.py +6 -6
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/relation_evidence.py +24 -5
- usecortex_ai-0.4.0/src/usecortex_ai/types/retrieval_result.py +26 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/scored_path_response.py +26 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/search_mode.py +5 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/app_sources_upload_data.py → usecortex_ai-0.4.0/src/usecortex_ai/types/source_delete_response.py +8 -8
- usecortex_ai-0.3.6/src/usecortex_ai/types/path_triplet.py → usecortex_ai-0.4.0/src/usecortex_ai/types/source_delete_result_item.py +8 -10
- usecortex_ai-0.4.0/src/usecortex_ai/types/source_fetch_response.py +70 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/graph_relations_response.py → usecortex_ai-0.4.0/src/usecortex_ai/types/source_graph_relations_response.py +3 -3
- usecortex_ai-0.3.6/src/usecortex_ai/types/single_upload_data.py → usecortex_ai-0.4.0/src/usecortex_ai/types/source_list_response.py +7 -10
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/source_model.py +11 -1
- usecortex_ai-0.4.0/src/usecortex_ai/types/source_status.py +5 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/source_upload_response.py +35 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/source_upload_result_item.py +38 -0
- usecortex_ai-0.4.0/src/usecortex_ai/types/supported_llm_providers.py +5 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/embeddings_create_collection_data.py → usecortex_ai-0.4.0/src/usecortex_ai/types/tenant_create_response.py +9 -7
- usecortex_ai-0.4.0/src/usecortex_ai/types/tenant_info.py +32 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/scored_triplet_response.py → usecortex_ai-0.4.0/src/usecortex_ai/types/tenant_metadata_schema_info.py +8 -15
- usecortex_ai-0.3.6/src/usecortex_ai/types/tenant_create_data.py → usecortex_ai-0.4.0/src/usecortex_ai/types/tenant_stats_response.py +9 -8
- usecortex_ai-0.3.6/src/usecortex_ai/types/triple_with_evidence.py → usecortex_ai-0.4.0/src/usecortex_ai/types/triplet_with_evidence.py +5 -1
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/user_assistant_pair.py +4 -0
- usecortex_ai-0.3.6/src/usecortex_ai/types/search_chunk.py → usecortex_ai-0.4.0/src/usecortex_ai/types/vector_store_chunk.py +3 -14
- usecortex_ai-0.4.0/src/usecortex_ai/upload/__init__.py +7 -0
- usecortex_ai-0.4.0/src/usecortex_ai/upload/client.py +606 -0
- usecortex_ai-0.4.0/src/usecortex_ai/upload/raw_client.py +1489 -0
- usecortex_ai-0.4.0/src/usecortex_ai/upload/types/__init__.py +7 -0
- usecortex_ai-0.4.0/src/usecortex_ai/upload/types/body_upload_app_ingestion_upload_app_post_app_sources.py +7 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0/src/usecortex_ai.egg-info}/PKG-INFO +2 -2
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai.egg-info/SOURCES.txt +43 -42
- usecortex_ai-0.3.6/src/usecortex_ai/__init__.py +0 -144
- usecortex_ai-0.3.6/src/usecortex_ai/embeddings/client.py +0 -410
- usecortex_ai-0.3.6/src/usecortex_ai/fetch/client.py +0 -143
- usecortex_ai-0.3.6/src/usecortex_ai/fetch/raw_client.py +0 -310
- usecortex_ai-0.3.6/src/usecortex_ai/tenant/client.py +0 -268
- usecortex_ai-0.3.6/src/usecortex_ai/types/__init__.py +0 -109
- usecortex_ai-0.3.6/src/usecortex_ai/types/add_user_memory_response.py +0 -41
- usecortex_ai-0.3.6/src/usecortex_ai/types/body_scrape_webpage_upload_scrape_webpage_post.py +0 -17
- usecortex_ai-0.3.6/src/usecortex_ai/types/body_update_scrape_job_upload_update_webpage_patch.py +0 -17
- usecortex_ai-0.3.6/src/usecortex_ai/types/chunk_graph_relations_response.py +0 -33
- usecortex_ai-0.3.6/src/usecortex_ai/types/delete_memory_request.py +0 -32
- usecortex_ai-0.3.6/src/usecortex_ai/types/delete_sub_tenant_data.py +0 -42
- usecortex_ai-0.3.6/src/usecortex_ai/types/embeddings_delete_data.py +0 -37
- usecortex_ai-0.3.6/src/usecortex_ai/types/embeddings_get_data.py +0 -37
- usecortex_ai-0.3.6/src/usecortex_ai/types/embeddings_search_data.py +0 -37
- usecortex_ai-0.3.6/src/usecortex_ai/types/extended_context.py +0 -17
- usecortex_ai-0.3.6/src/usecortex_ai/types/list_user_memories_response.py +0 -32
- usecortex_ai-0.3.6/src/usecortex_ai/types/markdown_upload_request.py +0 -41
- usecortex_ai-0.3.6/src/usecortex_ai/types/retrieve_user_memory_response.py +0 -38
- usecortex_ai-0.3.6/src/usecortex_ai/types/scored_path_response.py +0 -40
- usecortex_ai-0.3.6/src/usecortex_ai/types/source.py +0 -52
- usecortex_ai-0.3.6/src/usecortex_ai/types/sub_tenant_ids_data.py +0 -47
- usecortex_ai-0.3.6/src/usecortex_ai/types/tenant_stats.py +0 -42
- usecortex_ai-0.3.6/src/usecortex_ai/types/webpage_scrape_request.py +0 -27
- usecortex_ai-0.3.6/src/usecortex_ai/upload/__init__.py +0 -4
- usecortex_ai-0.3.6/src/usecortex_ai/upload/client.py +0 -2310
- usecortex_ai-0.3.6/src/usecortex_ai/upload/raw_client.py +0 -5526
- usecortex_ai-0.3.6/src/usecortex_ai/user/__init__.py +0 -4
- usecortex_ai-0.3.6/src/usecortex_ai/user/client.py +0 -145
- usecortex_ai-0.3.6/src/usecortex_ai/user/raw_client.py +0 -316
- usecortex_ai-0.3.6/src/usecortex_ai/user_memory/__init__.py +0 -4
- usecortex_ai-0.3.6/src/usecortex_ai/user_memory/client.py +0 -515
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/LICENSE +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/README.md +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/setup.cfg +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/__init__.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/api_error.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/client_wrapper.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/datetime_utils.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/file.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/force_multipart.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/http_client.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/http_response.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/jsonable_encoder.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/pydantic_utilities.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/query_encoder.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/remove_none_from_dict.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/request_options.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/core/serialization.py +0 -0
- {usecortex_ai-0.3.6/src/usecortex_ai/document → usecortex_ai-0.4.0/src/usecortex_ai/dashboard}/__init__.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/embeddings/__init__.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/environment.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/errors/unprocessable_entity_error.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/fetch/__init__.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/search/__init__.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/search/types/__init__.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/sources/__init__.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/tenant/__init__.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/actual_error_response.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/attachment_model.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/bm_25_operator_type.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/content_model.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/error_response.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/http_validation_error.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/retrieve_mode.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/validation_error.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai/types/validation_error_loc_item.py +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai.egg-info/dependency_links.txt +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai.egg-info/requires.txt +0 -0
- {usecortex_ai-0.3.6 → usecortex_ai-0.4.0}/src/usecortex_ai.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: usecortex-ai
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: The official Python SDK for the Cortex AI platform.
|
|
5
|
-
Author-email:
|
|
5
|
+
Author-email: Soham Ratnaparkhi <soham@usecortex.ai>
|
|
6
6
|
License: Copyright (c) 2024 Cortex AI
|
|
7
7
|
|
|
8
8
|
All Rights Reserved.
|
|
@@ -5,10 +5,10 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "usecortex-ai"
|
|
7
7
|
|
|
8
|
-
version = "0.
|
|
8
|
+
version = "0.4.0"
|
|
9
9
|
|
|
10
10
|
authors = [
|
|
11
|
-
{ name = "
|
|
11
|
+
{ name = "Soham Ratnaparkhi", email = "soham@usecortex.ai" },
|
|
12
12
|
]
|
|
13
13
|
description = "The official Python SDK for the Cortex AI platform."
|
|
14
14
|
readme = "README.md"
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
from .types import (
|
|
6
|
+
ActualErrorResponse,
|
|
7
|
+
AddMemoryResponse,
|
|
8
|
+
ApiKeyInfo,
|
|
9
|
+
AppSourcesUploadData,
|
|
10
|
+
AttachmentModel,
|
|
11
|
+
Bm25OperatorType,
|
|
12
|
+
CollectionStats,
|
|
13
|
+
ContentModel,
|
|
14
|
+
CustomPropertyDefinition,
|
|
15
|
+
DashboardApisResponse,
|
|
16
|
+
DashboardSourcesResponse,
|
|
17
|
+
DashboardTenantsResponse,
|
|
18
|
+
DeleteResult,
|
|
19
|
+
DeleteUserMemoryResponse,
|
|
20
|
+
Entity,
|
|
21
|
+
ErrorResponse,
|
|
22
|
+
FetchMode,
|
|
23
|
+
GraphContext,
|
|
24
|
+
HttpValidationError,
|
|
25
|
+
Infra,
|
|
26
|
+
InsertResult,
|
|
27
|
+
MemoryItem,
|
|
28
|
+
MemoryResultItem,
|
|
29
|
+
MilvusDataType,
|
|
30
|
+
PathTriplet,
|
|
31
|
+
ProcessingStatus,
|
|
32
|
+
ProcessingStatusIndexingStatus,
|
|
33
|
+
QnASearchResponse,
|
|
34
|
+
RawEmbeddingDocument,
|
|
35
|
+
RawEmbeddingSearchResult,
|
|
36
|
+
RawEmbeddingVector,
|
|
37
|
+
RelationEvidence,
|
|
38
|
+
RetrievalResult,
|
|
39
|
+
RetrieveMode,
|
|
40
|
+
ScoredPathResponse,
|
|
41
|
+
SearchMode,
|
|
42
|
+
SourceDeleteResponse,
|
|
43
|
+
SourceDeleteResultItem,
|
|
44
|
+
SourceFetchResponse,
|
|
45
|
+
SourceGraphRelationsResponse,
|
|
46
|
+
SourceListResponse,
|
|
47
|
+
SourceModel,
|
|
48
|
+
SourceStatus,
|
|
49
|
+
SourceUploadResponse,
|
|
50
|
+
SourceUploadResultItem,
|
|
51
|
+
SupportedLlmProviders,
|
|
52
|
+
TenantCreateResponse,
|
|
53
|
+
TenantInfo,
|
|
54
|
+
TenantMetadataSchemaInfo,
|
|
55
|
+
TenantStatsResponse,
|
|
56
|
+
TripletWithEvidence,
|
|
57
|
+
UserAssistantPair,
|
|
58
|
+
ValidationError,
|
|
59
|
+
ValidationErrorLocItem,
|
|
60
|
+
VectorStoreChunk,
|
|
61
|
+
)
|
|
62
|
+
from .errors import (
|
|
63
|
+
BadRequestError,
|
|
64
|
+
ForbiddenError,
|
|
65
|
+
InternalServerError,
|
|
66
|
+
NotFoundError,
|
|
67
|
+
ServiceUnavailableError,
|
|
68
|
+
TooManyRequestsError,
|
|
69
|
+
UnauthorizedError,
|
|
70
|
+
UnprocessableEntityError,
|
|
71
|
+
)
|
|
72
|
+
from . import dashboard, embeddings, fetch, search, sources, tenant, upload
|
|
73
|
+
from .client import AsyncCortexAI, CortexAI
|
|
74
|
+
from .environment import CortexAIEnvironment
|
|
75
|
+
from .search import Alpha
|
|
76
|
+
from .upload import BodyUploadAppIngestionUploadAppPostAppSources
|
|
77
|
+
|
|
78
|
+
__all__ = [
|
|
79
|
+
"ActualErrorResponse",
|
|
80
|
+
"AddMemoryResponse",
|
|
81
|
+
"Alpha",
|
|
82
|
+
"ApiKeyInfo",
|
|
83
|
+
"AppSourcesUploadData",
|
|
84
|
+
"AsyncCortexAI",
|
|
85
|
+
"AttachmentModel",
|
|
86
|
+
"BadRequestError",
|
|
87
|
+
"Bm25OperatorType",
|
|
88
|
+
"BodyUploadAppIngestionUploadAppPostAppSources",
|
|
89
|
+
"CollectionStats",
|
|
90
|
+
"ContentModel",
|
|
91
|
+
"CortexAI",
|
|
92
|
+
"CortexAIEnvironment",
|
|
93
|
+
"CustomPropertyDefinition",
|
|
94
|
+
"DashboardApisResponse",
|
|
95
|
+
"DashboardSourcesResponse",
|
|
96
|
+
"DashboardTenantsResponse",
|
|
97
|
+
"DeleteResult",
|
|
98
|
+
"DeleteUserMemoryResponse",
|
|
99
|
+
"Entity",
|
|
100
|
+
"ErrorResponse",
|
|
101
|
+
"FetchMode",
|
|
102
|
+
"ForbiddenError",
|
|
103
|
+
"GraphContext",
|
|
104
|
+
"HttpValidationError",
|
|
105
|
+
"Infra",
|
|
106
|
+
"InsertResult",
|
|
107
|
+
"InternalServerError",
|
|
108
|
+
"MemoryItem",
|
|
109
|
+
"MemoryResultItem",
|
|
110
|
+
"MilvusDataType",
|
|
111
|
+
"NotFoundError",
|
|
112
|
+
"PathTriplet",
|
|
113
|
+
"ProcessingStatus",
|
|
114
|
+
"ProcessingStatusIndexingStatus",
|
|
115
|
+
"QnASearchResponse",
|
|
116
|
+
"RawEmbeddingDocument",
|
|
117
|
+
"RawEmbeddingSearchResult",
|
|
118
|
+
"RawEmbeddingVector",
|
|
119
|
+
"RelationEvidence",
|
|
120
|
+
"RetrievalResult",
|
|
121
|
+
"RetrieveMode",
|
|
122
|
+
"ScoredPathResponse",
|
|
123
|
+
"SearchMode",
|
|
124
|
+
"ServiceUnavailableError",
|
|
125
|
+
"SourceDeleteResponse",
|
|
126
|
+
"SourceDeleteResultItem",
|
|
127
|
+
"SourceFetchResponse",
|
|
128
|
+
"SourceGraphRelationsResponse",
|
|
129
|
+
"SourceListResponse",
|
|
130
|
+
"SourceModel",
|
|
131
|
+
"SourceStatus",
|
|
132
|
+
"SourceUploadResponse",
|
|
133
|
+
"SourceUploadResultItem",
|
|
134
|
+
"SupportedLlmProviders",
|
|
135
|
+
"TenantCreateResponse",
|
|
136
|
+
"TenantInfo",
|
|
137
|
+
"TenantMetadataSchemaInfo",
|
|
138
|
+
"TenantStatsResponse",
|
|
139
|
+
"TooManyRequestsError",
|
|
140
|
+
"TripletWithEvidence",
|
|
141
|
+
"UnauthorizedError",
|
|
142
|
+
"UnprocessableEntityError",
|
|
143
|
+
"UserAssistantPair",
|
|
144
|
+
"ValidationError",
|
|
145
|
+
"ValidationErrorLocItem",
|
|
146
|
+
"VectorStoreChunk",
|
|
147
|
+
"dashboard",
|
|
148
|
+
"embeddings",
|
|
149
|
+
"fetch",
|
|
150
|
+
"search",
|
|
151
|
+
"sources",
|
|
152
|
+
"tenant",
|
|
153
|
+
"upload",
|
|
154
|
+
]
|
|
@@ -5,7 +5,7 @@ import typing
|
|
|
5
5
|
import httpx
|
|
6
6
|
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
7
7
|
from .core.request_options import RequestOptions
|
|
8
|
-
from .
|
|
8
|
+
from .dashboard.client import AsyncDashboardClient, DashboardClient
|
|
9
9
|
from .embeddings.client import AsyncEmbeddingsClient, EmbeddingsClient
|
|
10
10
|
from .environment import CortexAIEnvironment
|
|
11
11
|
from .fetch.client import AsyncFetchClient, FetchClient
|
|
@@ -14,8 +14,6 @@ from .search.client import AsyncSearchClient, SearchClient
|
|
|
14
14
|
from .sources.client import AsyncSourcesClient, SourcesClient
|
|
15
15
|
from .tenant.client import AsyncTenantClient, TenantClient
|
|
16
16
|
from .upload.client import AsyncUploadClient, UploadClient
|
|
17
|
-
from .user.client import AsyncUserClient, UserClient
|
|
18
|
-
from .user_memory.client import AsyncUserMemoryClient, UserMemoryClient
|
|
19
17
|
|
|
20
18
|
|
|
21
19
|
class CortexAI:
|
|
@@ -82,15 +80,13 @@ class CortexAI:
|
|
|
82
80
|
timeout=_defaulted_timeout,
|
|
83
81
|
)
|
|
84
82
|
self._raw_client = RawCortexAI(client_wrapper=self._client_wrapper)
|
|
85
|
-
self.search = SearchClient(client_wrapper=self._client_wrapper)
|
|
86
|
-
self.sources = SourcesClient(client_wrapper=self._client_wrapper)
|
|
87
|
-
self.user_memory = UserMemoryClient(client_wrapper=self._client_wrapper)
|
|
88
|
-
self.fetch = FetchClient(client_wrapper=self._client_wrapper)
|
|
89
83
|
self.upload = UploadClient(client_wrapper=self._client_wrapper)
|
|
90
|
-
self.embeddings = EmbeddingsClient(client_wrapper=self._client_wrapper)
|
|
91
|
-
self.user = UserClient(client_wrapper=self._client_wrapper)
|
|
92
84
|
self.tenant = TenantClient(client_wrapper=self._client_wrapper)
|
|
93
|
-
self.
|
|
85
|
+
self.embeddings = EmbeddingsClient(client_wrapper=self._client_wrapper)
|
|
86
|
+
self.fetch = FetchClient(client_wrapper=self._client_wrapper)
|
|
87
|
+
self.sources = SourcesClient(client_wrapper=self._client_wrapper)
|
|
88
|
+
self.search = SearchClient(client_wrapper=self._client_wrapper)
|
|
89
|
+
self.dashboard = DashboardClient(client_wrapper=self._client_wrapper)
|
|
94
90
|
|
|
95
91
|
@property
|
|
96
92
|
def with_raw_response(self) -> RawCortexAI:
|
|
@@ -103,8 +99,12 @@ class CortexAI:
|
|
|
103
99
|
"""
|
|
104
100
|
return self._raw_client
|
|
105
101
|
|
|
106
|
-
def
|
|
102
|
+
def metrics_metrics_get(
|
|
103
|
+
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
104
|
+
) -> typing.Optional[typing.Any]:
|
|
107
105
|
"""
|
|
106
|
+
Endpoint that serves Prometheus metrics.
|
|
107
|
+
|
|
108
108
|
Parameters
|
|
109
109
|
----------
|
|
110
110
|
request_options : typing.Optional[RequestOptions]
|
|
@@ -120,9 +120,9 @@ class CortexAI:
|
|
|
120
120
|
from usecortex-ai import CortexAI
|
|
121
121
|
|
|
122
122
|
client = CortexAI(token="YOUR_TOKEN", )
|
|
123
|
-
client.
|
|
123
|
+
client.metrics_metrics_get()
|
|
124
124
|
"""
|
|
125
|
-
_response = self._raw_client.
|
|
125
|
+
_response = self._raw_client.metrics_metrics_get(request_options=request_options)
|
|
126
126
|
return _response.data
|
|
127
127
|
|
|
128
128
|
|
|
@@ -190,15 +190,13 @@ class AsyncCortexAI:
|
|
|
190
190
|
timeout=_defaulted_timeout,
|
|
191
191
|
)
|
|
192
192
|
self._raw_client = AsyncRawCortexAI(client_wrapper=self._client_wrapper)
|
|
193
|
-
self.search = AsyncSearchClient(client_wrapper=self._client_wrapper)
|
|
194
|
-
self.sources = AsyncSourcesClient(client_wrapper=self._client_wrapper)
|
|
195
|
-
self.user_memory = AsyncUserMemoryClient(client_wrapper=self._client_wrapper)
|
|
196
|
-
self.fetch = AsyncFetchClient(client_wrapper=self._client_wrapper)
|
|
197
193
|
self.upload = AsyncUploadClient(client_wrapper=self._client_wrapper)
|
|
198
|
-
self.embeddings = AsyncEmbeddingsClient(client_wrapper=self._client_wrapper)
|
|
199
|
-
self.user = AsyncUserClient(client_wrapper=self._client_wrapper)
|
|
200
194
|
self.tenant = AsyncTenantClient(client_wrapper=self._client_wrapper)
|
|
201
|
-
self.
|
|
195
|
+
self.embeddings = AsyncEmbeddingsClient(client_wrapper=self._client_wrapper)
|
|
196
|
+
self.fetch = AsyncFetchClient(client_wrapper=self._client_wrapper)
|
|
197
|
+
self.sources = AsyncSourcesClient(client_wrapper=self._client_wrapper)
|
|
198
|
+
self.search = AsyncSearchClient(client_wrapper=self._client_wrapper)
|
|
199
|
+
self.dashboard = AsyncDashboardClient(client_wrapper=self._client_wrapper)
|
|
202
200
|
|
|
203
201
|
@property
|
|
204
202
|
def with_raw_response(self) -> AsyncRawCortexAI:
|
|
@@ -211,8 +209,12 @@ class AsyncCortexAI:
|
|
|
211
209
|
"""
|
|
212
210
|
return self._raw_client
|
|
213
211
|
|
|
214
|
-
async def
|
|
212
|
+
async def metrics_metrics_get(
|
|
213
|
+
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
214
|
+
) -> typing.Optional[typing.Any]:
|
|
215
215
|
"""
|
|
216
|
+
Endpoint that serves Prometheus metrics.
|
|
217
|
+
|
|
216
218
|
Parameters
|
|
217
219
|
----------
|
|
218
220
|
request_options : typing.Optional[RequestOptions]
|
|
@@ -231,10 +233,10 @@ class AsyncCortexAI:
|
|
|
231
233
|
|
|
232
234
|
client = AsyncCortexAI(token="YOUR_TOKEN", )
|
|
233
235
|
async def main() -> None:
|
|
234
|
-
await client.
|
|
236
|
+
await client.metrics_metrics_get()
|
|
235
237
|
asyncio.run(main())
|
|
236
238
|
"""
|
|
237
|
-
_response = await self._raw_client.
|
|
239
|
+
_response = await self._raw_client.metrics_metrics_get(request_options=request_options)
|
|
238
240
|
return _response.data
|
|
239
241
|
|
|
240
242
|
|