athena-intelligence 0.1.7__py3-none-any.whl → 0.1.9__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 +2 -266
- athena/client.py +1 -1
- athena/core/client_wrapper.py +1 -1
- athena/{resources/message → message}/client.py +11 -11
- athena/types/__init__.py +0 -270
- {athena_intelligence-0.1.7.dist-info → athena_intelligence-0.1.9.dist-info}/METADATA +1 -1
- athena_intelligence-0.1.9.dist-info/RECORD +27 -0
- athena/resources/__init__.py +0 -5
- 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/{resources/message → message}/__init__.py +0 -0
- {athena_intelligence-0.1.7.dist-info → athena_intelligence-0.1.9.dist-info}/WHEEL +0 -0
athena/types/chat_generation.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 .base_message import BaseMessage
|
8
|
-
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
|
-
|
14
|
-
|
15
|
-
class ChatGeneration(pydantic.BaseModel):
|
16
|
-
"""
|
17
|
-
A single chat generation output.
|
18
|
-
"""
|
19
|
-
|
20
|
-
text: typing.Optional[str] = None
|
21
|
-
generation_info: typing.Optional[typing.Dict[str, typing.Any]] = None
|
22
|
-
message: BaseMessage
|
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}
|
athena/types/chat_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 ChatMessage(pydantic.BaseModel):
|
16
|
-
"""
|
17
|
-
A Message that can be assigned an arbitrary speaker (i.e. role).
|
18
|
-
"""
|
19
|
-
|
20
|
-
content: Content
|
21
|
-
additional_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = None
|
22
|
-
role: str
|
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,9 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import typing
|
4
|
-
|
5
|
-
from .chat_open_ai_input_item import ChatOpenAiInputItem
|
6
|
-
from .chat_prompt_value_concrete import ChatPromptValueConcrete
|
7
|
-
from .string_prompt_value import StringPromptValue
|
8
|
-
|
9
|
-
ChatOpenAiInput = typing.Union[str, StringPromptValue, ChatPromptValueConcrete, typing.List[ChatOpenAiInputItem]]
|
@@ -1,76 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
import typing
|
6
|
-
|
7
|
-
from .ai_message import AiMessage
|
8
|
-
from .chat_message import ChatMessage
|
9
|
-
from .function_message import FunctionMessage
|
10
|
-
from .human_message import HumanMessage
|
11
|
-
from .system_message import SystemMessage
|
12
|
-
from .tool_message import ToolMessage
|
13
|
-
|
14
|
-
|
15
|
-
class ChatOpenAiInputItem_Ai(AiMessage):
|
16
|
-
type: typing.Literal["ai"]
|
17
|
-
|
18
|
-
class Config:
|
19
|
-
frozen = True
|
20
|
-
smart_union = True
|
21
|
-
allow_population_by_field_name = True
|
22
|
-
|
23
|
-
|
24
|
-
class ChatOpenAiInputItem_Human(HumanMessage):
|
25
|
-
type: typing.Literal["human"]
|
26
|
-
|
27
|
-
class Config:
|
28
|
-
frozen = True
|
29
|
-
smart_union = True
|
30
|
-
allow_population_by_field_name = True
|
31
|
-
|
32
|
-
|
33
|
-
class ChatOpenAiInputItem_Chat(ChatMessage):
|
34
|
-
type: typing.Literal["chat"]
|
35
|
-
|
36
|
-
class Config:
|
37
|
-
frozen = True
|
38
|
-
smart_union = True
|
39
|
-
allow_population_by_field_name = True
|
40
|
-
|
41
|
-
|
42
|
-
class ChatOpenAiInputItem_System(SystemMessage):
|
43
|
-
type: typing.Literal["system"]
|
44
|
-
|
45
|
-
class Config:
|
46
|
-
frozen = True
|
47
|
-
smart_union = True
|
48
|
-
allow_population_by_field_name = True
|
49
|
-
|
50
|
-
|
51
|
-
class ChatOpenAiInputItem_Function(FunctionMessage):
|
52
|
-
type: typing.Literal["function"]
|
53
|
-
|
54
|
-
class Config:
|
55
|
-
frozen = True
|
56
|
-
smart_union = True
|
57
|
-
allow_population_by_field_name = True
|
58
|
-
|
59
|
-
|
60
|
-
class ChatOpenAiInputItem_Tool(ToolMessage):
|
61
|
-
type: typing.Literal["tool"]
|
62
|
-
|
63
|
-
class Config:
|
64
|
-
frozen = True
|
65
|
-
smart_union = True
|
66
|
-
allow_population_by_field_name = True
|
67
|
-
|
68
|
-
|
69
|
-
ChatOpenAiInputItem = typing.Union[
|
70
|
-
ChatOpenAiInputItem_Ai,
|
71
|
-
ChatOpenAiInputItem_Human,
|
72
|
-
ChatOpenAiInputItem_Chat,
|
73
|
-
ChatOpenAiInputItem_System,
|
74
|
-
ChatOpenAiInputItem_Function,
|
75
|
-
ChatOpenAiInputItem_Tool,
|
76
|
-
]
|
@@ -1,76 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
import typing
|
6
|
-
|
7
|
-
from .ai_message import AiMessage
|
8
|
-
from .chat_message import ChatMessage
|
9
|
-
from .function_message import FunctionMessage
|
10
|
-
from .human_message import HumanMessage
|
11
|
-
from .system_message import SystemMessage
|
12
|
-
from .tool_message import ToolMessage
|
13
|
-
|
14
|
-
|
15
|
-
class ChatOpenAiOutput_Ai(AiMessage):
|
16
|
-
type: typing.Literal["ai"]
|
17
|
-
|
18
|
-
class Config:
|
19
|
-
frozen = True
|
20
|
-
smart_union = True
|
21
|
-
allow_population_by_field_name = True
|
22
|
-
|
23
|
-
|
24
|
-
class ChatOpenAiOutput_Human(HumanMessage):
|
25
|
-
type: typing.Literal["human"]
|
26
|
-
|
27
|
-
class Config:
|
28
|
-
frozen = True
|
29
|
-
smart_union = True
|
30
|
-
allow_population_by_field_name = True
|
31
|
-
|
32
|
-
|
33
|
-
class ChatOpenAiOutput_Chat(ChatMessage):
|
34
|
-
type: typing.Literal["chat"]
|
35
|
-
|
36
|
-
class Config:
|
37
|
-
frozen = True
|
38
|
-
smart_union = True
|
39
|
-
allow_population_by_field_name = True
|
40
|
-
|
41
|
-
|
42
|
-
class ChatOpenAiOutput_System(SystemMessage):
|
43
|
-
type: typing.Literal["system"]
|
44
|
-
|
45
|
-
class Config:
|
46
|
-
frozen = True
|
47
|
-
smart_union = True
|
48
|
-
allow_population_by_field_name = True
|
49
|
-
|
50
|
-
|
51
|
-
class ChatOpenAiOutput_Function(FunctionMessage):
|
52
|
-
type: typing.Literal["function"]
|
53
|
-
|
54
|
-
class Config:
|
55
|
-
frozen = True
|
56
|
-
smart_union = True
|
57
|
-
allow_population_by_field_name = True
|
58
|
-
|
59
|
-
|
60
|
-
class ChatOpenAiOutput_Tool(ToolMessage):
|
61
|
-
type: typing.Literal["tool"]
|
62
|
-
|
63
|
-
class Config:
|
64
|
-
frozen = True
|
65
|
-
smart_union = True
|
66
|
-
allow_population_by_field_name = True
|
67
|
-
|
68
|
-
|
69
|
-
ChatOpenAiOutput = typing.Union[
|
70
|
-
ChatOpenAiOutput_Ai,
|
71
|
-
ChatOpenAiOutput_Human,
|
72
|
-
ChatOpenAiOutput_Chat,
|
73
|
-
ChatOpenAiOutput_System,
|
74
|
-
ChatOpenAiOutput_Function,
|
75
|
-
ChatOpenAiOutput_Tool,
|
76
|
-
]
|
@@ -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 .chat_prompt_value_concrete_messages_item import ChatPromptValueConcreteMessagesItem
|
8
|
-
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
|
-
|
14
|
-
|
15
|
-
class ChatPromptValueConcrete(pydantic.BaseModel):
|
16
|
-
"""
|
17
|
-
Chat prompt value which explicitly lists out the message types it accepts.
|
18
|
-
For use in external schemas.
|
19
|
-
"""
|
20
|
-
|
21
|
-
messages: typing.List[ChatPromptValueConcreteMessagesItem]
|
22
|
-
type: typing.Optional[typing.Literal["ChatPromptValueConcrete"]] = 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,76 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
import typing
|
6
|
-
|
7
|
-
from .ai_message import AiMessage
|
8
|
-
from .chat_message import ChatMessage
|
9
|
-
from .function_message import FunctionMessage
|
10
|
-
from .human_message import HumanMessage
|
11
|
-
from .system_message import SystemMessage
|
12
|
-
from .tool_message import ToolMessage
|
13
|
-
|
14
|
-
|
15
|
-
class ChatPromptValueConcreteMessagesItem_Ai(AiMessage):
|
16
|
-
type: typing.Literal["ai"]
|
17
|
-
|
18
|
-
class Config:
|
19
|
-
frozen = True
|
20
|
-
smart_union = True
|
21
|
-
allow_population_by_field_name = True
|
22
|
-
|
23
|
-
|
24
|
-
class ChatPromptValueConcreteMessagesItem_Human(HumanMessage):
|
25
|
-
type: typing.Literal["human"]
|
26
|
-
|
27
|
-
class Config:
|
28
|
-
frozen = True
|
29
|
-
smart_union = True
|
30
|
-
allow_population_by_field_name = True
|
31
|
-
|
32
|
-
|
33
|
-
class ChatPromptValueConcreteMessagesItem_Chat(ChatMessage):
|
34
|
-
type: typing.Literal["chat"]
|
35
|
-
|
36
|
-
class Config:
|
37
|
-
frozen = True
|
38
|
-
smart_union = True
|
39
|
-
allow_population_by_field_name = True
|
40
|
-
|
41
|
-
|
42
|
-
class ChatPromptValueConcreteMessagesItem_System(SystemMessage):
|
43
|
-
type: typing.Literal["system"]
|
44
|
-
|
45
|
-
class Config:
|
46
|
-
frozen = True
|
47
|
-
smart_union = True
|
48
|
-
allow_population_by_field_name = True
|
49
|
-
|
50
|
-
|
51
|
-
class ChatPromptValueConcreteMessagesItem_Function(FunctionMessage):
|
52
|
-
type: typing.Literal["function"]
|
53
|
-
|
54
|
-
class Config:
|
55
|
-
frozen = True
|
56
|
-
smart_union = True
|
57
|
-
allow_population_by_field_name = True
|
58
|
-
|
59
|
-
|
60
|
-
class ChatPromptValueConcreteMessagesItem_Tool(ToolMessage):
|
61
|
-
type: typing.Literal["tool"]
|
62
|
-
|
63
|
-
class Config:
|
64
|
-
frozen = True
|
65
|
-
smart_union = True
|
66
|
-
allow_population_by_field_name = True
|
67
|
-
|
68
|
-
|
69
|
-
ChatPromptValueConcreteMessagesItem = typing.Union[
|
70
|
-
ChatPromptValueConcreteMessagesItem_Ai,
|
71
|
-
ChatPromptValueConcreteMessagesItem_Human,
|
72
|
-
ChatPromptValueConcreteMessagesItem_Chat,
|
73
|
-
ChatPromptValueConcreteMessagesItem_System,
|
74
|
-
ChatPromptValueConcreteMessagesItem_Function,
|
75
|
-
ChatPromptValueConcreteMessagesItem_Tool,
|
76
|
-
]
|
athena/types/content.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 CreateRoomRequest(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}
|
@@ -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 DeleteRoomRequest(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/document.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 Document(pydantic.BaseModel):
|
15
|
-
"""
|
16
|
-
Class for storing a piece of text and associated metadata.
|
17
|
-
"""
|
18
|
-
|
19
|
-
page_content: str
|
20
|
-
metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
|
21
|
-
type: typing.Optional[typing.Literal["Document"]] = None
|
22
|
-
|
23
|
-
def json(self, **kwargs: typing.Any) -> str:
|
24
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
-
return super().json(**kwargs_with_defaults)
|
26
|
-
|
27
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
28
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
29
|
-
return super().dict(**kwargs_with_defaults)
|
30
|
-
|
31
|
-
class Config:
|
32
|
-
frozen = True
|
33
|
-
smart_union = 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 DocumentWebhookPayload(pydantic.BaseModel):
|
15
|
-
app_name: str = pydantic.Field(alias="appName")
|
16
|
-
name: str
|
17
|
-
time: str
|
18
|
-
tiptap_json: typing.Dict[str, typing.Any] = pydantic.Field(alias="tiptapJson")
|
19
|
-
clients_count: int = pydantic.Field(alias="clientsCount")
|
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
|
-
allow_population_by_field_name = True
|
33
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/email_data.py
DELETED
@@ -1,40 +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 .attachment import Attachment
|
8
|
-
from .envelope import Envelope
|
9
|
-
from .headers import Headers
|
10
|
-
|
11
|
-
try:
|
12
|
-
import pydantic.v1 as pydantic # type: ignore
|
13
|
-
except ImportError:
|
14
|
-
import pydantic # type: ignore
|
15
|
-
|
16
|
-
|
17
|
-
class EmailData(pydantic.BaseModel):
|
18
|
-
"""
|
19
|
-
Email model.
|
20
|
-
"""
|
21
|
-
|
22
|
-
headers: typing.Optional[Headers] = None
|
23
|
-
envelope: typing.Optional[Envelope] = None
|
24
|
-
plain: typing.Optional[str] = None
|
25
|
-
html: typing.Optional[str] = None
|
26
|
-
reply_plain: typing.Optional[str] = None
|
27
|
-
attachments: typing.Optional[typing.List[Attachment]] = None
|
28
|
-
|
29
|
-
def json(self, **kwargs: typing.Any) -> str:
|
30
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
31
|
-
return super().json(**kwargs_with_defaults)
|
32
|
-
|
33
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
34
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
35
|
-
return super().dict(**kwargs_with_defaults)
|
36
|
-
|
37
|
-
class Config:
|
38
|
-
frozen = True
|
39
|
-
smart_union = True
|
40
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/envelope.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
|
-
from .spf import Spf
|
8
|
-
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
|
-
|
14
|
-
|
15
|
-
class Envelope(pydantic.BaseModel):
|
16
|
-
to: typing.Optional[str] = None
|
17
|
-
from_: typing.Optional[str] = pydantic.Field(alias="from", default=None)
|
18
|
-
helo_domain: typing.Optional[str] = None
|
19
|
-
remote_ip: typing.Optional[str] = None
|
20
|
-
recipients: typing.Optional[typing.List[str]] = None
|
21
|
-
tls: typing.Optional[bool] = None
|
22
|
-
tls_cipher: typing.Optional[str] = None
|
23
|
-
md_5: typing.Optional[str] = pydantic.Field(alias="md5", default=None)
|
24
|
-
spf: typing.Optional[Spf] = 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
|
-
allow_population_by_field_name = True
|
38
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/error.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 Error(pydantic.BaseModel):
|
15
|
-
"""
|
16
|
-
Error object that is modeled after an HTTP error format.
|
17
|
-
"""
|
18
|
-
|
19
|
-
status_code: int
|
20
|
-
message: str
|
21
|
-
type: typing.Optional[typing.Literal["error"]] = None
|
22
|
-
|
23
|
-
def json(self, **kwargs: typing.Any) -> str:
|
24
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
-
return super().json(**kwargs_with_defaults)
|
26
|
-
|
27
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
28
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
29
|
-
return super().dict(**kwargs_with_defaults)
|
30
|
-
|
31
|
-
class Config:
|
32
|
-
frozen = True
|
33
|
-
smart_union = True
|
34
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
athena/types/forecast_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 ForecastRequest(pydantic.BaseModel):
|
15
|
-
historical: typing.List[typing.Dict[str, typing.Any]]
|
16
|
-
forecast_horizon: int
|
17
|
-
confidence_level: typing.Optional[typing.List[int]] = None
|
18
|
-
freq: 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}
|
athena/types/function_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 FunctionMessage(pydantic.BaseModel):
|
16
|
-
"""
|
17
|
-
A Message for passing the result of executing a function back to a model.
|
18
|
-
"""
|
19
|
-
|
20
|
-
content: Content
|
21
|
-
additional_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = None
|
22
|
-
name: str
|
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}
|