athena-intelligence 0.1.217__py3-none-any.whl → 0.1.218__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of athena-intelligence might be problematic. Click here for more details.
- athena/__init__.py +4 -0
- athena/core/client_wrapper.py +2 -2
- athena/types/__init__.py +4 -0
- athena/types/aop_execute_response_out.py +6 -5
- athena/types/conversation_message.py +41 -0
- athena/types/conversation_result.py +67 -0
- {athena_intelligence-0.1.217.dist-info → athena_intelligence-0.1.218.dist-info}/METADATA +1 -1
- {athena_intelligence-0.1.217.dist-info → athena_intelligence-0.1.218.dist-info}/RECORD +9 -7
- {athena_intelligence-0.1.217.dist-info → athena_intelligence-0.1.218.dist-info}/WHEEL +0 -0
athena/__init__.py
CHANGED
|
@@ -18,6 +18,8 @@ from .types import (
|
|
|
18
18
|
ChunkResultChunkId,
|
|
19
19
|
Content,
|
|
20
20
|
ConversationAssetInfo,
|
|
21
|
+
ConversationMessage,
|
|
22
|
+
ConversationResult,
|
|
21
23
|
CreateNewSheetTabResponse,
|
|
22
24
|
CustomAgentResponse,
|
|
23
25
|
DataFrameRequestOut,
|
|
@@ -92,6 +94,8 @@ __all__ = [
|
|
|
92
94
|
"Content",
|
|
93
95
|
"ContentTooLargeError",
|
|
94
96
|
"ConversationAssetInfo",
|
|
97
|
+
"ConversationMessage",
|
|
98
|
+
"ConversationResult",
|
|
95
99
|
"CreateNewSheetTabResponse",
|
|
96
100
|
"CustomAgentResponse",
|
|
97
101
|
"DataFrameRequestOut",
|
athena/core/client_wrapper.py
CHANGED
|
@@ -22,10 +22,10 @@ class BaseClientWrapper:
|
|
|
22
22
|
|
|
23
23
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
24
24
|
headers: typing.Dict[str, str] = {
|
|
25
|
-
"User-Agent": "athena-intelligence/0.1.
|
|
25
|
+
"User-Agent": "athena-intelligence/0.1.218",
|
|
26
26
|
"X-Fern-Language": "Python",
|
|
27
27
|
"X-Fern-SDK-Name": "athena-intelligence",
|
|
28
|
-
"X-Fern-SDK-Version": "0.1.
|
|
28
|
+
"X-Fern-SDK-Version": "0.1.218",
|
|
29
29
|
**(self.get_custom_headers() or {}),
|
|
30
30
|
}
|
|
31
31
|
headers["X-API-KEY"] = self.api_key
|
athena/types/__init__.py
CHANGED
|
@@ -15,6 +15,8 @@ from .chunk_result import ChunkResult
|
|
|
15
15
|
from .chunk_result_chunk_id import ChunkResultChunkId
|
|
16
16
|
from .content import Content
|
|
17
17
|
from .conversation_asset_info import ConversationAssetInfo
|
|
18
|
+
from .conversation_message import ConversationMessage
|
|
19
|
+
from .conversation_result import ConversationResult
|
|
18
20
|
from .create_new_sheet_tab_response import CreateNewSheetTabResponse
|
|
19
21
|
from .custom_agent_response import CustomAgentResponse
|
|
20
22
|
from .data_frame_request_out import DataFrameRequestOut
|
|
@@ -70,6 +72,8 @@ __all__ = [
|
|
|
70
72
|
"ChunkResultChunkId",
|
|
71
73
|
"Content",
|
|
72
74
|
"ConversationAssetInfo",
|
|
75
|
+
"ConversationMessage",
|
|
76
|
+
"ConversationResult",
|
|
73
77
|
"CreateNewSheetTabResponse",
|
|
74
78
|
"CustomAgentResponse",
|
|
75
79
|
"DataFrameRequestOut",
|
|
@@ -4,6 +4,7 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .conversation_result import ConversationResult
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class AopExecuteResponseOut(UniversalBaseModel):
|
|
@@ -31,6 +32,11 @@ class AopExecuteResponseOut(UniversalBaseModel):
|
|
|
31
32
|
Base prompt of the AOP before user inputs were added
|
|
32
33
|
"""
|
|
33
34
|
|
|
35
|
+
conversation: ConversationResult = pydantic.Field()
|
|
36
|
+
"""
|
|
37
|
+
The conversation result from the AOP execution
|
|
38
|
+
"""
|
|
39
|
+
|
|
34
40
|
enabled_tools: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
|
35
41
|
"""
|
|
36
42
|
List of tools that were enabled for this execution
|
|
@@ -41,11 +47,6 @@ class AopExecuteResponseOut(UniversalBaseModel):
|
|
|
41
47
|
Final prompt used for execution including user inputs
|
|
42
48
|
"""
|
|
43
49
|
|
|
44
|
-
response: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field()
|
|
45
|
-
"""
|
|
46
|
-
The execution response from the AOP
|
|
47
|
-
"""
|
|
48
|
-
|
|
49
50
|
status: str = pydantic.Field()
|
|
50
51
|
"""
|
|
51
52
|
Status of the execution (e.g., 'submitted')
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ConversationMessage(UniversalBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Model representing a single message in the conversation.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
additional_kwargs: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
Additional message metadata
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
content: str = pydantic.Field()
|
|
20
|
+
"""
|
|
21
|
+
Content of the message
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
id: str = pydantic.Field()
|
|
25
|
+
"""
|
|
26
|
+
Unique identifier for the message
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
role: str = pydantic.Field()
|
|
30
|
+
"""
|
|
31
|
+
Role of the message sender (e.g., 'user', 'assistant')
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
if IS_PYDANTIC_V2:
|
|
35
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
36
|
+
else:
|
|
37
|
+
|
|
38
|
+
class Config:
|
|
39
|
+
frozen = True
|
|
40
|
+
smart_union = True
|
|
41
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .conversation_message import ConversationMessage
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ConversationResult(UniversalBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
Model representing the conversation result from AOP execution.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
conversation_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
16
|
+
"""
|
|
17
|
+
ID of the conversation asset
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
created_at: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
ISO timestamp when conversation was created
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
last_assistant_message: typing.Optional[ConversationMessage] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
The last message from the assistant
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
messages: typing.List[ConversationMessage] = pydantic.Field()
|
|
31
|
+
"""
|
|
32
|
+
Complete list of messages in the conversation
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
messages_source: str = pydantic.Field()
|
|
36
|
+
"""
|
|
37
|
+
Source of the messages (e.g., 'checkpoints')
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
|
|
41
|
+
"""
|
|
42
|
+
Additional conversation metadata
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
num_messages: int = pydantic.Field()
|
|
46
|
+
"""
|
|
47
|
+
Total number of messages in the conversation
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
51
|
+
"""
|
|
52
|
+
Title of the conversation
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
updated_at: typing.Optional[str] = pydantic.Field(default=None)
|
|
56
|
+
"""
|
|
57
|
+
ISO timestamp when conversation was last updated
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
if IS_PYDANTIC_V2:
|
|
61
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
62
|
+
else:
|
|
63
|
+
|
|
64
|
+
class Config:
|
|
65
|
+
frozen = True
|
|
66
|
+
smart_union = True
|
|
67
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
athena/__init__.py,sha256=
|
|
1
|
+
athena/__init__.py,sha256=nq2ST9gHq2d-VArwva_gmuTIhjweYS38muxDxPi5Qbw,3839
|
|
2
2
|
athena/agents/__init__.py,sha256=dg7IOwE6-BQSx20JEhdc1VDHlbIHPy08x5fuww_Tvko,180
|
|
3
3
|
athena/agents/client.py,sha256=A70jdG6spqLkPriU8-NCn0vOJvdc5f4SKoVZLOebZjQ,5975
|
|
4
4
|
athena/agents/drive/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
@@ -24,7 +24,7 @@ athena/base_client.py,sha256=9OfmXHlNIFE_4Udzxn0Ue-H-sC2ps0AIm8ZRyuaDwXA,6738
|
|
|
24
24
|
athena/client.py,sha256=lK3vVU3TF3YjPpiohpxcuRl8x_sSw8HmQ-uuDDeAT6I,22161
|
|
25
25
|
athena/core/__init__.py,sha256=lTcqUPXcx4112yLDd70RAPeqq6tu3eFMe1pKOqkW9JQ,1562
|
|
26
26
|
athena/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
27
|
-
athena/core/client_wrapper.py,sha256=
|
|
27
|
+
athena/core/client_wrapper.py,sha256=cCT6LafzaetZcLGnZb9Dk5l93-T0eyaTqUsXUT1CxfI,2392
|
|
28
28
|
athena/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
29
29
|
athena/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
30
30
|
athena/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
|
|
@@ -76,10 +76,10 @@ athena/tools/tasks/client.py,sha256=c_YZ7OjQNJmPKbeeXJznXj3zo5CRFSv02dLupAdHAyo,
|
|
|
76
76
|
athena/tools/tasks/raw_client.py,sha256=Mexzuf_HcRXWNlESDGQkHHv5tC2tAo-AX3PBSuSRO3U,3812
|
|
77
77
|
athena/tools/types/__init__.py,sha256=ZI6REilQ0Xuocjd8iyNVfLvOsA2Ltlb8--px07wRSPg,217
|
|
78
78
|
athena/tools/types/tools_data_frame_request_columns_item.py,sha256=GA1FUlTV_CfSc-KToTAwFf4Exl0rr4fsweVZupztjw0,138
|
|
79
|
-
athena/types/__init__.py,sha256=
|
|
79
|
+
athena/types/__init__.py,sha256=Tj5HNQv2HgwkikuAF3x3VwCORu0y2datS54XlbTWjso,4393
|
|
80
80
|
athena/types/aop_async_execute_response_out.py,sha256=R3oy0RLyD-t4MQCnp3Ll13Ci3D5JUMhPyuetbhrONNs,1798
|
|
81
81
|
athena/types/aop_execute_request_in.py,sha256=mEsMKyNN6e90gZra733lJDC6z0bZWdc72af3B-Z5aqE,889
|
|
82
|
-
athena/types/aop_execute_response_out.py,sha256=
|
|
82
|
+
athena/types/aop_execute_response_out.py,sha256=ZRsVi8Ho0l2nBKUyE1uP-4F14FMuuLeap1SZGeVk8NI,1856
|
|
83
83
|
athena/types/asset_content_request_out.py,sha256=RYlcY6j6Ju5EQL7UquDwyTe7uqxyuO8Bg8LCsv1YiUE,652
|
|
84
84
|
athena/types/asset_node.py,sha256=3l7CUK2c_h4QT8ktSq0rFP9veF9G_V9mNe3NZlGl-xQ,804
|
|
85
85
|
athena/types/asset_not_found_error.py,sha256=lIQpdTXCgbXRs21XCMhd_kB7fR6Y6Ep112mK4rejNx0,528
|
|
@@ -90,6 +90,8 @@ athena/types/chunk_result.py,sha256=hgrS4hMeuwTRpJ2YrMdrW_QWWWUQ82iYVVTuhFWm1X0,
|
|
|
90
90
|
athena/types/chunk_result_chunk_id.py,sha256=pzJ6yL6NdUtseoeU4Kw2jlxSTMCVew2TrjhR1MbCuFg,124
|
|
91
91
|
athena/types/content.py,sha256=sSPPkZkHZgA_rO6UyTnR2QBK5mOqUz2pZ--B86r5584,211
|
|
92
92
|
athena/types/conversation_asset_info.py,sha256=SVGd4po14Tlzr8eGjB8UWdQofV8rGEuIhrwGFJ0IHxQ,2844
|
|
93
|
+
athena/types/conversation_message.py,sha256=iH5m0YASJkdmxSUyKPd_d9NRKDxCFVZ7nlkClBoF8IE,1030
|
|
94
|
+
athena/types/conversation_result.py,sha256=IY06B71I46CHoKyzmL-ebYRIr2qrZejt8nDC-bTlKCE,1817
|
|
93
95
|
athena/types/create_new_sheet_tab_response.py,sha256=RF8iOL3mkSc3pY0pqQhvw9IdnncxDC_-XdSUhqPODsM,892
|
|
94
96
|
athena/types/custom_agent_response.py,sha256=hzw1s7mcCI9V58l5OqK4Q59AGF_NctSx5scjJeVWckk,684
|
|
95
97
|
athena/types/data_frame_request_out.py,sha256=wyVIEEI6mqSoH6SyXTQpzLCJOWwsAlUvG9iAVlNuNOU,1076
|
|
@@ -125,6 +127,6 @@ athena/types/text_content.py,sha256=tcVCPj3tHh5zQcTElr2tdCIjjfx3ZI63rKIlaG8vo64,
|
|
|
125
127
|
athena/types/thread_status_response_out.py,sha256=UuSAvs9woL1i8RwvVRKsFUufN4A9jO3jsV47YMckvQU,1219
|
|
126
128
|
athena/types/type.py,sha256=Gvs56nvBMPcQpOZkfPocGNNb7S05PuINianbT309QAQ,146
|
|
127
129
|
athena/version.py,sha256=tnXYUugs9zF_pkVdem-QBorKSuhEOOuetkR57dADDxE,86
|
|
128
|
-
athena_intelligence-0.1.
|
|
129
|
-
athena_intelligence-0.1.
|
|
130
|
-
athena_intelligence-0.1.
|
|
130
|
+
athena_intelligence-0.1.218.dist-info/METADATA,sha256=DoE9TfLg5U6j6mrRVPtFd4Iffr-sQT3t1egRJ5acQHY,5440
|
|
131
|
+
athena_intelligence-0.1.218.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
132
|
+
athena_intelligence-0.1.218.dist-info/RECORD,,
|
|
File without changes
|