atendentepro 0.6.7__tar.gz → 0.6.9__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.
- {atendentepro-0.6.7 → atendentepro-0.6.9}/CHANGELOG.md +17 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/PKG-INFO +1 -1
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/knowledge.py +4 -4
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/templates/__init__.py +12 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/pyproject.toml +1 -1
- {atendentepro-0.6.7 → atendentepro-0.6.9}/LICENSE +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/MANIFEST.in +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/README.md +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/README.md +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/__init__.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/__init__.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/answer.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/confirmation.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/escalation.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/feedback.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/flow.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/interview.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/onboarding.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/triage.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/agents/usage.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/config/__init__.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/config/settings.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/guardrails/__init__.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/guardrails/manager.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/license.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/models/__init__.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/models/context.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/models/outputs.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/network.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/prompts/__init__.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/prompts/answer.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/prompts/confirmation.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/prompts/escalation.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/prompts/feedback.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/prompts/flow.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/prompts/interview.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/prompts/knowledge.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/prompts/onboarding.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/prompts/triage.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/templates/manager.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/utils/__init__.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/utils/openai_client.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/utils/tracing.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro/utils/user_loader.py +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/atendentepro.egg-info/SOURCES.txt +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/requirements.txt +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/setup.cfg +0 -0
- {atendentepro-0.6.7 → atendentepro-0.6.9}/setup.py +0 -0
|
@@ -5,6 +5,23 @@ All notable changes to AtendentePro will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.6.9] - 2025-02-03
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Knowledge Agent RAG Tool Serialization**: Corrigido erro de validação Pydantic ao usar `go_to_rag` com hooks do MonkAI
|
|
12
|
+
- `go_to_rag` agora retorna um dicionário serializável (`model_dump()`) em vez do objeto Pydantic bruto
|
|
13
|
+
- Resolve erro de serialização quando `Message.content` espera `str` ou `dict` mas recebia `KnowledgeToolResult`
|
|
14
|
+
- Mantém todos os dados (answer, context, sources, confidence) em formato compatível com hooks de observabilidade
|
|
15
|
+
- Tipo de retorno atualizado de `KnowledgeToolResult` para `dict`
|
|
16
|
+
|
|
17
|
+
## [0.6.8] - 2025-02-03
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- **Import Error Fix**: Corrigido `ImportError` ao usar `include_feedback=True` em `create_standard_network`
|
|
21
|
+
- Adicionadas exportações faltantes em `atendentepro/templates/__init__.py`
|
|
22
|
+
- `load_feedback_config`, `load_escalation_config`, `load_answer_config` agora estão disponíveis
|
|
23
|
+
- Modelos `FeedbackConfig`, `EscalationConfig`, `AnswerConfig` agora são exportados corretamente
|
|
24
|
+
|
|
8
25
|
## [0.6.7] - 2025-02-03
|
|
9
26
|
|
|
10
27
|
### Fixed
|
|
@@ -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>
|
|
@@ -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
|
[project]
|
|
2
2
|
name = "atendentepro"
|
|
3
|
-
version = "0.6.
|
|
3
|
+
version = "0.6.9" # Trigger PyPI publish
|
|
4
4
|
description = "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
|
authors = [
|
|
6
6
|
{ name = "BeMonkAI", email = "contato@monkai.com.br" }
|
|
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
|
|
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
|
|
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
|