arbi 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of arbi might be problematic. Click here for more details.
- arbi/__init__.py +90 -0
- arbi/_base_client.py +1995 -0
- arbi/_client.py +394 -0
- arbi/_compat.py +219 -0
- arbi/_constants.py +14 -0
- arbi/_exceptions.py +108 -0
- arbi/_files.py +123 -0
- arbi/_models.py +829 -0
- arbi/_qs.py +150 -0
- arbi/_resource.py +43 -0
- arbi/_response.py +830 -0
- arbi/_streaming.py +333 -0
- arbi/_types.py +219 -0
- arbi/_utils/__init__.py +57 -0
- arbi/_utils/_logs.py +25 -0
- arbi/_utils/_proxy.py +65 -0
- arbi/_utils/_reflection.py +42 -0
- arbi/_utils/_resources_proxy.py +24 -0
- arbi/_utils/_streams.py +12 -0
- arbi/_utils/_sync.py +86 -0
- arbi/_utils/_transform.py +447 -0
- arbi/_utils/_typing.py +151 -0
- arbi/_utils/_utils.py +422 -0
- arbi/_version.py +4 -0
- arbi/lib/.keep +4 -0
- arbi/py.typed +0 -0
- arbi/resources/__init__.py +19 -0
- arbi/resources/api/__init__.py +145 -0
- arbi/resources/api/api.py +422 -0
- arbi/resources/api/assistant.py +300 -0
- arbi/resources/api/configs.py +499 -0
- arbi/resources/api/conversation/__init__.py +33 -0
- arbi/resources/api/conversation/conversation.py +555 -0
- arbi/resources/api/conversation/user.py +270 -0
- arbi/resources/api/document/__init__.py +33 -0
- arbi/resources/api/document/annotation.py +384 -0
- arbi/resources/api/document/document.py +873 -0
- arbi/resources/api/health.py +304 -0
- arbi/resources/api/sso.py +333 -0
- arbi/resources/api/tag.py +614 -0
- arbi/resources/api/user/__init__.py +33 -0
- arbi/resources/api/user/settings.py +251 -0
- arbi/resources/api/user/user.py +532 -0
- arbi/resources/api/workspace.py +1061 -0
- arbi/types/__init__.py +8 -0
- arbi/types/api/__init__.py +84 -0
- arbi/types/api/assistant_query_params.py +59 -0
- arbi/types/api/assistant_retrieve_params.py +59 -0
- arbi/types/api/chunker_config_param.py +9 -0
- arbi/types/api/config_create_params.py +45 -0
- arbi/types/api/config_create_response.py +15 -0
- arbi/types/api/config_delete_response.py +11 -0
- arbi/types/api/config_get_versions_response.py +19 -0
- arbi/types/api/config_retrieve_response.py +46 -0
- arbi/types/api/conversation/__init__.py +8 -0
- arbi/types/api/conversation/user_add_params.py +11 -0
- arbi/types/api/conversation/user_add_response.py +11 -0
- arbi/types/api/conversation/user_remove_params.py +11 -0
- arbi/types/api/conversation/user_remove_response.py +11 -0
- arbi/types/api/conversation_delete_message_response.py +11 -0
- arbi/types/api/conversation_delete_response.py +11 -0
- arbi/types/api/conversation_retrieve_threads_response.py +91 -0
- arbi/types/api/conversation_share_response.py +11 -0
- arbi/types/api/conversation_update_title_params.py +12 -0
- arbi/types/api/conversation_update_title_response.py +13 -0
- arbi/types/api/doc_response.py +48 -0
- arbi/types/api/document/__init__.py +8 -0
- arbi/types/api/document/annotation_create_params.py +16 -0
- arbi/types/api/document/annotation_delete_response.py +11 -0
- arbi/types/api/document/annotation_update_params.py +16 -0
- arbi/types/api/document/doc_tag_response.py +26 -0
- arbi/types/api/document_date_extractor_llm_config.py +29 -0
- arbi/types/api/document_date_extractor_llm_config_param.py +28 -0
- arbi/types/api/document_delete_response.py +11 -0
- arbi/types/api/document_get_parsed_response.py +26 -0
- arbi/types/api/document_get_tags_response.py +10 -0
- arbi/types/api/document_update_params.py +19 -0
- arbi/types/api/document_update_response.py +22 -0
- arbi/types/api/document_upload_params.py +23 -0
- arbi/types/api/document_view_params.py +13 -0
- arbi/types/api/embedder_config.py +18 -0
- arbi/types/api/embedder_config_param.py +17 -0
- arbi/types/api/health_check_app_response.py +9 -0
- arbi/types/api/health_check_models_response.py +21 -0
- arbi/types/api/health_check_services_response.py +23 -0
- arbi/types/api/health_get_models_response.py +19 -0
- arbi/types/api/model_citation_config.py +23 -0
- arbi/types/api/model_citation_config_param.py +23 -0
- arbi/types/api/parser_config_param.py +9 -0
- arbi/types/api/query_llm_config.py +30 -0
- arbi/types/api/query_llm_config_param.py +29 -0
- arbi/types/api/reranker_config.py +21 -0
- arbi/types/api/reranker_config_param.py +20 -0
- arbi/types/api/retriever_config.py +23 -0
- arbi/types/api/retriever_config_param.py +23 -0
- arbi/types/api/sso_invite_params.py +11 -0
- arbi/types/api/sso_invite_response.py +11 -0
- arbi/types/api/sso_login_params.py +16 -0
- arbi/types/api/sso_login_response.py +15 -0
- arbi/types/api/sso_rotate_passcode_response.py +11 -0
- arbi/types/api/tag_apply_to_docs_params.py +12 -0
- arbi/types/api/tag_apply_to_docs_response.py +13 -0
- arbi/types/api/tag_create_params.py +18 -0
- arbi/types/api/tag_create_response.py +11 -0
- arbi/types/api/tag_delete_response.py +9 -0
- arbi/types/api/tag_get_docs_response.py +10 -0
- arbi/types/api/tag_remove_from_docs_params.py +12 -0
- arbi/types/api/tag_remove_from_docs_response.py +13 -0
- arbi/types/api/tag_update_params.py +14 -0
- arbi/types/api/tag_update_response.py +17 -0
- arbi/types/api/title_llm_config.py +29 -0
- arbi/types/api/title_llm_config_param.py +28 -0
- arbi/types/api/token.py +13 -0
- arbi/types/api/user/__init__.py +6 -0
- arbi/types/api/user/setting_retrieve_response.py +36 -0
- arbi/types/api/user/setting_update_params.py +24 -0
- arbi/types/api/user_list_workspaces_response.py +10 -0
- arbi/types/api/user_login_params.py +13 -0
- arbi/types/api/user_logout_response.py +9 -0
- arbi/types/api/user_register_params.py +17 -0
- arbi/types/api/user_response.py +19 -0
- arbi/types/api/workspace_create_protected_params.py +14 -0
- arbi/types/api/workspace_delete_response.py +9 -0
- arbi/types/api/workspace_get_conversations_response.py +28 -0
- arbi/types/api/workspace_get_doctags_response.py +10 -0
- arbi/types/api/workspace_get_documents_response.py +10 -0
- arbi/types/api/workspace_get_stats_response.py +13 -0
- arbi/types/api/workspace_get_tags_response.py +30 -0
- arbi/types/api/workspace_get_users_response.py +17 -0
- arbi/types/api/workspace_remove_user_params.py +11 -0
- arbi/types/api/workspace_remove_user_response.py +11 -0
- arbi/types/api/workspace_response.py +24 -0
- arbi/types/api/workspace_share_params.py +11 -0
- arbi/types/api/workspace_share_response.py +21 -0
- arbi/types/api/workspace_update_params.py +14 -0
- arbi/types/chunk.py +12 -0
- arbi/types/chunk_metadata.py +31 -0
- arbi/types/chunk_metadata_param.py +32 -0
- arbi/types/chunk_param.py +15 -0
- arbi-0.1.0.dist-info/METADATA +410 -0
- arbi-0.1.0.dist-info/RECORD +143 -0
- arbi-0.1.0.dist-info/WHEEL +4 -0
- arbi-0.1.0.dist-info/licenses/LICENSE +201 -0
arbi/types/__init__.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .chunk import Chunk as Chunk
|
|
6
|
+
from .chunk_param import ChunkParam as ChunkParam
|
|
7
|
+
from .chunk_metadata import ChunkMetadata as ChunkMetadata
|
|
8
|
+
from .chunk_metadata_param import ChunkMetadataParam as ChunkMetadataParam
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .token import Token as Token
|
|
6
|
+
from .doc_response import DocResponse as DocResponse
|
|
7
|
+
from .user_response import UserResponse as UserResponse
|
|
8
|
+
from .embedder_config import EmbedderConfig as EmbedderConfig
|
|
9
|
+
from .reranker_config import RerankerConfig as RerankerConfig
|
|
10
|
+
from .query_llm_config import QueryLlmConfig as QueryLlmConfig
|
|
11
|
+
from .retriever_config import RetrieverConfig as RetrieverConfig
|
|
12
|
+
from .sso_login_params import SSOLoginParams as SSOLoginParams
|
|
13
|
+
from .title_llm_config import TitleLlmConfig as TitleLlmConfig
|
|
14
|
+
from .sso_invite_params import SSOInviteParams as SSOInviteParams
|
|
15
|
+
from .tag_create_params import TagCreateParams as TagCreateParams
|
|
16
|
+
from .tag_update_params import TagUpdateParams as TagUpdateParams
|
|
17
|
+
from .user_login_params import UserLoginParams as UserLoginParams
|
|
18
|
+
from .sso_login_response import SSOLoginResponse as SSOLoginResponse
|
|
19
|
+
from .workspace_response import WorkspaceResponse as WorkspaceResponse
|
|
20
|
+
from .parser_config_param import ParserConfigParam as ParserConfigParam
|
|
21
|
+
from .sso_invite_response import SSOInviteResponse as SSOInviteResponse
|
|
22
|
+
from .tag_create_response import TagCreateResponse as TagCreateResponse
|
|
23
|
+
from .tag_delete_response import TagDeleteResponse as TagDeleteResponse
|
|
24
|
+
from .tag_update_response import TagUpdateResponse as TagUpdateResponse
|
|
25
|
+
from .chunker_config_param import ChunkerConfigParam as ChunkerConfigParam
|
|
26
|
+
from .config_create_params import ConfigCreateParams as ConfigCreateParams
|
|
27
|
+
from .document_view_params import DocumentViewParams as DocumentViewParams
|
|
28
|
+
from .user_logout_response import UserLogoutResponse as UserLogoutResponse
|
|
29
|
+
from .user_register_params import UserRegisterParams as UserRegisterParams
|
|
30
|
+
from .embedder_config_param import EmbedderConfigParam as EmbedderConfigParam
|
|
31
|
+
from .model_citation_config import ModelCitationConfig as ModelCitationConfig
|
|
32
|
+
from .reranker_config_param import RerankerConfigParam as RerankerConfigParam
|
|
33
|
+
from .tag_get_docs_response import TagGetDocsResponse as TagGetDocsResponse
|
|
34
|
+
from .assistant_query_params import AssistantQueryParams as AssistantQueryParams
|
|
35
|
+
from .config_create_response import ConfigCreateResponse as ConfigCreateResponse
|
|
36
|
+
from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse
|
|
37
|
+
from .document_update_params import DocumentUpdateParams as DocumentUpdateParams
|
|
38
|
+
from .document_upload_params import DocumentUploadParams as DocumentUploadParams
|
|
39
|
+
from .query_llm_config_param import QueryLlmConfigParam as QueryLlmConfigParam
|
|
40
|
+
from .retriever_config_param import RetrieverConfigParam as RetrieverConfigParam
|
|
41
|
+
from .title_llm_config_param import TitleLlmConfigParam as TitleLlmConfigParam
|
|
42
|
+
from .workspace_share_params import WorkspaceShareParams as WorkspaceShareParams
|
|
43
|
+
from .workspace_update_params import WorkspaceUpdateParams as WorkspaceUpdateParams
|
|
44
|
+
from .config_retrieve_response import ConfigRetrieveResponse as ConfigRetrieveResponse
|
|
45
|
+
from .document_delete_response import DocumentDeleteResponse as DocumentDeleteResponse
|
|
46
|
+
from .document_update_response import DocumentUpdateResponse as DocumentUpdateResponse
|
|
47
|
+
from .tag_apply_to_docs_params import TagApplyToDocsParams as TagApplyToDocsParams
|
|
48
|
+
from .workspace_share_response import WorkspaceShareResponse as WorkspaceShareResponse
|
|
49
|
+
from .assistant_retrieve_params import AssistantRetrieveParams as AssistantRetrieveParams
|
|
50
|
+
from .health_check_app_response import HealthCheckAppResponse as HealthCheckAppResponse
|
|
51
|
+
from .workspace_delete_response import WorkspaceDeleteResponse as WorkspaceDeleteResponse
|
|
52
|
+
from .document_get_tags_response import DocumentGetTagsResponse as DocumentGetTagsResponse
|
|
53
|
+
from .health_get_models_response import HealthGetModelsResponse as HealthGetModelsResponse
|
|
54
|
+
from .tag_apply_to_docs_response import TagApplyToDocsResponse as TagApplyToDocsResponse
|
|
55
|
+
from .conversation_share_response import ConversationShareResponse as ConversationShareResponse
|
|
56
|
+
from .model_citation_config_param import ModelCitationConfigParam as ModelCitationConfigParam
|
|
57
|
+
from .tag_remove_from_docs_params import TagRemoveFromDocsParams as TagRemoveFromDocsParams
|
|
58
|
+
from .workspace_get_tags_response import WorkspaceGetTagsResponse as WorkspaceGetTagsResponse
|
|
59
|
+
from .config_get_versions_response import ConfigGetVersionsResponse as ConfigGetVersionsResponse
|
|
60
|
+
from .conversation_delete_response import ConversationDeleteResponse as ConversationDeleteResponse
|
|
61
|
+
from .document_get_parsed_response import DocumentGetParsedResponse as DocumentGetParsedResponse
|
|
62
|
+
from .health_check_models_response import HealthCheckModelsResponse as HealthCheckModelsResponse
|
|
63
|
+
from .sso_rotate_passcode_response import SSORotatePasscodeResponse as SSORotatePasscodeResponse
|
|
64
|
+
from .workspace_get_stats_response import WorkspaceGetStatsResponse as WorkspaceGetStatsResponse
|
|
65
|
+
from .workspace_get_users_response import WorkspaceGetUsersResponse as WorkspaceGetUsersResponse
|
|
66
|
+
from .workspace_remove_user_params import WorkspaceRemoveUserParams as WorkspaceRemoveUserParams
|
|
67
|
+
from .tag_remove_from_docs_response import TagRemoveFromDocsResponse as TagRemoveFromDocsResponse
|
|
68
|
+
from .user_list_workspaces_response import UserListWorkspacesResponse as UserListWorkspacesResponse
|
|
69
|
+
from .health_check_services_response import HealthCheckServicesResponse as HealthCheckServicesResponse
|
|
70
|
+
from .workspace_get_doctags_response import WorkspaceGetDoctagsResponse as WorkspaceGetDoctagsResponse
|
|
71
|
+
from .workspace_remove_user_response import WorkspaceRemoveUserResponse as WorkspaceRemoveUserResponse
|
|
72
|
+
from .conversation_update_title_params import ConversationUpdateTitleParams as ConversationUpdateTitleParams
|
|
73
|
+
from .workspace_get_documents_response import WorkspaceGetDocumentsResponse as WorkspaceGetDocumentsResponse
|
|
74
|
+
from .workspace_create_protected_params import WorkspaceCreateProtectedParams as WorkspaceCreateProtectedParams
|
|
75
|
+
from .conversation_update_title_response import ConversationUpdateTitleResponse as ConversationUpdateTitleResponse
|
|
76
|
+
from .document_date_extractor_llm_config import DocumentDateExtractorLlmConfig as DocumentDateExtractorLlmConfig
|
|
77
|
+
from .conversation_delete_message_response import ConversationDeleteMessageResponse as ConversationDeleteMessageResponse
|
|
78
|
+
from .workspace_get_conversations_response import WorkspaceGetConversationsResponse as WorkspaceGetConversationsResponse
|
|
79
|
+
from .conversation_retrieve_threads_response import (
|
|
80
|
+
ConversationRetrieveThreadsResponse as ConversationRetrieveThreadsResponse,
|
|
81
|
+
)
|
|
82
|
+
from .document_date_extractor_llm_config_param import (
|
|
83
|
+
DocumentDateExtractorLlmConfigParam as DocumentDateExtractorLlmConfigParam,
|
|
84
|
+
)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, List, Union, Iterable, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
from ..chunk_param import ChunkParam
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"AssistantQueryParams",
|
|
12
|
+
"Tools",
|
|
13
|
+
"ToolsModelCitationTool",
|
|
14
|
+
"ToolsRetrievalChunkToolInput",
|
|
15
|
+
"ToolsRetrievalFullContextToolInput",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AssistantQueryParams(TypedDict, total=False):
|
|
20
|
+
content: Required[str]
|
|
21
|
+
|
|
22
|
+
workspace_ext_id: Required[str]
|
|
23
|
+
|
|
24
|
+
config_ext_id: Optional[str]
|
|
25
|
+
|
|
26
|
+
parent_message_ext_id: Optional[str]
|
|
27
|
+
|
|
28
|
+
tools: Dict[str, Tools]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ToolsModelCitationTool(TypedDict, total=False):
|
|
32
|
+
description: str
|
|
33
|
+
|
|
34
|
+
name: Literal["model_citation"]
|
|
35
|
+
|
|
36
|
+
tool_responses: Dict[str, List[str]]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class ToolsRetrievalChunkToolInput(TypedDict, total=False):
|
|
40
|
+
description: str
|
|
41
|
+
|
|
42
|
+
name: Literal["retrieval_chunk"]
|
|
43
|
+
|
|
44
|
+
tool_args: Dict[str, List[str]]
|
|
45
|
+
|
|
46
|
+
tool_responses: Dict[str, Iterable[ChunkParam]]
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class ToolsRetrievalFullContextToolInput(TypedDict, total=False):
|
|
50
|
+
description: str
|
|
51
|
+
|
|
52
|
+
name: Literal["retrieval_full_context"]
|
|
53
|
+
|
|
54
|
+
tool_args: Dict[str, List[str]]
|
|
55
|
+
|
|
56
|
+
tool_responses: Dict[str, Iterable[ChunkParam]]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Tools: TypeAlias = Union[ToolsModelCitationTool, ToolsRetrievalChunkToolInput, ToolsRetrievalFullContextToolInput]
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, List, Union, Iterable, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
from ..chunk_param import ChunkParam
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"AssistantRetrieveParams",
|
|
12
|
+
"Tools",
|
|
13
|
+
"ToolsModelCitationTool",
|
|
14
|
+
"ToolsRetrievalChunkToolInput",
|
|
15
|
+
"ToolsRetrievalFullContextToolInput",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AssistantRetrieveParams(TypedDict, total=False):
|
|
20
|
+
content: Required[str]
|
|
21
|
+
|
|
22
|
+
workspace_ext_id: Required[str]
|
|
23
|
+
|
|
24
|
+
config_ext_id: Optional[str]
|
|
25
|
+
|
|
26
|
+
parent_message_ext_id: Optional[str]
|
|
27
|
+
|
|
28
|
+
tools: Dict[str, Tools]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ToolsModelCitationTool(TypedDict, total=False):
|
|
32
|
+
description: str
|
|
33
|
+
|
|
34
|
+
name: Literal["model_citation"]
|
|
35
|
+
|
|
36
|
+
tool_responses: Dict[str, List[str]]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class ToolsRetrievalChunkToolInput(TypedDict, total=False):
|
|
40
|
+
description: str
|
|
41
|
+
|
|
42
|
+
name: Literal["retrieval_chunk"]
|
|
43
|
+
|
|
44
|
+
tool_args: Dict[str, List[str]]
|
|
45
|
+
|
|
46
|
+
tool_responses: Dict[str, Iterable[ChunkParam]]
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class ToolsRetrievalFullContextToolInput(TypedDict, total=False):
|
|
50
|
+
description: str
|
|
51
|
+
|
|
52
|
+
name: Literal["retrieval_full_context"]
|
|
53
|
+
|
|
54
|
+
tool_args: Dict[str, List[str]]
|
|
55
|
+
|
|
56
|
+
tool_responses: Dict[str, Iterable[ChunkParam]]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Tools: TypeAlias = Union[ToolsModelCitationTool, ToolsRetrievalChunkToolInput, ToolsRetrievalFullContextToolInput]
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from ..._utils import PropertyInfo
|
|
9
|
+
from .parser_config_param import ParserConfigParam
|
|
10
|
+
from .chunker_config_param import ChunkerConfigParam
|
|
11
|
+
from .embedder_config_param import EmbedderConfigParam
|
|
12
|
+
from .reranker_config_param import RerankerConfigParam
|
|
13
|
+
from .query_llm_config_param import QueryLlmConfigParam
|
|
14
|
+
from .retriever_config_param import RetrieverConfigParam
|
|
15
|
+
from .title_llm_config_param import TitleLlmConfigParam
|
|
16
|
+
from .model_citation_config_param import ModelCitationConfigParam
|
|
17
|
+
from .document_date_extractor_llm_config_param import DocumentDateExtractorLlmConfigParam
|
|
18
|
+
|
|
19
|
+
__all__ = ["ConfigCreateParams"]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ConfigCreateParams(TypedDict, total=False):
|
|
23
|
+
chunker: Annotated[Optional[ChunkerConfigParam], PropertyInfo(alias="Chunker")]
|
|
24
|
+
|
|
25
|
+
document_date_extractor_llm: Annotated[
|
|
26
|
+
Optional[DocumentDateExtractorLlmConfigParam], PropertyInfo(alias="DocumentDateExtractorLLM")
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
embedder: Annotated[Optional[EmbedderConfigParam], PropertyInfo(alias="Embedder")]
|
|
30
|
+
|
|
31
|
+
model_citation: Annotated[Optional[ModelCitationConfigParam], PropertyInfo(alias="ModelCitation")]
|
|
32
|
+
|
|
33
|
+
parent_message_ext_id: Optional[str]
|
|
34
|
+
|
|
35
|
+
parser: Annotated[Optional[ParserConfigParam], PropertyInfo(alias="Parser")]
|
|
36
|
+
|
|
37
|
+
query_llm: Annotated[Optional[QueryLlmConfigParam], PropertyInfo(alias="QueryLLM")]
|
|
38
|
+
|
|
39
|
+
reranker: Annotated[Optional[RerankerConfigParam], PropertyInfo(alias="Reranker")]
|
|
40
|
+
|
|
41
|
+
retriever: Annotated[Optional[RetrieverConfigParam], PropertyInfo(alias="Retriever")]
|
|
42
|
+
|
|
43
|
+
title: str
|
|
44
|
+
|
|
45
|
+
title_llm: Annotated[Optional[TitleLlmConfigParam], PropertyInfo(alias="TitleLLM")]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["ConfigCreateResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConfigCreateResponse(BaseModel):
|
|
11
|
+
created_at: str
|
|
12
|
+
|
|
13
|
+
external_id: str
|
|
14
|
+
|
|
15
|
+
title: Optional[str] = None
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["ConfigDeleteResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConfigDeleteResponse(BaseModel):
|
|
11
|
+
detail: Optional[str] = None
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["ConfigGetVersionsResponse", "Version"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Version(BaseModel):
|
|
11
|
+
created_at: str
|
|
12
|
+
|
|
13
|
+
external_id: str
|
|
14
|
+
|
|
15
|
+
title: Optional[str] = None
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ConfigGetVersionsResponse(BaseModel):
|
|
19
|
+
versions: List[Version]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, Union, Optional
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from pydantic import Field as FieldInfo
|
|
7
|
+
|
|
8
|
+
from ..._models import BaseModel
|
|
9
|
+
from .embedder_config import EmbedderConfig
|
|
10
|
+
from .reranker_config import RerankerConfig
|
|
11
|
+
from .query_llm_config import QueryLlmConfig
|
|
12
|
+
from .retriever_config import RetrieverConfig
|
|
13
|
+
from .title_llm_config import TitleLlmConfig
|
|
14
|
+
from .model_citation_config import ModelCitationConfig
|
|
15
|
+
from .document_date_extractor_llm_config import DocumentDateExtractorLlmConfig
|
|
16
|
+
|
|
17
|
+
__all__ = ["ConfigRetrieveResponse", "AllConfigs", "NonDeveloperConfig"]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class AllConfigs(BaseModel):
|
|
21
|
+
chunker: Optional[object] = FieldInfo(alias="Chunker", default=None)
|
|
22
|
+
|
|
23
|
+
document_date_extractor_llm: Optional[DocumentDateExtractorLlmConfig] = FieldInfo(
|
|
24
|
+
alias="DocumentDateExtractorLLM", default=None
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
embedder: Optional[EmbedderConfig] = FieldInfo(alias="Embedder", default=None)
|
|
28
|
+
|
|
29
|
+
api_model_citation: Optional[ModelCitationConfig] = FieldInfo(alias="ModelCitation", default=None)
|
|
30
|
+
|
|
31
|
+
parser: Optional[object] = FieldInfo(alias="Parser", default=None)
|
|
32
|
+
|
|
33
|
+
query_llm: Optional[QueryLlmConfig] = FieldInfo(alias="QueryLLM", default=None)
|
|
34
|
+
|
|
35
|
+
reranker: Optional[RerankerConfig] = FieldInfo(alias="Reranker", default=None)
|
|
36
|
+
|
|
37
|
+
retriever: Optional[RetrieverConfig] = FieldInfo(alias="Retriever", default=None)
|
|
38
|
+
|
|
39
|
+
title_llm: Optional[TitleLlmConfig] = FieldInfo(alias="TitleLLM", default=None)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class NonDeveloperConfig(BaseModel):
|
|
43
|
+
query_llm: Dict[str, str] = FieldInfo(alias="QueryLLM")
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
ConfigRetrieveResponse: TypeAlias = Union[AllConfigs, NonDeveloperConfig]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .user_add_params import UserAddParams as UserAddParams
|
|
6
|
+
from .user_add_response import UserAddResponse as UserAddResponse
|
|
7
|
+
from .user_remove_params import UserRemoveParams as UserRemoveParams
|
|
8
|
+
from .user_remove_response import UserRemoveResponse as UserRemoveResponse
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["UserAddParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UserAddParams(TypedDict, total=False):
|
|
11
|
+
user_ext_id: Required[str]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["UserAddResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UserAddResponse(BaseModel):
|
|
11
|
+
detail: Optional[str] = None
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["UserRemoveParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UserRemoveParams(TypedDict, total=False):
|
|
11
|
+
user_ext_id: Required[str]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["UserRemoveResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class UserRemoveResponse(BaseModel):
|
|
11
|
+
detail: Optional[str] = None
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["ConversationDeleteMessageResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConversationDeleteMessageResponse(BaseModel):
|
|
11
|
+
detail: Optional[str] = None
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["ConversationDeleteResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConversationDeleteResponse(BaseModel):
|
|
11
|
+
detail: Optional[str] = None
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List, Union, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal, Annotated, TypeAlias
|
|
6
|
+
|
|
7
|
+
from ..chunk import Chunk
|
|
8
|
+
from ..._utils import PropertyInfo
|
|
9
|
+
from ..._models import BaseModel
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"ConversationRetrieveThreadsResponse",
|
|
13
|
+
"Thread",
|
|
14
|
+
"ThreadHistory",
|
|
15
|
+
"ThreadHistoryTools",
|
|
16
|
+
"ThreadHistoryToolsModelCitationTool",
|
|
17
|
+
"ThreadHistoryToolsRetrievalChunkToolOutput",
|
|
18
|
+
"ThreadHistoryToolsRetrievalFullContextToolOutput",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ThreadHistoryToolsModelCitationTool(BaseModel):
|
|
23
|
+
description: Optional[str] = None
|
|
24
|
+
|
|
25
|
+
name: Optional[Literal["model_citation"]] = None
|
|
26
|
+
|
|
27
|
+
tool_responses: Optional[Dict[str, List[str]]] = None
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ThreadHistoryToolsRetrievalChunkToolOutput(BaseModel):
|
|
31
|
+
description: Optional[str] = None
|
|
32
|
+
|
|
33
|
+
name: Optional[Literal["retrieval_chunk"]] = None
|
|
34
|
+
|
|
35
|
+
tool_args: Optional[Dict[str, List[str]]] = None
|
|
36
|
+
|
|
37
|
+
tool_responses: Optional[Dict[str, List[Chunk]]] = None
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class ThreadHistoryToolsRetrievalFullContextToolOutput(BaseModel):
|
|
41
|
+
description: Optional[str] = None
|
|
42
|
+
|
|
43
|
+
name: Optional[Literal["retrieval_full_context"]] = None
|
|
44
|
+
|
|
45
|
+
tool_args: Optional[Dict[str, List[str]]] = None
|
|
46
|
+
|
|
47
|
+
tool_responses: Optional[Dict[str, List[Chunk]]] = None
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
ThreadHistoryTools: TypeAlias = Annotated[
|
|
51
|
+
Union[
|
|
52
|
+
ThreadHistoryToolsModelCitationTool,
|
|
53
|
+
ThreadHistoryToolsRetrievalChunkToolOutput,
|
|
54
|
+
ThreadHistoryToolsRetrievalFullContextToolOutput,
|
|
55
|
+
],
|
|
56
|
+
PropertyInfo(discriminator="name"),
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class ThreadHistory(BaseModel):
|
|
61
|
+
content: str
|
|
62
|
+
|
|
63
|
+
conversation_ext_id: str
|
|
64
|
+
|
|
65
|
+
created_at: datetime
|
|
66
|
+
|
|
67
|
+
created_by_ext_id: str
|
|
68
|
+
|
|
69
|
+
external_id: str
|
|
70
|
+
|
|
71
|
+
role: Literal["user", "assistant", "system"]
|
|
72
|
+
|
|
73
|
+
config_ext_id: Optional[str] = None
|
|
74
|
+
|
|
75
|
+
parent_message_ext_id: Optional[str] = None
|
|
76
|
+
|
|
77
|
+
shared: Optional[bool] = None
|
|
78
|
+
|
|
79
|
+
tools: Optional[Dict[str, ThreadHistoryTools]] = None
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class Thread(BaseModel):
|
|
83
|
+
history: List[ThreadHistory]
|
|
84
|
+
|
|
85
|
+
leaf_message_ext_id: str
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class ConversationRetrieveThreadsResponse(BaseModel):
|
|
89
|
+
conversation_ext_id: str
|
|
90
|
+
|
|
91
|
+
threads: List[Thread]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["ConversationShareResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConversationShareResponse(BaseModel):
|
|
11
|
+
detail: Optional[str] = None
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["ConversationUpdateTitleParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConversationUpdateTitleParams(TypedDict, total=False):
|
|
11
|
+
title: Required[str]
|
|
12
|
+
"""New conversation title (1-60 characters)"""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["ConversationUpdateTitleResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConversationUpdateTitleResponse(BaseModel):
|
|
11
|
+
title: str
|
|
12
|
+
|
|
13
|
+
detail: Optional[str] = None
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from datetime import date, datetime
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["DocResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DocResponse(BaseModel):
|
|
12
|
+
created_at: datetime
|
|
13
|
+
|
|
14
|
+
external_id: str
|
|
15
|
+
|
|
16
|
+
title: str
|
|
17
|
+
|
|
18
|
+
updated_at: datetime
|
|
19
|
+
|
|
20
|
+
workspace_ext_id: str
|
|
21
|
+
|
|
22
|
+
config_ext_id: Optional[str] = None
|
|
23
|
+
|
|
24
|
+
created_by_ext_id: Optional[str] = None
|
|
25
|
+
|
|
26
|
+
doc_date: Optional[date] = None
|
|
27
|
+
|
|
28
|
+
file_name: Optional[str] = None
|
|
29
|
+
|
|
30
|
+
file_size: Optional[int] = None
|
|
31
|
+
|
|
32
|
+
file_type: Optional[str] = None
|
|
33
|
+
|
|
34
|
+
n_chunks: Optional[int] = None
|
|
35
|
+
|
|
36
|
+
n_pages: Optional[int] = None
|
|
37
|
+
|
|
38
|
+
re_ocred: Optional[bool] = None
|
|
39
|
+
|
|
40
|
+
shared: Optional[bool] = None
|
|
41
|
+
|
|
42
|
+
status: Optional[str] = None
|
|
43
|
+
|
|
44
|
+
storage_type: Optional[str] = None
|
|
45
|
+
|
|
46
|
+
storage_uri: Optional[str] = None
|
|
47
|
+
|
|
48
|
+
tokens: Optional[int] = None
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .doc_tag_response import DocTagResponse as DocTagResponse
|
|
6
|
+
from .annotation_create_params import AnnotationCreateParams as AnnotationCreateParams
|
|
7
|
+
from .annotation_update_params import AnnotationUpdateParams as AnnotationUpdateParams
|
|
8
|
+
from .annotation_delete_response import AnnotationDeleteResponse as AnnotationDeleteResponse
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["AnnotationCreateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AnnotationCreateParams(TypedDict, total=False):
|
|
12
|
+
note: Optional[str]
|
|
13
|
+
|
|
14
|
+
page_ref: Optional[int]
|
|
15
|
+
|
|
16
|
+
tag_name: Optional[str]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["AnnotationDeleteResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AnnotationDeleteResponse(BaseModel):
|
|
11
|
+
message: Optional[str] = None
|