athena-intelligence 0.1.41__tar.gz → 0.1.42__tar.gz
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_intelligence-0.1.41 → athena_intelligence-0.1.42}/PKG-INFO +1 -1
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/pyproject.toml +1 -1
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/__init__.py +2 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/client_wrapper.py +1 -1
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/tools/client.py +15 -8
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/__init__.py +2 -0
- athena_intelligence-0.1.42/src/athena/types/tool_models.py +49 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/README.md +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/base_client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/chain/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/chain/client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/chain/types/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/chain/types/structured_parse_in_parsing_model.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/api_error.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/datetime_utils.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/file.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/http_client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/jsonable_encoder.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/remove_none_from_dict.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/request_options.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/dataset/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/dataset/client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/environment.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/errors/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/errors/unprocessable_entity_error.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/message/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/message/client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/polling_message_client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/py.typed +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/query/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/query/client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/report/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/report/client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/search/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/search/client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/snippet/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/snippet/client.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/tools/__init__.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/dataset.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/document.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/excecute_tool_first_workflow_out.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/firecrawl_scrape_url_data_reponse_dto.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/firecrawl_scrape_url_metadata.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/get_datasets_response.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/get_snippets_response.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/http_validation_error.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/langchain_documents_request_out.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/message_out.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/message_out_dto.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/model.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/report.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/snippet.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/sql_results.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/status_enum.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/structured_parse_result.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/tools.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/url_result.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/validation_error.py +0 -0
- {athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/validation_error_loc_item.py +0 -0
@@ -18,6 +18,7 @@ from .types import (
|
|
18
18
|
SqlResults,
|
19
19
|
StatusEnum,
|
20
20
|
StructuredParseResult,
|
21
|
+
ToolModels,
|
21
22
|
Tools,
|
22
23
|
UrlResult,
|
23
24
|
ValidationError,
|
@@ -48,6 +49,7 @@ __all__ = [
|
|
48
49
|
"StatusEnum",
|
49
50
|
"StructuredParseInParsingModel",
|
50
51
|
"StructuredParseResult",
|
52
|
+
"ToolModels",
|
51
53
|
"Tools",
|
52
54
|
"UnprocessableEntityError",
|
53
55
|
"UrlResult",
|
@@ -16,7 +16,7 @@ class BaseClientWrapper:
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
17
17
|
"X-Fern-Language": "Python",
|
18
18
|
"X-Fern-SDK-Name": "athena-intelligence",
|
19
|
-
"X-Fern-SDK-Version": "0.1.
|
19
|
+
"X-Fern-SDK-Version": "0.1.42",
|
20
20
|
}
|
21
21
|
headers["X-API-KEY"] = self.api_key
|
22
22
|
return headers
|
@@ -14,6 +14,7 @@ from ..types.excecute_tool_first_workflow_out import ExcecuteToolFirstWorkflowOu
|
|
14
14
|
from ..types.firecrawl_scrape_url_data_reponse_dto import FirecrawlScrapeUrlDataReponseDto
|
15
15
|
from ..types.http_validation_error import HttpValidationError
|
16
16
|
from ..types.langchain_documents_request_out import LangchainDocumentsRequestOut
|
17
|
+
from ..types.tool_models import ToolModels
|
17
18
|
|
18
19
|
try:
|
19
20
|
import pydantic.v1 as pydantic # type: ignore
|
@@ -164,7 +165,7 @@ class ToolsClient:
|
|
164
165
|
def tool_first_workflow(
|
165
166
|
self,
|
166
167
|
*,
|
167
|
-
|
168
|
+
model: typing.Optional[ToolModels] = OMIT,
|
168
169
|
tool_name: str,
|
169
170
|
content: str,
|
170
171
|
tool_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
|
@@ -172,7 +173,7 @@ class ToolsClient:
|
|
172
173
|
) -> ExcecuteToolFirstWorkflowOut:
|
173
174
|
"""
|
174
175
|
Parameters:
|
175
|
-
-
|
176
|
+
- model: typing.Optional[ToolModels].
|
176
177
|
|
177
178
|
- tool_name: str.
|
178
179
|
|
@@ -182,19 +183,22 @@ class ToolsClient:
|
|
182
183
|
|
183
184
|
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
|
184
185
|
---
|
186
|
+
from athena import ToolModels
|
185
187
|
from athena.client import Athena
|
186
188
|
|
187
189
|
client = Athena(
|
188
190
|
api_key="YOUR_API_KEY",
|
189
191
|
)
|
190
192
|
client.tools.tool_first_workflow(
|
191
|
-
|
193
|
+
model=ToolModels.MISTRAL_LARGE_0224,
|
192
194
|
tool_name="tavily_search",
|
193
195
|
content="summarize the website in one paragraph",
|
194
196
|
tool_kwargs={"query": "website: www.athenaintelligence.ai"},
|
195
197
|
)
|
196
198
|
"""
|
197
|
-
_request: typing.Dict[str, typing.Any] = {"
|
199
|
+
_request: typing.Dict[str, typing.Any] = {"tool_name": tool_name, "content": content}
|
200
|
+
if model is not OMIT:
|
201
|
+
_request["model"] = model
|
198
202
|
if tool_kwargs is not OMIT:
|
199
203
|
_request["tool_kwargs"] = tool_kwargs
|
200
204
|
_response = self._client_wrapper.httpx_client.request(
|
@@ -374,7 +378,7 @@ class AsyncToolsClient:
|
|
374
378
|
async def tool_first_workflow(
|
375
379
|
self,
|
376
380
|
*,
|
377
|
-
|
381
|
+
model: typing.Optional[ToolModels] = OMIT,
|
378
382
|
tool_name: str,
|
379
383
|
content: str,
|
380
384
|
tool_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = OMIT,
|
@@ -382,7 +386,7 @@ class AsyncToolsClient:
|
|
382
386
|
) -> ExcecuteToolFirstWorkflowOut:
|
383
387
|
"""
|
384
388
|
Parameters:
|
385
|
-
-
|
389
|
+
- model: typing.Optional[ToolModels].
|
386
390
|
|
387
391
|
- tool_name: str.
|
388
392
|
|
@@ -392,19 +396,22 @@ class AsyncToolsClient:
|
|
392
396
|
|
393
397
|
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
|
394
398
|
---
|
399
|
+
from athena import ToolModels
|
395
400
|
from athena.client import AsyncAthena
|
396
401
|
|
397
402
|
client = AsyncAthena(
|
398
403
|
api_key="YOUR_API_KEY",
|
399
404
|
)
|
400
405
|
await client.tools.tool_first_workflow(
|
401
|
-
|
406
|
+
model=ToolModels.MISTRAL_LARGE_0224,
|
402
407
|
tool_name="tavily_search",
|
403
408
|
content="summarize the website in one paragraph",
|
404
409
|
tool_kwargs={"query": "website: www.athenaintelligence.ai"},
|
405
410
|
)
|
406
411
|
"""
|
407
|
-
_request: typing.Dict[str, typing.Any] = {"
|
412
|
+
_request: typing.Dict[str, typing.Any] = {"tool_name": tool_name, "content": content}
|
413
|
+
if model is not OMIT:
|
414
|
+
_request["model"] = model
|
408
415
|
if tool_kwargs is not OMIT:
|
409
416
|
_request["tool_kwargs"] = tool_kwargs
|
410
417
|
_response = await self._client_wrapper.httpx_client.request(
|
@@ -17,6 +17,7 @@ from .snippet import Snippet
|
|
17
17
|
from .sql_results import SqlResults
|
18
18
|
from .status_enum import StatusEnum
|
19
19
|
from .structured_parse_result import StructuredParseResult
|
20
|
+
from .tool_models import ToolModels
|
20
21
|
from .tools import Tools
|
21
22
|
from .url_result import UrlResult
|
22
23
|
from .validation_error import ValidationError
|
@@ -40,6 +41,7 @@ __all__ = [
|
|
40
41
|
"SqlResults",
|
41
42
|
"StatusEnum",
|
42
43
|
"StructuredParseResult",
|
44
|
+
"ToolModels",
|
43
45
|
"Tools",
|
44
46
|
"UrlResult",
|
45
47
|
"ValidationError",
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import enum
|
4
|
+
import typing
|
5
|
+
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
7
|
+
|
8
|
+
|
9
|
+
class ToolModels(str, enum.Enum):
|
10
|
+
"""
|
11
|
+
An enumeration.
|
12
|
+
"""
|
13
|
+
|
14
|
+
GPT_4_TURBO = "gpt-4-turbo"
|
15
|
+
GPT_4_TURBO_PREVIEW = "gpt-4-turbo-preview"
|
16
|
+
GPT_4 = "gpt-4"
|
17
|
+
MIXTRAL_SMALL_8_X_7_B_0211 = "mixtral-small-8x7b-0211"
|
18
|
+
MISTRAL_LARGE_0224 = "mistral-large-0224"
|
19
|
+
CLAUDE_3_OPUS_20240229 = "claude-3-opus-20240229"
|
20
|
+
CLAUDE_3_SONNET_20240229 = "claude-3-sonnet-20240229"
|
21
|
+
CLAUDE_3_HAIKU_20240307 = "claude-3-haiku-20240307"
|
22
|
+
|
23
|
+
def visit(
|
24
|
+
self,
|
25
|
+
gpt_4_turbo: typing.Callable[[], T_Result],
|
26
|
+
gpt_4_turbo_preview: typing.Callable[[], T_Result],
|
27
|
+
gpt_4: typing.Callable[[], T_Result],
|
28
|
+
mixtral_small_8_x_7_b_0211: typing.Callable[[], T_Result],
|
29
|
+
mistral_large_0224: typing.Callable[[], T_Result],
|
30
|
+
claude_3_opus_20240229: typing.Callable[[], T_Result],
|
31
|
+
claude_3_sonnet_20240229: typing.Callable[[], T_Result],
|
32
|
+
claude_3_haiku_20240307: typing.Callable[[], T_Result],
|
33
|
+
) -> T_Result:
|
34
|
+
if self is ToolModels.GPT_4_TURBO:
|
35
|
+
return gpt_4_turbo()
|
36
|
+
if self is ToolModels.GPT_4_TURBO_PREVIEW:
|
37
|
+
return gpt_4_turbo_preview()
|
38
|
+
if self is ToolModels.GPT_4:
|
39
|
+
return gpt_4()
|
40
|
+
if self is ToolModels.MIXTRAL_SMALL_8_X_7_B_0211:
|
41
|
+
return mixtral_small_8_x_7_b_0211()
|
42
|
+
if self is ToolModels.MISTRAL_LARGE_0224:
|
43
|
+
return mistral_large_0224()
|
44
|
+
if self is ToolModels.CLAUDE_3_OPUS_20240229:
|
45
|
+
return claude_3_opus_20240229()
|
46
|
+
if self is ToolModels.CLAUDE_3_SONNET_20240229:
|
47
|
+
return claude_3_sonnet_20240229()
|
48
|
+
if self is ToolModels.CLAUDE_3_HAIKU_20240307:
|
49
|
+
return claude_3_haiku_20240307()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/chain/types/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/jsonable_encoder.py
RENAMED
File without changes
|
{athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/remove_none_from_dict.py
RENAMED
File without changes
|
{athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/core/request_options.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/polling_message_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/get_datasets_response.py
RENAMED
File without changes
|
{athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/get_snippets_response.py
RENAMED
File without changes
|
{athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/http_validation_error.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/message_out_dto.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{athena_intelligence-0.1.41 → athena_intelligence-0.1.42}/src/athena/types/validation_error.py
RENAMED
File without changes
|
File without changes
|