athena-intelligence 0.1.90__py3-none-any.whl → 0.1.92__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/chain/client.py CHANGED
@@ -124,8 +124,8 @@ class ChainClient:
124
124
  client.chain.map_reduce_chain(
125
125
  documents=[
126
126
  Document(
127
- page_content="Athena is an AI-native analytics platform and artificial employee built to accelerate analytics workflows by offering enterprise teams co-pilot and auto-pilot modes. Athena learns your workflow as a co-pilot, allowing you to hand over controls to her for autonomous execution with confidence.",
128
127
  metadata={"key": "value"},
128
+ page_content="Athena is an AI-native analytics platform and artificial employee built to accelerate analytics workflows by offering enterprise teams co-pilot and auto-pilot modes. Athena learns your workflow as a co-pilot, allowing you to hand over controls to her for autonomous execution with confidence.",
129
129
  )
130
130
  ],
131
131
  model=LlmModel.MISTRAL_LARGE_0224,
@@ -266,8 +266,8 @@ class AsyncChainClient:
266
266
  await client.chain.map_reduce_chain(
267
267
  documents=[
268
268
  Document(
269
- page_content="Athena is an AI-native analytics platform and artificial employee built to accelerate analytics workflows by offering enterprise teams co-pilot and auto-pilot modes. Athena learns your workflow as a co-pilot, allowing you to hand over controls to her for autonomous execution with confidence.",
270
269
  metadata={"key": "value"},
270
+ page_content="Athena is an AI-native analytics platform and artificial employee built to accelerate analytics workflows by offering enterprise teams co-pilot and auto-pilot modes. Athena learns your workflow as a co-pilot, allowing you to hand over controls to her for autonomous execution with confidence.",
271
271
  )
272
272
  ],
273
273
  model=LlmModel.MISTRAL_LARGE_0224,
@@ -17,7 +17,7 @@ class BaseClientWrapper:
17
17
  headers: typing.Dict[str, str] = {
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "athena-intelligence",
20
- "X-Fern-SDK-Version": "0.1.90",
20
+ "X-Fern-SDK-Version": "0.1.92",
21
21
  }
22
22
  headers["X-API-KEY"] = self.api_key
23
23
  return headers
athena/types/document.py CHANGED
@@ -10,10 +10,22 @@ from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
10
10
  class Document(pydantic_v1.BaseModel):
11
11
  """
12
12
  Class for storing a piece of text and associated metadata.
13
+
14
+ Example:
15
+
16
+ .. code-block:: python
17
+
18
+ from langchain_core.documents import Document
19
+
20
+ document = Document(
21
+ page_content="Hello, world!",
22
+ metadata={"source": "https://example.com"}
23
+ )
13
24
  """
14
25
 
15
- page_content: str
26
+ id: typing.Optional[str] = None
16
27
  metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
28
+ page_content: str
17
29
  type: typing.Optional[typing.Literal["Document"]] = None
18
30
 
19
31
  def json(self, **kwargs: typing.Any) -> str:
athena/types/llm_model.py CHANGED
@@ -16,6 +16,7 @@ class LlmModel(str, enum.Enum):
16
16
  GPT_4_TURBO_PREVIEW = "gpt-4-turbo-preview"
17
17
  GPT_4_O_MINI = "gpt-4o-mini"
18
18
  GPT_4_O = "gpt-4o"
19
+ GPT_4_O_20240806 = "gpt-4o-2024-08-06"
19
20
  GPT_4 = "gpt-4"
20
21
  MIXTRAL_SMALL_8_X_7_B_0211 = "mixtral-small-8x7b-0211"
21
22
  MISTRAL_LARGE_0224 = "mistral-large-0224"
@@ -49,6 +50,7 @@ class LlmModel(str, enum.Enum):
49
50
  gpt_4_turbo_preview: typing.Callable[[], T_Result],
50
51
  gpt_4_o_mini: typing.Callable[[], T_Result],
51
52
  gpt_4_o: typing.Callable[[], T_Result],
53
+ gpt_4_o_20240806: typing.Callable[[], T_Result],
52
54
  gpt_4: typing.Callable[[], T_Result],
53
55
  mixtral_small_8_x_7_b_0211: typing.Callable[[], T_Result],
54
56
  mistral_large_0224: typing.Callable[[], T_Result],
@@ -85,6 +87,8 @@ class LlmModel(str, enum.Enum):
85
87
  return gpt_4_o_mini()
86
88
  if self is LlmModel.GPT_4_O:
87
89
  return gpt_4_o()
90
+ if self is LlmModel.GPT_4_O_20240806:
91
+ return gpt_4_o_20240806()
88
92
  if self is LlmModel.GPT_4:
89
93
  return gpt_4()
90
94
  if self is LlmModel.MIXTRAL_SMALL_8_X_7_B_0211:
athena/types/model.py CHANGED
@@ -17,6 +17,7 @@ class Model(str, enum.Enum):
17
17
  GPT_4 = "gpt-4"
18
18
  GPT_4_O = "gpt-4o"
19
19
  GPT_4_O_MINI = "gpt-4o-mini"
20
+ GPT_4_O_20240806 = "gpt-4o-2024-08-06"
20
21
  MIXTRAL_SMALL_8_X_7_B_0211 = "mixtral-small-8x7b-0211"
21
22
  MISTRAL_LARGE_0224 = "mistral-large-0224"
22
23
  MIXTRAL_8_X_22_B_INSTRUCT = "mixtral-8x22b-instruct"
@@ -38,6 +39,7 @@ class Model(str, enum.Enum):
38
39
  gpt_4: typing.Callable[[], T_Result],
39
40
  gpt_4_o: typing.Callable[[], T_Result],
40
41
  gpt_4_o_mini: typing.Callable[[], T_Result],
42
+ gpt_4_o_20240806: typing.Callable[[], T_Result],
41
43
  mixtral_small_8_x_7_b_0211: typing.Callable[[], T_Result],
42
44
  mistral_large_0224: typing.Callable[[], T_Result],
43
45
  mixtral_8_x_22_b_instruct: typing.Callable[[], T_Result],
@@ -63,6 +65,8 @@ class Model(str, enum.Enum):
63
65
  return gpt_4_o()
64
66
  if self is Model.GPT_4_O_MINI:
65
67
  return gpt_4_o_mini()
68
+ if self is Model.GPT_4_O_20240806:
69
+ return gpt_4_o_20240806()
66
70
  if self is Model.MIXTRAL_SMALL_8_X_7_B_0211:
67
71
  return mixtral_small_8_x_7_b_0211()
68
72
  if self is Model.MISTRAL_LARGE_0224:
athena/types/tools.py CHANGED
@@ -20,6 +20,7 @@ class Tools(str, enum.Enum):
20
20
  ENRICH_PERSON = "enrich_person"
21
21
  ENRICH_COMPANY = "enrich_company"
22
22
  BROWSERBASE = "browserbase"
23
+ CODE_EXECUTION = "code_execution"
23
24
 
24
25
  def visit(
25
26
  self,
@@ -32,6 +33,7 @@ class Tools(str, enum.Enum):
32
33
  enrich_person: typing.Callable[[], T_Result],
33
34
  enrich_company: typing.Callable[[], T_Result],
34
35
  browserbase: typing.Callable[[], T_Result],
36
+ code_execution: typing.Callable[[], T_Result],
35
37
  ) -> T_Result:
36
38
  if self is Tools.SEARCH:
37
39
  return search()
@@ -51,3 +53,5 @@ class Tools(str, enum.Enum):
51
53
  return enrich_company()
52
54
  if self is Tools.BROWSERBASE:
53
55
  return browserbase()
56
+ if self is Tools.CODE_EXECUTION:
57
+ return code_execution()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: athena-intelligence
3
- Version: 0.1.90
3
+ Version: 0.1.92
4
4
  Summary: Athena Intelligence Python Library
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,11 +1,11 @@
1
1
  athena/__init__.py,sha256=vS1F7G3hdiHGM-q24LBoKf77EHpaDBrb3ZzM_sgXoGY,2801
2
2
  athena/base_client.py,sha256=yP2dIc8ja04pFizBx5xF4qhkeOPJ3V9DMfqYcW5HIGg,7119
3
3
  athena/chain/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
4
- athena/chain/client.py,sha256=5YJJsXnXLFbPN1y0Qe__QWoQ2QOMp6zK_is_obk7Gg8,11105
4
+ athena/chain/client.py,sha256=lM0hdPC-JatI_o09NvGVBLi906V_XUwQ4Tb_FKrSAgk,11105
5
5
  athena/client.py,sha256=piHOo-a8KiuQnBCsJ509zSRahXd6DCaxkzaqqTbNWME,9680
6
6
  athena/core/__init__.py,sha256=UFXpYzcGxWQUucU1TkjOQ9mGWN3A5JohluOIWVYKU4I,973
7
7
  athena/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
8
- athena/core/client_wrapper.py,sha256=ADV3_Uf4JxBw9Vczm9GQW32We6mpjtI9ahr081hxo6g,1805
8
+ athena/core/client_wrapper.py,sha256=8NlNy6mCnsYvDhUh7mTSpgHKoIK7qdTu7q45J2Oyj2A,1805
9
9
  athena/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
10
10
  athena/core/file.py,sha256=sy1RUGZ3aJYuw998bZytxxo6QdgKmlnlgBaMvwEKCGg,1480
11
11
  athena/core/http_client.py,sha256=Z4NuAsJD-51yqmoME17O5sxwx5orSp1wsnd6bPyKcgA,17768
@@ -48,7 +48,7 @@ athena/types/data_frame_request_out_data_item_item.py,sha256=KMTJRr-1bdKDNMbUeri
48
48
  athena/types/data_frame_request_out_index_item.py,sha256=bW7oe912trpkYKodj-I_AiTXXy61yWzliekcsUZkZE0,141
49
49
  athena/types/data_frame_unknown_format_error.py,sha256=g6Q-TJ9sbtYRuDhgy7fBv_vbQawtil5AIRX0IlU8U4E,1171
50
50
  athena/types/dataset.py,sha256=7uxfEhuHSk63SWyJO8pvxuFr-s6QR_tQvJdp5XUZP4Q,1257
51
- athena/types/document.py,sha256=XGeQXtpMwM3VUH9b5m_mormocKlIy8VAAXSi6OgQNbs,1324
51
+ athena/types/document.py,sha256=HF_Cn04RvbKTD6gQws78AJyS1k1KUK98xvlpXujUewQ,1618
52
52
  athena/types/excecute_tool_first_workflow_out.py,sha256=F0tkk2uEXNZaVeKPIxA68Mdwy__VcUjfVQVs_8dv_dk,1138
53
53
  athena/types/file_data_response.py,sha256=3BNJCDo4VL6q9ksp2jDOkAP_Sp6e6eCsRjqyWGnqSa0,1434
54
54
  athena/types/file_fetch_error.py,sha256=iR7IXjj2C4lJFcWV3aS2gfhmT3CE-_hhBDSWFaCktHU,1162
@@ -61,11 +61,11 @@ athena/types/get_snippet_out.py,sha256=Dcy2rZhie8_X41r4lmE5W2R5Jd9L2GnDKJv39emKU
61
61
  athena/types/get_snippets_response.py,sha256=c7xxCp71lAxXjuKMavXAUw91UXAJGLSoWnGkqWfbuO0,1232
62
62
  athena/types/http_validation_error.py,sha256=ZuVHc-T6RFEo7_qBO8DWHa2jGJ6O--tUIZynmLFezsI,1216
63
63
  athena/types/langchain_documents_request_out.py,sha256=UUcByVZb6SVwhTtAScRey1FROpZitHEPsamAkdLbuhI,1155
64
- athena/types/llm_model.py,sha256=kGCC7WEAe-Lq7r6kiXhy5UCn6vdSdb7ydbq5gIjeye0,6666
64
+ athena/types/llm_model.py,sha256=TnJnS1zT1xr0u2ht-uVlMyLLDDivpnwmEIY_stFAgbk,6850
65
65
  athena/types/map_reduce_chain_out.py,sha256=p9rN21wMZaki_rpd1Z_0DM4tvlDdYG8gHE2Xg4TEAvE,1213
66
66
  athena/types/message_out.py,sha256=Jli5sJBAtwOgkZjpx28kVHfBRoBLuINyNTm_9AXPuys,1108
67
67
  athena/types/message_out_dto.py,sha256=iELbR1DZBrlSshzIdfpZ3ZR2V1fzAzVw4aprxcfzg38,1294
68
- athena/types/model.py,sha256=2dpNftSHkrgeUl-00Zk3UZ1tSkeygOfimHFDu5mc3ek,3746
68
+ athena/types/model.py,sha256=cK7bI1QdJrm6rO_nfQurDMojwucuYEOKpqSW8LWC15Y,3927
69
69
  athena/types/publish_formats.py,sha256=1j2fgJo0MMaHzEEYxd9uCFq_Y7bFoQox0JgKCfcPXLo,1148
70
70
  athena/types/query_model.py,sha256=F-HSvgcTys4hA3e7sYas_71APMZmAu_LOKqWVZ0-Jx4,1684
71
71
  athena/types/report.py,sha256=Yr_Ph7BS-2QgMJ3az5GP_fwlRMl6i4-1MGWYcLPSPhY,1189
@@ -76,7 +76,7 @@ athena/types/sql_results.py,sha256=ikxHio7BRnWqNIwdoZcoVOf3Un64Kn9qLAHiIjOVwiQ,1
76
76
  athena/types/status_enum.py,sha256=0UZbhdAx215GHC-U53RS98mYHtn1N3On4VBe4j02Qtc,672
77
77
  athena/types/structured_parse_result.py,sha256=BFjA9R20kTdiRaPpQd7tEmLuSCO9ux1SF7rDziq61nY,1148
78
78
  athena/types/time_dimension_model.py,sha256=Kp-s5Xd05JIyLzGG8X9eop5e0P3yi0S1bygW4BXApKI,1294
79
- athena/types/tools.py,sha256=W0ekZrKpwlf66HJC7kGLWYJE3C1agJRnmMbvfA4M93o,1577
79
+ athena/types/tools.py,sha256=OrWzaeeBEVk2qsttuRNaStPq7XhRuitydA1oJVqJqPE,1747
80
80
  athena/types/upload_documents_out.py,sha256=NObG9duFoIyCTPggNs_arCkNybEvlsmEFNkeGTcHH3s,1249
81
81
  athena/types/url_result.py,sha256=y_77BhRPQM7a1ugJpDHNDbNv1e2T79Evm9y-0Y4wrr8,1136
82
82
  athena/types/validation_error.py,sha256=zub9I6bl192KHCE8RA0pEkdaEODR3ktTFnZ7E1B7Eco,1235
@@ -87,6 +87,6 @@ athena/upload/client.py,sha256=Z44mBN3Vg_HG4uOqrzBkkNhCGETjsAlbU1RA50KDxkQ,3897
87
87
  athena/version.py,sha256=8aYAOJtVLaJLpRp6mTiEIhnl8gXA7yE0aDtZ-3mKQ4k,87
88
88
  athena/workflow/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
89
89
  athena/workflow/client.py,sha256=1WGH4MCnwae5Wgb7pGfiyZRr--HscVpdHxeouNSyPe0,4023
90
- athena_intelligence-0.1.90.dist-info/METADATA,sha256=0GdM4W4QOMBcDGBM97xrlEDacHScr7tDV2WgXEcwVFc,5273
91
- athena_intelligence-0.1.90.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
92
- athena_intelligence-0.1.90.dist-info/RECORD,,
90
+ athena_intelligence-0.1.92.dist-info/METADATA,sha256=VEY1PlfFI-gaJHq5Jriomvzm1YgPmmJbuRSSKwhLtOw,5273
91
+ athena_intelligence-0.1.92.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
92
+ athena_intelligence-0.1.92.dist-info/RECORD,,