atendentepro 0.6.2__py3-none-any.whl → 0.6.3__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.
- atendentepro/agents/knowledge.py +13 -0
- {atendentepro-0.6.2.dist-info → atendentepro-0.6.3.dist-info}/METADATA +23 -23
- {atendentepro-0.6.2.dist-info → atendentepro-0.6.3.dist-info}/RECORD +7 -7
- {atendentepro-0.6.2.dist-info → atendentepro-0.6.3.dist-info}/WHEEL +0 -0
- {atendentepro-0.6.2.dist-info → atendentepro-0.6.3.dist-info}/entry_points.txt +0 -0
- {atendentepro-0.6.2.dist-info → atendentepro-0.6.3.dist-info}/licenses/LICENSE +0 -0
- {atendentepro-0.6.2.dist-info → atendentepro-0.6.3.dist-info}/top_level.txt +0 -0
atendentepro/agents/knowledge.py
CHANGED
|
@@ -58,9 +58,22 @@ def load_embeddings() -> List[dict]:
|
|
|
58
58
|
return []
|
|
59
59
|
|
|
60
60
|
|
|
61
|
+
def _check_rag_dependencies() -> None:
|
|
62
|
+
"""Check if RAG dependencies are installed."""
|
|
63
|
+
try:
|
|
64
|
+
import numpy # noqa: F401
|
|
65
|
+
import sklearn # noqa: F401
|
|
66
|
+
except ImportError as e:
|
|
67
|
+
raise ImportError(
|
|
68
|
+
"RAG dependencies not installed. "
|
|
69
|
+
"Install with: pip install atendentepro[rag]"
|
|
70
|
+
) from e
|
|
71
|
+
|
|
72
|
+
|
|
61
73
|
async def _find_relevant_chunks(query: str, top_k: int = 3) -> List[dict]:
|
|
62
74
|
"""Find most relevant chunks for a given query."""
|
|
63
75
|
try:
|
|
76
|
+
_check_rag_dependencies()
|
|
64
77
|
from sklearn.metrics.pairwise import cosine_similarity
|
|
65
78
|
import numpy as np
|
|
66
79
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atendentepro
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.3
|
|
4
4
|
Summary: Framework de orquestração de agentes IA com tom e estilo customizáveis. Integra documentos (RAG), APIs e bancos de dados em uma plataforma inteligente multi-agente.
|
|
5
5
|
Author-email: BeMonkAI <contato@monkai.com.br>
|
|
6
6
|
Maintainer-email: BeMonkAI <contato@monkai.com.br>
|
|
@@ -25,33 +25,33 @@ Classifier: Operating System :: OS Independent
|
|
|
25
25
|
Requires-Python: >=3.9
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
27
|
License-File: LICENSE
|
|
28
|
-
Requires-Dist: openai-agents
|
|
29
|
-
Requires-Dist: openai
|
|
30
|
-
Requires-Dist: pydantic
|
|
31
|
-
Requires-Dist: PyYAML
|
|
32
|
-
Requires-Dist: python-dotenv
|
|
33
|
-
Requires-Dist: httpx
|
|
34
|
-
Requires-Dist: numpy>=1.24.0
|
|
35
|
-
Requires-Dist: scikit-learn>=1.3.0
|
|
28
|
+
Requires-Dist: openai-agents<1.0.0,>=0.3.3
|
|
29
|
+
Requires-Dist: openai<2.0.0,>=1.107.1
|
|
30
|
+
Requires-Dist: pydantic<3.0.0,>=2.0.0
|
|
31
|
+
Requires-Dist: PyYAML<7.0,>=6.0
|
|
32
|
+
Requires-Dist: python-dotenv<2.0.0,>=1.0.0
|
|
33
|
+
Requires-Dist: httpx<1.0.0,>=0.27.0
|
|
36
34
|
Provides-Extra: dev
|
|
37
|
-
Requires-Dist: pytest
|
|
38
|
-
Requires-Dist: pytest-asyncio
|
|
39
|
-
Requires-Dist: black
|
|
40
|
-
Requires-Dist: isort
|
|
41
|
-
Requires-Dist: mypy
|
|
35
|
+
Requires-Dist: pytest<9.0.0,>=7.0.0; extra == "dev"
|
|
36
|
+
Requires-Dist: pytest-asyncio<1.0.0,>=0.21.0; extra == "dev"
|
|
37
|
+
Requires-Dist: black<25.0.0,>=23.0.0; extra == "dev"
|
|
38
|
+
Requires-Dist: isort<6.0.0,>=5.12.0; extra == "dev"
|
|
39
|
+
Requires-Dist: mypy<2.0.0,>=1.0.0; extra == "dev"
|
|
42
40
|
Provides-Extra: docs
|
|
43
|
-
Requires-Dist: mkdocs
|
|
44
|
-
Requires-Dist: mkdocs-material
|
|
41
|
+
Requires-Dist: mkdocs<2.0.0,>=1.5.0; extra == "docs"
|
|
42
|
+
Requires-Dist: mkdocs-material<10.0.0,>=9.0.0; extra == "docs"
|
|
45
43
|
Provides-Extra: rag
|
|
46
|
-
Requires-Dist:
|
|
47
|
-
Requires-Dist:
|
|
48
|
-
Requires-Dist:
|
|
49
|
-
Requires-Dist:
|
|
44
|
+
Requires-Dist: numpy<2.0.0,>=1.24.0; extra == "rag"
|
|
45
|
+
Requires-Dist: scikit-learn<2.0.0,>=1.3.0; extra == "rag"
|
|
46
|
+
Requires-Dist: PyPDF2<4.0.0,>=3.0.0; extra == "rag"
|
|
47
|
+
Requires-Dist: python-docx<2.0.0,>=0.8.11; extra == "rag"
|
|
48
|
+
Requires-Dist: python-pptx<1.0.0,>=0.6.21; extra == "rag"
|
|
49
|
+
Requires-Dist: PyMuPDF<2.0.0,>=1.23.0; extra == "rag"
|
|
50
50
|
Provides-Extra: tracing
|
|
51
|
-
Requires-Dist: monkai-trace
|
|
51
|
+
Requires-Dist: monkai-trace<1.0.0,>=0.2.9; extra == "tracing"
|
|
52
52
|
Provides-Extra: azure
|
|
53
|
-
Requires-Dist: opentelemetry-sdk
|
|
54
|
-
Requires-Dist: azure-monitor-opentelemetry-exporter
|
|
53
|
+
Requires-Dist: opentelemetry-sdk<2.0.0,>=1.20.0; extra == "azure"
|
|
54
|
+
Requires-Dist: azure-monitor-opentelemetry-exporter<2.0.0,>=1.0.0; extra == "azure"
|
|
55
55
|
Provides-Extra: all
|
|
56
56
|
Requires-Dist: atendentepro[azure,dev,docs,rag,tracing]; extra == "all"
|
|
57
57
|
Dynamic: license-file
|
|
@@ -9,7 +9,7 @@ atendentepro/agents/escalation.py,sha256=tnFhHaV8VnrMMh_p8Xt9JTMe4bkWcGb6mChECm8
|
|
|
9
9
|
atendentepro/agents/feedback.py,sha256=0cU6LVcIp_2ZBB-Cdprnwgw1C5IKYC_ydQ8HJnlheqo,33585
|
|
10
10
|
atendentepro/agents/flow.py,sha256=8SsAQ_f-daOM25EVBTMKGSUI9ywG3y4B0bFcCnrUfo0,2645
|
|
11
11
|
atendentepro/agents/interview.py,sha256=3eWHUw63OJuVpHH-QYtdL8SadRgevNLv2N8Esa4Za2c,2722
|
|
12
|
-
atendentepro/agents/knowledge.py,sha256=
|
|
12
|
+
atendentepro/agents/knowledge.py,sha256=Xew_qhAdBrm3oVRvHhKh2oi6aURyeIKU5CtgfAHBYEI,11054
|
|
13
13
|
atendentepro/agents/onboarding.py,sha256=IId7N9VeTvHggjK_piDOAmwzBztj6oHqbZq7YOpVJIg,2687
|
|
14
14
|
atendentepro/agents/triage.py,sha256=pdYCA5AqbGMY0WoJXvdceAz_gnQ7D_fJp7dxxsD-GDg,1958
|
|
15
15
|
atendentepro/agents/usage.py,sha256=tTfbqh3vRIDu0cnB65tv-Z3neEj90COp85nlIVpRLJ8,2183
|
|
@@ -35,9 +35,9 @@ atendentepro/templates/manager.py,sha256=VHnu2dxWA6TR07QjJtsDZIRkwIjq-zGoIDysul7
|
|
|
35
35
|
atendentepro/utils/__init__.py,sha256=WCJ6_btsLaI6xxHXvNHNue-nKrXWTKscNZGTToQiJ8A,833
|
|
36
36
|
atendentepro/utils/openai_client.py,sha256=R0ns7SU36vTgploq14-QJMTke1pPxcAXlENDeoHU0L4,4552
|
|
37
37
|
atendentepro/utils/tracing.py,sha256=kpTPw1PF4rR1qq1RyBnAaPIQIJRka4RF8MfG_JrRJ7U,8486
|
|
38
|
-
atendentepro-0.6.
|
|
39
|
-
atendentepro-0.6.
|
|
40
|
-
atendentepro-0.6.
|
|
41
|
-
atendentepro-0.6.
|
|
42
|
-
atendentepro-0.6.
|
|
43
|
-
atendentepro-0.6.
|
|
38
|
+
atendentepro-0.6.3.dist-info/licenses/LICENSE,sha256=TF6CdXxePoT9DXtPnCejiU5mUwWzrFzd1iyWJyoMauA,983
|
|
39
|
+
atendentepro-0.6.3.dist-info/METADATA,sha256=ijYMZnbksuX5O7ao9bA0deK6gI5eYM3jtE2S_hd2WOE,27835
|
|
40
|
+
atendentepro-0.6.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
41
|
+
atendentepro-0.6.3.dist-info/entry_points.txt,sha256=OP0upzqJF3MLS6VX-M-5BfUwx5YLJO2sJ3YBAp4e6yI,89
|
|
42
|
+
atendentepro-0.6.3.dist-info/top_level.txt,sha256=BFasD4SMmgDUmWKlTIZ1PeuukoRBhyiMIz8umKWVCcs,13
|
|
43
|
+
atendentepro-0.6.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|