atendentepro 0.6.7__py3-none-any.whl → 0.6.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.
- atendentepro/agents/knowledge.py +4 -4
- atendentepro/templates/__init__.py +12 -0
- {atendentepro-0.6.7.dist-info → atendentepro-0.6.9.dist-info}/METADATA +1 -1
- {atendentepro-0.6.7.dist-info → atendentepro-0.6.9.dist-info}/RECORD +8 -8
- {atendentepro-0.6.7.dist-info → atendentepro-0.6.9.dist-info}/WHEEL +0 -0
- {atendentepro-0.6.7.dist-info → atendentepro-0.6.9.dist-info}/entry_points.txt +0 -0
- {atendentepro-0.6.7.dist-info → atendentepro-0.6.9.dist-info}/licenses/LICENSE +0 -0
- {atendentepro-0.6.7.dist-info → atendentepro-0.6.9.dist-info}/top_level.txt +0 -0
atendentepro/agents/knowledge.py
CHANGED
|
@@ -115,7 +115,7 @@ async def _find_relevant_chunks(query: str, top_k: int = 3) -> List[dict]:
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
@function_tool
|
|
118
|
-
async def go_to_rag(question: str) ->
|
|
118
|
+
async def go_to_rag(question: str) -> dict:
|
|
119
119
|
"""
|
|
120
120
|
Utilize RAG to answer the user's question.
|
|
121
121
|
|
|
@@ -123,7 +123,7 @@ async def go_to_rag(question: str) -> KnowledgeToolResult:
|
|
|
123
123
|
question: The question to answer using RAG.
|
|
124
124
|
|
|
125
125
|
Returns:
|
|
126
|
-
|
|
126
|
+
Dictionary with answer, context, sources, and confidence (serialized KnowledgeToolResult).
|
|
127
127
|
"""
|
|
128
128
|
from atendentepro.utils import get_async_client
|
|
129
129
|
from atendentepro.config import get_config
|
|
@@ -138,7 +138,7 @@ async def go_to_rag(question: str) -> KnowledgeToolResult:
|
|
|
138
138
|
context="",
|
|
139
139
|
sources=[],
|
|
140
140
|
confidence=0.0,
|
|
141
|
-
)
|
|
141
|
+
).model_dump()
|
|
142
142
|
|
|
143
143
|
context_sections: List[str] = []
|
|
144
144
|
sources: List[str] = []
|
|
@@ -215,7 +215,7 @@ async def go_to_rag(question: str) -> KnowledgeToolResult:
|
|
|
215
215
|
context=context,
|
|
216
216
|
sources=sources,
|
|
217
217
|
confidence=confidence,
|
|
218
|
-
)
|
|
218
|
+
).model_dump()
|
|
219
219
|
|
|
220
220
|
|
|
221
221
|
def create_knowledge_agent(
|
|
@@ -17,6 +17,9 @@ from .manager import (
|
|
|
17
17
|
load_style_config,
|
|
18
18
|
load_single_reply_config,
|
|
19
19
|
load_access_config,
|
|
20
|
+
load_feedback_config,
|
|
21
|
+
load_escalation_config,
|
|
22
|
+
load_answer_config,
|
|
20
23
|
FlowConfig,
|
|
21
24
|
InterviewConfig,
|
|
22
25
|
TriageConfig,
|
|
@@ -32,6 +35,9 @@ from .manager import (
|
|
|
32
35
|
DataSourceConfig,
|
|
33
36
|
DataSourceColumn,
|
|
34
37
|
DocumentConfig,
|
|
38
|
+
FeedbackConfig,
|
|
39
|
+
EscalationConfig,
|
|
40
|
+
AnswerConfig,
|
|
35
41
|
)
|
|
36
42
|
|
|
37
43
|
__all__ = [
|
|
@@ -50,6 +56,9 @@ __all__ = [
|
|
|
50
56
|
"load_style_config",
|
|
51
57
|
"load_single_reply_config",
|
|
52
58
|
"load_access_config",
|
|
59
|
+
"load_feedback_config",
|
|
60
|
+
"load_escalation_config",
|
|
61
|
+
"load_answer_config",
|
|
53
62
|
"FlowConfig",
|
|
54
63
|
"InterviewConfig",
|
|
55
64
|
"TriageConfig",
|
|
@@ -65,5 +74,8 @@ __all__ = [
|
|
|
65
74
|
"DataSourceConfig",
|
|
66
75
|
"DataSourceColumn",
|
|
67
76
|
"DocumentConfig",
|
|
77
|
+
"FeedbackConfig",
|
|
78
|
+
"EscalationConfig",
|
|
79
|
+
"AnswerConfig",
|
|
68
80
|
]
|
|
69
81
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atendentepro
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.9
|
|
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>
|
|
@@ -9,7 +9,7 @@ atendentepro/agents/escalation.py,sha256=pAS1HANW1jMCBZHekVxvuN9NZ_z9IpAYWbfUzH0
|
|
|
9
9
|
atendentepro/agents/feedback.py,sha256=cQd35y2-u93GRmu36ErAMyQEinxvNUaDGblGTGrWCfw,37486
|
|
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=crBBwOjZYKVtSfRYNIU6wepMsGY4yixc-c_iyzNkGa8,11089
|
|
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
|
|
@@ -30,15 +30,15 @@ atendentepro/prompts/interview.py,sha256=9zVGA8zSmm6pBx2i1LPGNJIPuLlz7PZKRJE_PC6
|
|
|
30
30
|
atendentepro/prompts/knowledge.py,sha256=B3BOyAvzQlwAkR51gc-B6XbQLtwIZlwGP1ofhZ4cFbk,4644
|
|
31
31
|
atendentepro/prompts/onboarding.py,sha256=78fSIh2ifsGeoav8DV41_jnyU157c0dtggJujcDvW4U,6093
|
|
32
32
|
atendentepro/prompts/triage.py,sha256=bSdEVheGy03r5P6MQuv7NwhN2_wrt0mK80F9f_LskRU,1283
|
|
33
|
-
atendentepro/templates/__init__.py,sha256=
|
|
33
|
+
atendentepro/templates/__init__.py,sha256=T6UdrTdsqkHMs2dH4W7RG264mj21SdYYWgnuyiIVxEM,1863
|
|
34
34
|
atendentepro/templates/manager.py,sha256=gPj8zPgN3iSHNACaonJU_aSFdevBJ1gpnlHvaiewAHg,34351
|
|
35
35
|
atendentepro/utils/__init__.py,sha256=x2yMUueBilWmI2qASSGbFREeyu0a65r3TuDt0euxNAU,1244
|
|
36
36
|
atendentepro/utils/openai_client.py,sha256=R0ns7SU36vTgploq14-QJMTke1pPxcAXlENDeoHU0L4,4552
|
|
37
37
|
atendentepro/utils/tracing.py,sha256=kpTPw1PF4rR1qq1RyBnAaPIQIJRka4RF8MfG_JrRJ7U,8486
|
|
38
38
|
atendentepro/utils/user_loader.py,sha256=J8wd-XF2PZg_i1ped8FI8nmGjmUafXROWJa1tYxSDMI,10623
|
|
39
|
-
atendentepro-0.6.
|
|
40
|
-
atendentepro-0.6.
|
|
41
|
-
atendentepro-0.6.
|
|
42
|
-
atendentepro-0.6.
|
|
43
|
-
atendentepro-0.6.
|
|
44
|
-
atendentepro-0.6.
|
|
39
|
+
atendentepro-0.6.9.dist-info/licenses/LICENSE,sha256=TF6CdXxePoT9DXtPnCejiU5mUwWzrFzd1iyWJyoMauA,983
|
|
40
|
+
atendentepro-0.6.9.dist-info/METADATA,sha256=kZCsfh6CtvNykwOrGViW6KdaRrxTqhFMpczizVNpwOg,45468
|
|
41
|
+
atendentepro-0.6.9.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
42
|
+
atendentepro-0.6.9.dist-info/entry_points.txt,sha256=OP0upzqJF3MLS6VX-M-5BfUwx5YLJO2sJ3YBAp4e6yI,89
|
|
43
|
+
atendentepro-0.6.9.dist-info/top_level.txt,sha256=BFasD4SMmgDUmWKlTIZ1PeuukoRBhyiMIz8umKWVCcs,13
|
|
44
|
+
atendentepro-0.6.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|