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.
Files changed (95) hide show
  1. athena/__init__.py +2 -266
  2. athena/client.py +1 -1
  3. athena/core/client_wrapper.py +1 -1
  4. athena/{resources/message → message}/client.py +11 -11
  5. athena/types/__init__.py +0 -270
  6. {athena_intelligence-0.1.7.dist-info → athena_intelligence-0.1.9.dist-info}/METADATA +1 -1
  7. athena_intelligence-0.1.9.dist-info/RECORD +27 -0
  8. athena/resources/__init__.py +0 -5
  9. athena/types/agent_chat_request.py +0 -31
  10. athena/types/agent_chat_request_wait.py +0 -28
  11. athena/types/ai_message.py +0 -35
  12. athena/types/ai_message_content_item.py +0 -5
  13. athena/types/api_message_submitted.py +0 -36
  14. athena/types/append_final_msg_tokens_request.py +0 -29
  15. athena/types/append_msg_tokens_request.py +0 -29
  16. athena/types/attachment.py +0 -32
  17. athena/types/audio_request.py +0 -29
  18. athena/types/base_message.py +0 -37
  19. athena/types/base_message_content_item.py +0 -5
  20. athena/types/batch_response_metadata.py +0 -33
  21. athena/types/callback_event.py +0 -142
  22. athena/types/callbacks.py +0 -5
  23. athena/types/chart_request.py +0 -31
  24. athena/types/chat_fireworks_input.py +0 -9
  25. athena/types/chat_fireworks_input_item.py +0 -76
  26. athena/types/chat_fireworks_output.py +0 -76
  27. athena/types/chat_generation.py +0 -35
  28. athena/types/chat_message.py +0 -35
  29. athena/types/chat_message_content_item.py +0 -5
  30. athena/types/chat_open_ai_input.py +0 -9
  31. athena/types/chat_open_ai_input_item.py +0 -76
  32. athena/types/chat_open_ai_output.py +0 -76
  33. athena/types/chat_prompt_value_concrete.py +0 -35
  34. athena/types/chat_prompt_value_concrete_messages_item.py +0 -76
  35. athena/types/content.py +0 -7
  36. athena/types/create_room_request.py +0 -28
  37. athena/types/delete_room_request.py +0 -28
  38. athena/types/document.py +0 -34
  39. athena/types/document_webhook_payload.py +0 -33
  40. athena/types/email_data.py +0 -40
  41. athena/types/envelope.py +0 -38
  42. athena/types/error.py +0 -34
  43. athena/types/forecast_request.py +0 -31
  44. athena/types/function_message.py +0 -35
  45. athena/types/function_message_content_item.py +0 -5
  46. athena/types/generate_conversation_title_request.py +0 -29
  47. athena/types/generate_recommendation_request.py +0 -33
  48. athena/types/generation.py +0 -33
  49. athena/types/headers.py +0 -41
  50. athena/types/human_message.py +0 -35
  51. athena/types/human_message_content_item.py +0 -5
  52. athena/types/interpret_sweep_job_request.py +0 -30
  53. athena/types/jamsocket_create_request.py +0 -28
  54. athena/types/json_output_parser_output.py +0 -5
  55. athena/types/llm_result.py +0 -38
  56. athena/types/llm_result_generations_item_item.py +0 -31
  57. athena/types/markdown_to_csv_request.py +0 -28
  58. athena/types/on_chain_end.py +0 -36
  59. athena/types/on_chain_error.py +0 -37
  60. athena/types/on_chain_start.py +0 -38
  61. athena/types/on_chat_model_start.py +0 -39
  62. athena/types/on_llm_end.py +0 -37
  63. athena/types/on_llm_start.py +0 -38
  64. athena/types/on_retriever_end.py +0 -37
  65. athena/types/on_retriever_error.py +0 -37
  66. athena/types/on_retriever_start.py +0 -38
  67. athena/types/on_tool_end.py +0 -36
  68. athena/types/on_tool_error.py +0 -37
  69. athena/types/on_tool_start.py +0 -38
  70. athena/types/presigned_url_request.py +0 -28
  71. athena/types/prompt_input.py +0 -28
  72. athena/types/query_tool_request.py +0 -31
  73. athena/types/report_details_request.py +0 -28
  74. athena/types/room_request.py +0 -28
  75. athena/types/run_info.py +0 -32
  76. athena/types/runnable_config.py +0 -35
  77. athena/types/singleton_response_metadata.py +0 -33
  78. athena/types/spf.py +0 -29
  79. athena/types/sql_execution_request.py +0 -30
  80. athena/types/sql_fix_request.py +0 -32
  81. athena/types/sql_glot_request.py +0 -28
  82. athena/types/sql_request.py +0 -31
  83. athena/types/sql_sync_execution_request.py +0 -30
  84. athena/types/stream_request.py +0 -34
  85. athena/types/string_prompt_value.py +0 -33
  86. athena/types/system_message.py +0 -35
  87. athena/types/system_message_content_item.py +0 -5
  88. athena/types/tool_message.py +0 -35
  89. athena/types/tool_message_content_item.py +0 -5
  90. athena/types/uploader_request.py +0 -33
  91. athena/types/uploader_request_if_exists.py +0 -25
  92. athena/types/user_message_submitted.py +0 -38
  93. athena_intelligence-0.1.7.dist-info/RECORD +0 -112
  94. /athena/{resources/message → message}/__init__.py +0 -0
  95. {athena_intelligence-0.1.7.dist-info → athena_intelligence-0.1.9.dist-info}/WHEEL +0 -0
@@ -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 AgentChatRequest(pydantic.BaseModel):
15
- user_message: 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 AgentChatRequestWait(pydantic.BaseModel):
15
- seconds: int
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,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 AiMessage(pydantic.BaseModel):
16
- """
17
- A Message from an AI.
18
- """
19
-
20
- content: Content
21
- additional_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = None
22
- example: typing.Optional[bool] = 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,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- AiMessageContentItem = typing.Union[str, typing.Dict[str, typing.Any]]
@@ -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 ApiMessageSubmitted(pydantic.BaseModel):
15
- content: str
16
- conversation_id: typing.Optional[str] = None
17
- sdataset_ids: typing.Optional[typing.List[str]] = None
18
- tools: typing.Optional[typing.List[str]] = None
19
- model: typing.Optional[str] = None
20
- documents: typing.Optional[typing.List[str]] = None
21
- config: typing.Optional[typing.Dict[str, typing.Any]] = None
22
- conversation_name: typing.Optional[str] = None
23
- additional_context: typing.Optional[str] = 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}
@@ -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 AppendFinalMsgTokensRequest(pydantic.BaseModel):
15
- new_tokens: typing.List[str]
16
- msg_id: 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,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 AppendMsgTokensRequest(pydantic.BaseModel):
15
- new_tokens: typing.List[str]
16
- msg_id: 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,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 Attachment(pydantic.BaseModel):
15
- content: typing.Optional[str] = None
16
- file_name: typing.Optional[str] = None
17
- content_type: typing.Optional[str] = None
18
- size: typing.Optional[int] = None
19
- disposition: 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}
@@ -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 AudioRequest(pydantic.BaseModel):
15
- text: str
16
- turbo: typing.Optional[bool] = 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,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 .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 BaseMessage(pydantic.BaseModel):
16
- """
17
- The base abstract Message class.
18
-
19
- Messages are the inputs and outputs of ChatModels.
20
- """
21
-
22
- content: Content
23
- additional_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = None
24
- type: str
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}
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- BaseMessageContentItem = typing.Union[str, typing.Dict[str, typing.Any]]
@@ -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 BatchResponseMetadata(pydantic.BaseModel):
15
- """
16
- Represents response metadata used for batches of input/output LangServe
17
- responses.
18
- """
19
-
20
- run_ids: typing.List[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}
@@ -1,142 +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 .on_chain_end import OnChainEnd
8
- from .on_chain_error import OnChainError
9
- from .on_chain_start import OnChainStart
10
- from .on_chat_model_start import OnChatModelStart
11
- from .on_llm_end import OnLlmEnd
12
- from .on_llm_start import OnLlmStart
13
- from .on_retriever_end import OnRetrieverEnd
14
- from .on_retriever_error import OnRetrieverError
15
- from .on_retriever_start import OnRetrieverStart
16
- from .on_tool_end import OnToolEnd
17
- from .on_tool_error import OnToolError
18
- from .on_tool_start import OnToolStart
19
-
20
-
21
- class CallbackEvent_OnChainStart(OnChainStart):
22
- type: typing.Literal["on_chain_start"]
23
-
24
- class Config:
25
- frozen = True
26
- smart_union = True
27
- allow_population_by_field_name = True
28
-
29
-
30
- class CallbackEvent_OnChainEnd(OnChainEnd):
31
- type: typing.Literal["on_chain_end"]
32
-
33
- class Config:
34
- frozen = True
35
- smart_union = True
36
- allow_population_by_field_name = True
37
-
38
-
39
- class CallbackEvent_OnChainError(OnChainError):
40
- type: typing.Literal["on_chain_error"]
41
-
42
- class Config:
43
- frozen = True
44
- smart_union = True
45
- allow_population_by_field_name = True
46
-
47
-
48
- class CallbackEvent_OnChatModelStart(OnChatModelStart):
49
- type: typing.Literal["on_chat_model_start"]
50
-
51
- class Config:
52
- frozen = True
53
- smart_union = True
54
- allow_population_by_field_name = True
55
-
56
-
57
- class CallbackEvent_OnLlmStart(OnLlmStart):
58
- type: typing.Literal["on_llm_start"]
59
-
60
- class Config:
61
- frozen = True
62
- smart_union = True
63
- allow_population_by_field_name = True
64
-
65
-
66
- class CallbackEvent_OnLlmEnd(OnLlmEnd):
67
- type: typing.Literal["on_llm_end"]
68
-
69
- class Config:
70
- frozen = True
71
- smart_union = True
72
- allow_population_by_field_name = True
73
-
74
-
75
- class CallbackEvent_OnToolStart(OnToolStart):
76
- type: typing.Literal["on_tool_start"]
77
-
78
- class Config:
79
- frozen = True
80
- smart_union = True
81
- allow_population_by_field_name = True
82
-
83
-
84
- class CallbackEvent_OnToolEnd(OnToolEnd):
85
- type: typing.Literal["on_tool_end"]
86
-
87
- class Config:
88
- frozen = True
89
- smart_union = True
90
- allow_population_by_field_name = True
91
-
92
-
93
- class CallbackEvent_OnToolError(OnToolError):
94
- type: typing.Literal["on_tool_error"]
95
-
96
- class Config:
97
- frozen = True
98
- smart_union = True
99
- allow_population_by_field_name = True
100
-
101
-
102
- class CallbackEvent_OnRetrieverStart(OnRetrieverStart):
103
- type: typing.Literal["on_retriever_start"]
104
-
105
- class Config:
106
- frozen = True
107
- smart_union = True
108
- allow_population_by_field_name = True
109
-
110
-
111
- class CallbackEvent_OnRetrieverEnd(OnRetrieverEnd):
112
- type: typing.Literal["on_retriever_end"]
113
-
114
- class Config:
115
- frozen = True
116
- smart_union = True
117
- allow_population_by_field_name = True
118
-
119
-
120
- class CallbackEvent_OnRetrieverError(OnRetrieverError):
121
- type: typing.Literal["on_retriever_error"]
122
-
123
- class Config:
124
- frozen = True
125
- smart_union = True
126
- allow_population_by_field_name = True
127
-
128
-
129
- CallbackEvent = typing.Union[
130
- CallbackEvent_OnChainStart,
131
- CallbackEvent_OnChainEnd,
132
- CallbackEvent_OnChainError,
133
- CallbackEvent_OnChatModelStart,
134
- CallbackEvent_OnLlmStart,
135
- CallbackEvent_OnLlmEnd,
136
- CallbackEvent_OnToolStart,
137
- CallbackEvent_OnToolEnd,
138
- CallbackEvent_OnToolError,
139
- CallbackEvent_OnRetrieverStart,
140
- CallbackEvent_OnRetrieverEnd,
141
- CallbackEvent_OnRetrieverError,
142
- ]
athena/types/callbacks.py DELETED
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- Callbacks = typing.Union[typing.List[typing.Any], typing.Any]
@@ -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 ChartRequest(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,9 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- from .chat_fireworks_input_item import ChatFireworksInputItem
6
- from .chat_prompt_value_concrete import ChatPromptValueConcrete
7
- from .string_prompt_value import StringPromptValue
8
-
9
- ChatFireworksInput = typing.Union[str, StringPromptValue, ChatPromptValueConcrete, typing.List[ChatFireworksInputItem]]
@@ -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 ChatFireworksInputItem_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 ChatFireworksInputItem_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 ChatFireworksInputItem_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 ChatFireworksInputItem_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 ChatFireworksInputItem_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 ChatFireworksInputItem_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
- ChatFireworksInputItem = typing.Union[
70
- ChatFireworksInputItem_Ai,
71
- ChatFireworksInputItem_Human,
72
- ChatFireworksInputItem_Chat,
73
- ChatFireworksInputItem_System,
74
- ChatFireworksInputItem_Function,
75
- ChatFireworksInputItem_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 ChatFireworksOutput_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 ChatFireworksOutput_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 ChatFireworksOutput_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 ChatFireworksOutput_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 ChatFireworksOutput_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 ChatFireworksOutput_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
- ChatFireworksOutput = typing.Union[
70
- ChatFireworksOutput_Ai,
71
- ChatFireworksOutput_Human,
72
- ChatFireworksOutput_Chat,
73
- ChatFireworksOutput_System,
74
- ChatFireworksOutput_Function,
75
- ChatFireworksOutput_Tool,
76
- ]