athena-intelligence 0.1.94__py3-none-any.whl → 0.1.95__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.
- athena/__init__.py +1 -76
- athena/base_client.py +4 -31
- athena/client.py +4 -9
- athena/core/client_wrapper.py +1 -1
- athena/environment.py +1 -1
- athena/tools/client.py +61 -916
- athena/tools/types/tools_data_frame_request_columns_item.py +1 -1
- athena/types/__init__.py +0 -66
- athena/types/data_frame_parsing_error.py +1 -1
- athena/types/data_frame_request_out.py +5 -1
- athena/types/data_frame_unknown_format_error.py +1 -1
- {athena_intelligence-0.1.94.dist-info → athena_intelligence-0.1.95.dist-info}/METADATA +1 -1
- athena_intelligence-0.1.95.dist-info/RECORD +40 -0
- athena/chain/__init__.py +0 -2
- athena/chain/client.py +0 -302
- athena/dataset/__init__.py +0 -2
- athena/dataset/client.py +0 -124
- athena/message/__init__.py +0 -2
- athena/message/client.py +0 -249
- athena/polling_message_client.py +0 -125
- athena/query/__init__.py +0 -2
- athena/query/client.py +0 -123
- athena/report/__init__.py +0 -2
- athena/report/client.py +0 -125
- athena/search/__init__.py +0 -2
- athena/search/client.py +0 -171
- athena/snippet/__init__.py +0 -2
- athena/snippet/client.py +0 -208
- athena/types/athena_document_v_2_out.py +0 -29
- athena/types/convert_pdf_to_sheet_out.py +0 -30
- athena/types/dataset.py +0 -33
- athena/types/document.py +0 -47
- athena/types/excecute_tool_first_workflow_out.py +0 -29
- athena/types/file_data_response.py +0 -36
- athena/types/filter_model.py +0 -32
- athena/types/filter_operator.py +0 -73
- athena/types/firecrawl_scrape_url_data_reponse_dto.py +0 -32
- athena/types/firecrawl_scrape_url_metadata.py +0 -34
- athena/types/get_datasets_response.py +0 -34
- athena/types/get_snippet_out.py +0 -29
- athena/types/get_snippets_response.py +0 -34
- athena/types/langchain_documents_request_out.py +0 -29
- athena/types/llm_model.py +0 -141
- athena/types/map_reduce_chain_out.py +0 -32
- athena/types/message_out.py +0 -29
- athena/types/message_out_dto.py +0 -35
- athena/types/model.py +0 -93
- athena/types/publish_formats.py +0 -31
- athena/types/query_model.py +0 -40
- athena/types/report.py +0 -32
- athena/types/researcher_out.py +0 -29
- athena/types/semantic_query_out.py +0 -29
- athena/types/snippet.py +0 -35
- athena/types/sql_results.py +0 -29
- athena/types/status_enum.py +0 -29
- athena/types/structured_parse_result.py +0 -29
- athena/types/time_dimension_model.py +0 -33
- athena/types/tools.py +0 -57
- athena/types/upload_documents_out.py +0 -31
- athena/types/url_result.py +0 -29
- athena/types/workflow_status_out.py +0 -31
- athena/upload/__init__.py +0 -2
- athena/upload/client.py +0 -108
- athena/workflow/__init__.py +0 -2
- athena/workflow/client.py +0 -117
- athena_intelligence-0.1.94.dist-info/RECORD +0 -92
- {athena_intelligence-0.1.94.dist-info → athena_intelligence-0.1.95.dist-info}/WHEEL +0 -0
athena/search/client.py
DELETED
@@ -1,171 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import typing
|
4
|
-
from json.decoder import JSONDecodeError
|
5
|
-
|
6
|
-
from ..core.api_error import ApiError
|
7
|
-
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
8
|
-
from ..core.pydantic_utilities import pydantic_v1
|
9
|
-
from ..core.request_options import RequestOptions
|
10
|
-
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
11
|
-
from ..types.http_validation_error import HttpValidationError
|
12
|
-
from ..types.url_result import UrlResult
|
13
|
-
|
14
|
-
# this is used as the default value for optional parameters
|
15
|
-
OMIT = typing.cast(typing.Any, ...)
|
16
|
-
|
17
|
-
|
18
|
-
class SearchClient:
|
19
|
-
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
20
|
-
self._client_wrapper = client_wrapper
|
21
|
-
|
22
|
-
def get_urls(
|
23
|
-
self,
|
24
|
-
*,
|
25
|
-
query: str,
|
26
|
-
num_urls: int,
|
27
|
-
tbs: str,
|
28
|
-
country_code: typing.Optional[str] = OMIT,
|
29
|
-
country_restrict: typing.Optional[str] = OMIT,
|
30
|
-
site: typing.Optional[str] = OMIT,
|
31
|
-
request_options: typing.Optional[RequestOptions] = None
|
32
|
-
) -> UrlResult:
|
33
|
-
"""
|
34
|
-
Parameters
|
35
|
-
----------
|
36
|
-
query : str
|
37
|
-
|
38
|
-
num_urls : int
|
39
|
-
|
40
|
-
tbs : str
|
41
|
-
|
42
|
-
country_code : typing.Optional[str]
|
43
|
-
|
44
|
-
country_restrict : typing.Optional[str]
|
45
|
-
|
46
|
-
site : typing.Optional[str]
|
47
|
-
|
48
|
-
request_options : typing.Optional[RequestOptions]
|
49
|
-
Request-specific configuration.
|
50
|
-
|
51
|
-
Returns
|
52
|
-
-------
|
53
|
-
UrlResult
|
54
|
-
Successful Response
|
55
|
-
|
56
|
-
Examples
|
57
|
-
--------
|
58
|
-
from athena.client import Athena
|
59
|
-
|
60
|
-
client = Athena(
|
61
|
-
api_key="YOUR_API_KEY",
|
62
|
-
)
|
63
|
-
client.search.get_urls(
|
64
|
-
query="Athena Intelligence",
|
65
|
-
num_urls=10,
|
66
|
-
tbs="qdr:m",
|
67
|
-
)
|
68
|
-
"""
|
69
|
-
_response = self._client_wrapper.httpx_client.request(
|
70
|
-
"api/v0/tools/search/get-urls",
|
71
|
-
method="POST",
|
72
|
-
json={
|
73
|
-
"query": query,
|
74
|
-
"num_urls": num_urls,
|
75
|
-
"tbs": tbs,
|
76
|
-
"country_code": country_code,
|
77
|
-
"country_restrict": country_restrict,
|
78
|
-
"site": site,
|
79
|
-
},
|
80
|
-
request_options=request_options,
|
81
|
-
omit=OMIT,
|
82
|
-
)
|
83
|
-
if 200 <= _response.status_code < 300:
|
84
|
-
return pydantic_v1.parse_obj_as(UrlResult, _response.json()) # type: ignore
|
85
|
-
if _response.status_code == 422:
|
86
|
-
raise UnprocessableEntityError(
|
87
|
-
pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
|
88
|
-
)
|
89
|
-
try:
|
90
|
-
_response_json = _response.json()
|
91
|
-
except JSONDecodeError:
|
92
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
93
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
94
|
-
|
95
|
-
|
96
|
-
class AsyncSearchClient:
|
97
|
-
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
98
|
-
self._client_wrapper = client_wrapper
|
99
|
-
|
100
|
-
async def get_urls(
|
101
|
-
self,
|
102
|
-
*,
|
103
|
-
query: str,
|
104
|
-
num_urls: int,
|
105
|
-
tbs: str,
|
106
|
-
country_code: typing.Optional[str] = OMIT,
|
107
|
-
country_restrict: typing.Optional[str] = OMIT,
|
108
|
-
site: typing.Optional[str] = OMIT,
|
109
|
-
request_options: typing.Optional[RequestOptions] = None
|
110
|
-
) -> UrlResult:
|
111
|
-
"""
|
112
|
-
Parameters
|
113
|
-
----------
|
114
|
-
query : str
|
115
|
-
|
116
|
-
num_urls : int
|
117
|
-
|
118
|
-
tbs : str
|
119
|
-
|
120
|
-
country_code : typing.Optional[str]
|
121
|
-
|
122
|
-
country_restrict : typing.Optional[str]
|
123
|
-
|
124
|
-
site : typing.Optional[str]
|
125
|
-
|
126
|
-
request_options : typing.Optional[RequestOptions]
|
127
|
-
Request-specific configuration.
|
128
|
-
|
129
|
-
Returns
|
130
|
-
-------
|
131
|
-
UrlResult
|
132
|
-
Successful Response
|
133
|
-
|
134
|
-
Examples
|
135
|
-
--------
|
136
|
-
from athena.client import AsyncAthena
|
137
|
-
|
138
|
-
client = AsyncAthena(
|
139
|
-
api_key="YOUR_API_KEY",
|
140
|
-
)
|
141
|
-
await client.search.get_urls(
|
142
|
-
query="Athena Intelligence",
|
143
|
-
num_urls=10,
|
144
|
-
tbs="qdr:m",
|
145
|
-
)
|
146
|
-
"""
|
147
|
-
_response = await self._client_wrapper.httpx_client.request(
|
148
|
-
"api/v0/tools/search/get-urls",
|
149
|
-
method="POST",
|
150
|
-
json={
|
151
|
-
"query": query,
|
152
|
-
"num_urls": num_urls,
|
153
|
-
"tbs": tbs,
|
154
|
-
"country_code": country_code,
|
155
|
-
"country_restrict": country_restrict,
|
156
|
-
"site": site,
|
157
|
-
},
|
158
|
-
request_options=request_options,
|
159
|
-
omit=OMIT,
|
160
|
-
)
|
161
|
-
if 200 <= _response.status_code < 300:
|
162
|
-
return pydantic_v1.parse_obj_as(UrlResult, _response.json()) # type: ignore
|
163
|
-
if _response.status_code == 422:
|
164
|
-
raise UnprocessableEntityError(
|
165
|
-
pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
|
166
|
-
)
|
167
|
-
try:
|
168
|
-
_response_json = _response.json()
|
169
|
-
except JSONDecodeError:
|
170
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
171
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
athena/snippet/__init__.py
DELETED
athena/snippet/client.py
DELETED
@@ -1,208 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import typing
|
4
|
-
from json.decoder import JSONDecodeError
|
5
|
-
|
6
|
-
from ..core.api_error import ApiError
|
7
|
-
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
8
|
-
from ..core.pydantic_utilities import pydantic_v1
|
9
|
-
from ..core.request_options import RequestOptions
|
10
|
-
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
11
|
-
from ..types.get_snippet_out import GetSnippetOut
|
12
|
-
from ..types.get_snippets_response import GetSnippetsResponse
|
13
|
-
from ..types.http_validation_error import HttpValidationError
|
14
|
-
|
15
|
-
# this is used as the default value for optional parameters
|
16
|
-
OMIT = typing.cast(typing.Any, ...)
|
17
|
-
|
18
|
-
|
19
|
-
class SnippetClient:
|
20
|
-
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
21
|
-
self._client_wrapper = client_wrapper
|
22
|
-
|
23
|
-
def get(
|
24
|
-
self,
|
25
|
-
*,
|
26
|
-
page: typing.Optional[int] = None,
|
27
|
-
page_size: typing.Optional[int] = None,
|
28
|
-
request_options: typing.Optional[RequestOptions] = None
|
29
|
-
) -> GetSnippetsResponse:
|
30
|
-
"""
|
31
|
-
Parameters
|
32
|
-
----------
|
33
|
-
page : typing.Optional[int]
|
34
|
-
Page number starting from 1
|
35
|
-
|
36
|
-
page_size : typing.Optional[int]
|
37
|
-
Number of items per page
|
38
|
-
|
39
|
-
request_options : typing.Optional[RequestOptions]
|
40
|
-
Request-specific configuration.
|
41
|
-
|
42
|
-
Returns
|
43
|
-
-------
|
44
|
-
GetSnippetsResponse
|
45
|
-
Successful Response
|
46
|
-
|
47
|
-
Examples
|
48
|
-
--------
|
49
|
-
from athena.client import Athena
|
50
|
-
|
51
|
-
client = Athena(
|
52
|
-
api_key="YOUR_API_KEY",
|
53
|
-
)
|
54
|
-
client.snippet.get()
|
55
|
-
"""
|
56
|
-
_response = self._client_wrapper.httpx_client.request(
|
57
|
-
"api/v0/snippets",
|
58
|
-
method="GET",
|
59
|
-
params={"page": page, "page_size": page_size},
|
60
|
-
request_options=request_options,
|
61
|
-
)
|
62
|
-
if 200 <= _response.status_code < 300:
|
63
|
-
return pydantic_v1.parse_obj_as(GetSnippetsResponse, _response.json()) # type: ignore
|
64
|
-
if _response.status_code == 422:
|
65
|
-
raise UnprocessableEntityError(
|
66
|
-
pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
|
67
|
-
)
|
68
|
-
try:
|
69
|
-
_response_json = _response.json()
|
70
|
-
except JSONDecodeError:
|
71
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
72
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
73
|
-
|
74
|
-
def get_by_id(self, *, id: str, request_options: typing.Optional[RequestOptions] = None) -> GetSnippetOut:
|
75
|
-
"""
|
76
|
-
Parameters
|
77
|
-
----------
|
78
|
-
id : str
|
79
|
-
|
80
|
-
request_options : typing.Optional[RequestOptions]
|
81
|
-
Request-specific configuration.
|
82
|
-
|
83
|
-
Returns
|
84
|
-
-------
|
85
|
-
GetSnippetOut
|
86
|
-
Successful Response
|
87
|
-
|
88
|
-
Examples
|
89
|
-
--------
|
90
|
-
from athena.client import Athena
|
91
|
-
|
92
|
-
client = Athena(
|
93
|
-
api_key="YOUR_API_KEY",
|
94
|
-
)
|
95
|
-
client.snippet.get_by_id(
|
96
|
-
id="snippet_02329f1b-f6ad-4e93-be84-355c33202024b",
|
97
|
-
)
|
98
|
-
"""
|
99
|
-
_response = self._client_wrapper.httpx_client.request(
|
100
|
-
"api/v0/snippet", method="POST", json={"id": id}, request_options=request_options, omit=OMIT
|
101
|
-
)
|
102
|
-
if 200 <= _response.status_code < 300:
|
103
|
-
return pydantic_v1.parse_obj_as(GetSnippetOut, _response.json()) # type: ignore
|
104
|
-
if _response.status_code == 422:
|
105
|
-
raise UnprocessableEntityError(
|
106
|
-
pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
|
107
|
-
)
|
108
|
-
try:
|
109
|
-
_response_json = _response.json()
|
110
|
-
except JSONDecodeError:
|
111
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
112
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
113
|
-
|
114
|
-
|
115
|
-
class AsyncSnippetClient:
|
116
|
-
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
117
|
-
self._client_wrapper = client_wrapper
|
118
|
-
|
119
|
-
async def get(
|
120
|
-
self,
|
121
|
-
*,
|
122
|
-
page: typing.Optional[int] = None,
|
123
|
-
page_size: typing.Optional[int] = None,
|
124
|
-
request_options: typing.Optional[RequestOptions] = None
|
125
|
-
) -> GetSnippetsResponse:
|
126
|
-
"""
|
127
|
-
Parameters
|
128
|
-
----------
|
129
|
-
page : typing.Optional[int]
|
130
|
-
Page number starting from 1
|
131
|
-
|
132
|
-
page_size : typing.Optional[int]
|
133
|
-
Number of items per page
|
134
|
-
|
135
|
-
request_options : typing.Optional[RequestOptions]
|
136
|
-
Request-specific configuration.
|
137
|
-
|
138
|
-
Returns
|
139
|
-
-------
|
140
|
-
GetSnippetsResponse
|
141
|
-
Successful Response
|
142
|
-
|
143
|
-
Examples
|
144
|
-
--------
|
145
|
-
from athena.client import AsyncAthena
|
146
|
-
|
147
|
-
client = AsyncAthena(
|
148
|
-
api_key="YOUR_API_KEY",
|
149
|
-
)
|
150
|
-
await client.snippet.get()
|
151
|
-
"""
|
152
|
-
_response = await self._client_wrapper.httpx_client.request(
|
153
|
-
"api/v0/snippets",
|
154
|
-
method="GET",
|
155
|
-
params={"page": page, "page_size": page_size},
|
156
|
-
request_options=request_options,
|
157
|
-
)
|
158
|
-
if 200 <= _response.status_code < 300:
|
159
|
-
return pydantic_v1.parse_obj_as(GetSnippetsResponse, _response.json()) # type: ignore
|
160
|
-
if _response.status_code == 422:
|
161
|
-
raise UnprocessableEntityError(
|
162
|
-
pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
|
163
|
-
)
|
164
|
-
try:
|
165
|
-
_response_json = _response.json()
|
166
|
-
except JSONDecodeError:
|
167
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
168
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
169
|
-
|
170
|
-
async def get_by_id(self, *, id: str, request_options: typing.Optional[RequestOptions] = None) -> GetSnippetOut:
|
171
|
-
"""
|
172
|
-
Parameters
|
173
|
-
----------
|
174
|
-
id : str
|
175
|
-
|
176
|
-
request_options : typing.Optional[RequestOptions]
|
177
|
-
Request-specific configuration.
|
178
|
-
|
179
|
-
Returns
|
180
|
-
-------
|
181
|
-
GetSnippetOut
|
182
|
-
Successful Response
|
183
|
-
|
184
|
-
Examples
|
185
|
-
--------
|
186
|
-
from athena.client import AsyncAthena
|
187
|
-
|
188
|
-
client = AsyncAthena(
|
189
|
-
api_key="YOUR_API_KEY",
|
190
|
-
)
|
191
|
-
await client.snippet.get_by_id(
|
192
|
-
id="snippet_02329f1b-f6ad-4e93-be84-355c33202024b",
|
193
|
-
)
|
194
|
-
"""
|
195
|
-
_response = await self._client_wrapper.httpx_client.request(
|
196
|
-
"api/v0/snippet", method="POST", json={"id": id}, request_options=request_options, omit=OMIT
|
197
|
-
)
|
198
|
-
if 200 <= _response.status_code < 300:
|
199
|
-
return pydantic_v1.parse_obj_as(GetSnippetOut, _response.json()) # type: ignore
|
200
|
-
if _response.status_code == 422:
|
201
|
-
raise UnprocessableEntityError(
|
202
|
-
pydantic_v1.parse_obj_as(HttpValidationError, _response.json()) # type: ignore
|
203
|
-
)
|
204
|
-
try:
|
205
|
-
_response_json = _response.json()
|
206
|
-
except JSONDecodeError:
|
207
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
208
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class AthenaDocumentV2Out(pydantic_v1.BaseModel):
|
11
|
-
output: typing.Dict[str, typing.Any]
|
12
|
-
|
13
|
-
def json(self, **kwargs: typing.Any) -> str:
|
14
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
15
|
-
return super().json(**kwargs_with_defaults)
|
16
|
-
|
17
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
18
|
-
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
19
|
-
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
|
20
|
-
|
21
|
-
return deep_union_pydantic_dicts(
|
22
|
-
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
|
23
|
-
)
|
24
|
-
|
25
|
-
class Config:
|
26
|
-
frozen = True
|
27
|
-
smart_union = True
|
28
|
-
extra = pydantic_v1.Extra.allow
|
29
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class ConvertPdfToSheetOut(pydantic_v1.BaseModel):
|
11
|
-
document_id: str
|
12
|
-
new_document_id: str
|
13
|
-
|
14
|
-
def json(self, **kwargs: typing.Any) -> str:
|
15
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
16
|
-
return super().json(**kwargs_with_defaults)
|
17
|
-
|
18
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
19
|
-
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
20
|
-
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
|
21
|
-
|
22
|
-
return deep_union_pydantic_dicts(
|
23
|
-
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
|
24
|
-
)
|
25
|
-
|
26
|
-
class Config:
|
27
|
-
frozen = True
|
28
|
-
smart_union = True
|
29
|
-
extra = pydantic_v1.Extra.allow
|
30
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/dataset.py
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class Dataset(pydantic_v1.BaseModel):
|
11
|
-
id: str
|
12
|
-
name: typing.Optional[str] = None
|
13
|
-
description: typing.Optional[str] = None
|
14
|
-
database_id: int
|
15
|
-
schema_details: typing.Optional[str] = None
|
16
|
-
|
17
|
-
def json(self, **kwargs: typing.Any) -> str:
|
18
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
19
|
-
return super().json(**kwargs_with_defaults)
|
20
|
-
|
21
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
22
|
-
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
-
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
|
24
|
-
|
25
|
-
return deep_union_pydantic_dicts(
|
26
|
-
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
|
27
|
-
)
|
28
|
-
|
29
|
-
class Config:
|
30
|
-
frozen = True
|
31
|
-
smart_union = True
|
32
|
-
extra = pydantic_v1.Extra.allow
|
33
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/document.py
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class Document(pydantic_v1.BaseModel):
|
11
|
-
"""
|
12
|
-
Class for storing a piece of text and associated metadata.
|
13
|
-
|
14
|
-
Example:
|
15
|
-
|
16
|
-
.. code-block:: python
|
17
|
-
|
18
|
-
from langchain_core.documents import Document
|
19
|
-
|
20
|
-
document = Document(
|
21
|
-
page_content="Hello, world!",
|
22
|
-
metadata={"source": "https://example.com"}
|
23
|
-
)
|
24
|
-
"""
|
25
|
-
|
26
|
-
id: typing.Optional[str] = None
|
27
|
-
metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
|
28
|
-
page_content: str
|
29
|
-
type: typing.Optional[typing.Literal["Document"]] = None
|
30
|
-
|
31
|
-
def json(self, **kwargs: typing.Any) -> str:
|
32
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
33
|
-
return super().json(**kwargs_with_defaults)
|
34
|
-
|
35
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
36
|
-
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
37
|
-
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
|
38
|
-
|
39
|
-
return deep_union_pydantic_dicts(
|
40
|
-
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
|
41
|
-
)
|
42
|
-
|
43
|
-
class Config:
|
44
|
-
frozen = True
|
45
|
-
smart_union = True
|
46
|
-
extra = pydantic_v1.Extra.allow
|
47
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class ExcecuteToolFirstWorkflowOut(pydantic_v1.BaseModel):
|
11
|
-
output_message: str
|
12
|
-
|
13
|
-
def json(self, **kwargs: typing.Any) -> str:
|
14
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
15
|
-
return super().json(**kwargs_with_defaults)
|
16
|
-
|
17
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
18
|
-
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
19
|
-
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
|
20
|
-
|
21
|
-
return deep_union_pydantic_dicts(
|
22
|
-
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
|
23
|
-
)
|
24
|
-
|
25
|
-
class Config:
|
26
|
-
frozen = True
|
27
|
-
smart_union = True
|
28
|
-
extra = pydantic_v1.Extra.allow
|
29
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class FileDataResponse(pydantic_v1.BaseModel):
|
11
|
-
file: typing.Optional[str] = None
|
12
|
-
size: typing.Optional[int] = None
|
13
|
-
filename: typing.Optional[str] = None
|
14
|
-
content_type: typing.Optional[str] = None
|
15
|
-
status: typing.Optional[bool] = None
|
16
|
-
error: typing.Optional[str] = None
|
17
|
-
message: typing.Optional[str] = None
|
18
|
-
athena_doc_id: typing.Optional[str] = None
|
19
|
-
|
20
|
-
def json(self, **kwargs: typing.Any) -> str:
|
21
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
22
|
-
return super().json(**kwargs_with_defaults)
|
23
|
-
|
24
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
25
|
-
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
-
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
|
27
|
-
|
28
|
-
return deep_union_pydantic_dicts(
|
29
|
-
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
|
30
|
-
)
|
31
|
-
|
32
|
-
class Config:
|
33
|
-
frozen = True
|
34
|
-
smart_union = True
|
35
|
-
extra = pydantic_v1.Extra.allow
|
36
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/filter_model.py
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
|
-
from .filter_operator import FilterOperator
|
9
|
-
|
10
|
-
|
11
|
-
class FilterModel(pydantic_v1.BaseModel):
|
12
|
-
dimension: str
|
13
|
-
operator: FilterOperator
|
14
|
-
values: typing.List[str]
|
15
|
-
|
16
|
-
def json(self, **kwargs: typing.Any) -> str:
|
17
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
18
|
-
return super().json(**kwargs_with_defaults)
|
19
|
-
|
20
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
21
|
-
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
22
|
-
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}
|
23
|
-
|
24
|
-
return deep_union_pydantic_dicts(
|
25
|
-
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
|
26
|
-
)
|
27
|
-
|
28
|
-
class Config:
|
29
|
-
frozen = True
|
30
|
-
smart_union = True
|
31
|
-
extra = pydantic_v1.Extra.allow
|
32
|
-
json_encoders = {dt.datetime: serialize_datetime}
|