athena-intelligence 0.1.7__py3-none-any.whl → 0.1.8__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 -265
- athena/core/client_wrapper.py +1 -1
- athena/types/__init__.py +0 -270
- {athena_intelligence-0.1.7.dist-info → athena_intelligence-0.1.8.dist-info}/METADATA +1 -1
- athena_intelligence-0.1.8.dist-info/RECORD +28 -0
- athena/types/agent_chat_request.py +0 -31
- athena/types/agent_chat_request_wait.py +0 -28
- athena/types/ai_message.py +0 -35
- athena/types/ai_message_content_item.py +0 -5
- athena/types/api_message_submitted.py +0 -36
- athena/types/append_final_msg_tokens_request.py +0 -29
- athena/types/append_msg_tokens_request.py +0 -29
- athena/types/attachment.py +0 -32
- athena/types/audio_request.py +0 -29
- athena/types/base_message.py +0 -37
- athena/types/base_message_content_item.py +0 -5
- athena/types/batch_response_metadata.py +0 -33
- athena/types/callback_event.py +0 -142
- athena/types/callbacks.py +0 -5
- athena/types/chart_request.py +0 -31
- athena/types/chat_fireworks_input.py +0 -9
- athena/types/chat_fireworks_input_item.py +0 -76
- athena/types/chat_fireworks_output.py +0 -76
- athena/types/chat_generation.py +0 -35
- athena/types/chat_message.py +0 -35
- athena/types/chat_message_content_item.py +0 -5
- athena/types/chat_open_ai_input.py +0 -9
- athena/types/chat_open_ai_input_item.py +0 -76
- athena/types/chat_open_ai_output.py +0 -76
- athena/types/chat_prompt_value_concrete.py +0 -35
- athena/types/chat_prompt_value_concrete_messages_item.py +0 -76
- athena/types/content.py +0 -7
- athena/types/create_room_request.py +0 -28
- athena/types/delete_room_request.py +0 -28
- athena/types/document.py +0 -34
- athena/types/document_webhook_payload.py +0 -33
- athena/types/email_data.py +0 -40
- athena/types/envelope.py +0 -38
- athena/types/error.py +0 -34
- athena/types/forecast_request.py +0 -31
- athena/types/function_message.py +0 -35
- athena/types/function_message_content_item.py +0 -5
- athena/types/generate_conversation_title_request.py +0 -29
- athena/types/generate_recommendation_request.py +0 -33
- athena/types/generation.py +0 -33
- athena/types/headers.py +0 -41
- athena/types/human_message.py +0 -35
- athena/types/human_message_content_item.py +0 -5
- athena/types/interpret_sweep_job_request.py +0 -30
- athena/types/jamsocket_create_request.py +0 -28
- athena/types/json_output_parser_output.py +0 -5
- athena/types/llm_result.py +0 -38
- athena/types/llm_result_generations_item_item.py +0 -31
- athena/types/markdown_to_csv_request.py +0 -28
- athena/types/on_chain_end.py +0 -36
- athena/types/on_chain_error.py +0 -37
- athena/types/on_chain_start.py +0 -38
- athena/types/on_chat_model_start.py +0 -39
- athena/types/on_llm_end.py +0 -37
- athena/types/on_llm_start.py +0 -38
- athena/types/on_retriever_end.py +0 -37
- athena/types/on_retriever_error.py +0 -37
- athena/types/on_retriever_start.py +0 -38
- athena/types/on_tool_end.py +0 -36
- athena/types/on_tool_error.py +0 -37
- athena/types/on_tool_start.py +0 -38
- athena/types/presigned_url_request.py +0 -28
- athena/types/prompt_input.py +0 -28
- athena/types/query_tool_request.py +0 -31
- athena/types/report_details_request.py +0 -28
- athena/types/room_request.py +0 -28
- athena/types/run_info.py +0 -32
- athena/types/runnable_config.py +0 -35
- athena/types/singleton_response_metadata.py +0 -33
- athena/types/spf.py +0 -29
- athena/types/sql_execution_request.py +0 -30
- athena/types/sql_fix_request.py +0 -32
- athena/types/sql_glot_request.py +0 -28
- athena/types/sql_request.py +0 -31
- athena/types/sql_sync_execution_request.py +0 -30
- athena/types/stream_request.py +0 -34
- athena/types/string_prompt_value.py +0 -33
- athena/types/system_message.py +0 -35
- athena/types/system_message_content_item.py +0 -5
- athena/types/tool_message.py +0 -35
- athena/types/tool_message_content_item.py +0 -5
- athena/types/uploader_request.py +0 -33
- athena/types/uploader_request_if_exists.py +0 -25
- athena/types/user_message_submitted.py +0 -38
- athena_intelligence-0.1.7.dist-info/RECORD +0 -112
- {athena_intelligence-0.1.7.dist-info → athena_intelligence-0.1.8.dist-info}/WHEEL +0 -0
athena/types/on_tool_end.py
DELETED
@@ -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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class OnToolEnd(pydantic.BaseModel):
|
15
|
-
"""
|
16
|
-
On Tool End Callback Event.
|
17
|
-
"""
|
18
|
-
|
19
|
-
output: str
|
20
|
-
run_id: str
|
21
|
-
parent_run_id: typing.Optional[str] = None
|
22
|
-
tags: typing.Optional[typing.List[str]] = None
|
23
|
-
kwargs: typing.Optional[typing.Any] = None
|
24
|
-
|
25
|
-
def json(self, **kwargs: typing.Any) -> str:
|
26
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
27
|
-
return super().json(**kwargs_with_defaults)
|
28
|
-
|
29
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
30
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
31
|
-
return super().dict(**kwargs_with_defaults)
|
32
|
-
|
33
|
-
class Config:
|
34
|
-
frozen = True
|
35
|
-
smart_union = True
|
36
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/on_tool_error.py
DELETED
@@ -1,37 +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 .error import Error
|
8
|
-
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
|
-
|
14
|
-
|
15
|
-
class OnToolError(pydantic.BaseModel):
|
16
|
-
"""
|
17
|
-
On Tool Error Callback Event.
|
18
|
-
"""
|
19
|
-
|
20
|
-
error: Error
|
21
|
-
run_id: str
|
22
|
-
parent_run_id: typing.Optional[str] = None
|
23
|
-
tags: typing.Optional[typing.List[str]] = None
|
24
|
-
kwargs: typing.Optional[typing.Any] = None
|
25
|
-
|
26
|
-
def json(self, **kwargs: typing.Any) -> str:
|
27
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
-
return super().json(**kwargs_with_defaults)
|
29
|
-
|
30
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
31
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
32
|
-
return super().dict(**kwargs_with_defaults)
|
33
|
-
|
34
|
-
class Config:
|
35
|
-
frozen = True
|
36
|
-
smart_union = True
|
37
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/on_tool_start.py
DELETED
@@ -1,38 +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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class OnToolStart(pydantic.BaseModel):
|
15
|
-
"""
|
16
|
-
On Tool Start Callback Event.
|
17
|
-
"""
|
18
|
-
|
19
|
-
serialized: typing.Dict[str, typing.Any]
|
20
|
-
input_str: str
|
21
|
-
run_id: str
|
22
|
-
parent_run_id: typing.Optional[str] = None
|
23
|
-
tags: typing.Optional[typing.List[str]] = None
|
24
|
-
metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
|
25
|
-
kwargs: typing.Optional[typing.Any] = None
|
26
|
-
|
27
|
-
def json(self, **kwargs: typing.Any) -> str:
|
28
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
29
|
-
return super().json(**kwargs_with_defaults)
|
30
|
-
|
31
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
32
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
33
|
-
return super().dict(**kwargs_with_defaults)
|
34
|
-
|
35
|
-
class Config:
|
36
|
-
frozen = True
|
37
|
-
smart_union = True
|
38
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,28 +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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class PresignedUrlRequest(pydantic.BaseModel):
|
15
|
-
file_url: str
|
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: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
-
return super().dict(**kwargs_with_defaults)
|
24
|
-
|
25
|
-
class Config:
|
26
|
-
frozen = True
|
27
|
-
smart_union = True
|
28
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/prompt_input.py
DELETED
@@ -1,28 +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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class PromptInput(pydantic.BaseModel):
|
15
|
-
user_input: 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: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
-
return super().dict(**kwargs_with_defaults)
|
24
|
-
|
25
|
-
class Config:
|
26
|
-
frozen = True
|
27
|
-
smart_union = True
|
28
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,31 +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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class QueryToolRequest(pydantic.BaseModel):
|
15
|
-
question: str
|
16
|
-
workspace_id: str
|
17
|
-
sdataset_ids: typing.List[str]
|
18
|
-
model: 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: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
-
return super().dict(**kwargs_with_defaults)
|
27
|
-
|
28
|
-
class Config:
|
29
|
-
frozen = True
|
30
|
-
smart_union = True
|
31
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,28 +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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class ReportDetailsRequest(pydantic.BaseModel):
|
15
|
-
report_id: str
|
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: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
-
return super().dict(**kwargs_with_defaults)
|
24
|
-
|
25
|
-
class Config:
|
26
|
-
frozen = True
|
27
|
-
smart_union = True
|
28
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/room_request.py
DELETED
@@ -1,28 +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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class RoomRequest(pydantic.BaseModel):
|
15
|
-
room_id: str
|
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: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
-
return super().dict(**kwargs_with_defaults)
|
24
|
-
|
25
|
-
class Config:
|
26
|
-
frozen = True
|
27
|
-
smart_union = True
|
28
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/run_info.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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class RunInfo(pydantic.BaseModel):
|
15
|
-
"""
|
16
|
-
Class that contains metadata for a single execution of a Chain or model.
|
17
|
-
"""
|
18
|
-
|
19
|
-
run_id: str
|
20
|
-
|
21
|
-
def json(self, **kwargs: typing.Any) -> str:
|
22
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
-
return super().json(**kwargs_with_defaults)
|
24
|
-
|
25
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
26
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
27
|
-
return super().dict(**kwargs_with_defaults)
|
28
|
-
|
29
|
-
class Config:
|
30
|
-
frozen = True
|
31
|
-
smart_union = True
|
32
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/runnable_config.py
DELETED
@@ -1,35 +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 .callbacks import Callbacks
|
8
|
-
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
|
-
|
14
|
-
|
15
|
-
class RunnableConfig(pydantic.BaseModel):
|
16
|
-
tags: typing.Optional[typing.List[str]] = None
|
17
|
-
metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
|
18
|
-
callbacks: typing.Optional[Callbacks] = None
|
19
|
-
run_name: typing.Optional[str] = None
|
20
|
-
max_concurrency: typing.Optional[int] = None
|
21
|
-
recursion_limit: typing.Optional[int] = None
|
22
|
-
configurable: typing.Optional[typing.Dict[str, typing.Any]] = None
|
23
|
-
|
24
|
-
def json(self, **kwargs: typing.Any) -> str:
|
25
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
-
return super().json(**kwargs_with_defaults)
|
27
|
-
|
28
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
29
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
30
|
-
return super().dict(**kwargs_with_defaults)
|
31
|
-
|
32
|
-
class Config:
|
33
|
-
frozen = True
|
34
|
-
smart_union = True
|
35
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class SingletonResponseMetadata(pydantic.BaseModel):
|
15
|
-
"""
|
16
|
-
Represents response metadata used for just single input/output LangServe
|
17
|
-
responses.
|
18
|
-
"""
|
19
|
-
|
20
|
-
run_id: str
|
21
|
-
|
22
|
-
def json(self, **kwargs: typing.Any) -> str:
|
23
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
-
return super().json(**kwargs_with_defaults)
|
25
|
-
|
26
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
-
return super().dict(**kwargs_with_defaults)
|
29
|
-
|
30
|
-
class Config:
|
31
|
-
frozen = True
|
32
|
-
smart_union = True
|
33
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/spf.py
DELETED
@@ -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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class Spf(pydantic.BaseModel):
|
15
|
-
result: typing.Optional[str] = None
|
16
|
-
domain: typing.Optional[str] = None
|
17
|
-
|
18
|
-
def json(self, **kwargs: typing.Any) -> str:
|
19
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
20
|
-
return super().json(**kwargs_with_defaults)
|
21
|
-
|
22
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
23
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
-
return super().dict(**kwargs_with_defaults)
|
25
|
-
|
26
|
-
class Config:
|
27
|
-
frozen = True
|
28
|
-
smart_union = True
|
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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class SqlExecutionRequest(pydantic.BaseModel):
|
15
|
-
sql_command: str
|
16
|
-
workspace_id: str
|
17
|
-
sdataset_ids: typing.List[str]
|
18
|
-
|
19
|
-
def json(self, **kwargs: typing.Any) -> str:
|
20
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
21
|
-
return super().json(**kwargs_with_defaults)
|
22
|
-
|
23
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
24
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
-
return super().dict(**kwargs_with_defaults)
|
26
|
-
|
27
|
-
class Config:
|
28
|
-
frozen = True
|
29
|
-
smart_union = True
|
30
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/sql_fix_request.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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class SqlFixRequest(pydantic.BaseModel):
|
15
|
-
user_query: str
|
16
|
-
original_sql_query: str
|
17
|
-
error_msg: str
|
18
|
-
dialect: typing.Optional[str] = None
|
19
|
-
model: typing.Optional[str] = None
|
20
|
-
|
21
|
-
def json(self, **kwargs: typing.Any) -> str:
|
22
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
-
return super().json(**kwargs_with_defaults)
|
24
|
-
|
25
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
26
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
27
|
-
return super().dict(**kwargs_with_defaults)
|
28
|
-
|
29
|
-
class Config:
|
30
|
-
frozen = True
|
31
|
-
smart_union = True
|
32
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/sql_glot_request.py
DELETED
@@ -1,28 +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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class SqlGlotRequest(pydantic.BaseModel):
|
15
|
-
sql_command: str
|
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: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
-
return super().dict(**kwargs_with_defaults)
|
24
|
-
|
25
|
-
class Config:
|
26
|
-
frozen = True
|
27
|
-
smart_union = True
|
28
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/sql_request.py
DELETED
@@ -1,31 +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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class SqlRequest(pydantic.BaseModel):
|
15
|
-
question: str
|
16
|
-
workspace_id: str
|
17
|
-
sdataset_ids: typing.List[str]
|
18
|
-
model: 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: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
-
return super().dict(**kwargs_with_defaults)
|
27
|
-
|
28
|
-
class Config:
|
29
|
-
frozen = True
|
30
|
-
smart_union = True
|
31
|
-
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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class SqlSyncExecutionRequest(pydantic.BaseModel):
|
15
|
-
sql_command: str
|
16
|
-
superset_db_id: int
|
17
|
-
query_limit: typing.Optional[int] = None
|
18
|
-
|
19
|
-
def json(self, **kwargs: typing.Any) -> str:
|
20
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
21
|
-
return super().json(**kwargs_with_defaults)
|
22
|
-
|
23
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
24
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
-
return super().dict(**kwargs_with_defaults)
|
26
|
-
|
27
|
-
class Config:
|
28
|
-
frozen = True
|
29
|
-
smart_union = True
|
30
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/stream_request.py
DELETED
@@ -1,34 +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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class StreamRequest(pydantic.BaseModel):
|
15
|
-
"""
|
16
|
-
Request body for streaming.
|
17
|
-
"""
|
18
|
-
|
19
|
-
message: str
|
20
|
-
base_64_image: typing.Optional[str] = pydantic.Field(alias="base64_image", default=None)
|
21
|
-
|
22
|
-
def json(self, **kwargs: typing.Any) -> str:
|
23
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
-
return super().json(**kwargs_with_defaults)
|
25
|
-
|
26
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
-
return super().dict(**kwargs_with_defaults)
|
29
|
-
|
30
|
-
class Config:
|
31
|
-
frozen = True
|
32
|
-
smart_union = True
|
33
|
-
allow_population_by_field_name = True
|
34
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -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
|
-
|
8
|
-
try:
|
9
|
-
import pydantic.v1 as pydantic # type: ignore
|
10
|
-
except ImportError:
|
11
|
-
import pydantic # type: ignore
|
12
|
-
|
13
|
-
|
14
|
-
class StringPromptValue(pydantic.BaseModel):
|
15
|
-
"""
|
16
|
-
String prompt value.
|
17
|
-
"""
|
18
|
-
|
19
|
-
text: str
|
20
|
-
type: typing.Optional[typing.Literal["StringPromptValue"]] = None
|
21
|
-
|
22
|
-
def json(self, **kwargs: typing.Any) -> str:
|
23
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
-
return super().json(**kwargs_with_defaults)
|
25
|
-
|
26
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
-
return super().dict(**kwargs_with_defaults)
|
29
|
-
|
30
|
-
class Config:
|
31
|
-
frozen = True
|
32
|
-
smart_union = True
|
33
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/system_message.py
DELETED
@@ -1,35 +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 .content import Content
|
8
|
-
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
|
-
|
14
|
-
|
15
|
-
class SystemMessage(pydantic.BaseModel):
|
16
|
-
"""
|
17
|
-
A Message for priming AI behavior, usually passed in as the first of a sequence
|
18
|
-
of input messages.
|
19
|
-
"""
|
20
|
-
|
21
|
-
content: Content
|
22
|
-
additional_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = None
|
23
|
-
|
24
|
-
def json(self, **kwargs: typing.Any) -> str:
|
25
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
-
return super().json(**kwargs_with_defaults)
|
27
|
-
|
28
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
29
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
30
|
-
return super().dict(**kwargs_with_defaults)
|
31
|
-
|
32
|
-
class Config:
|
33
|
-
frozen = True
|
34
|
-
smart_union = True
|
35
|
-
json_encoders = {dt.datetime: serialize_datetime}
|