atendentepro 0.5.7__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.
Files changed (47) hide show
  1. atendentepro-0.5.7/CHANGELOG.md +183 -0
  2. atendentepro-0.5.7/LICENSE +25 -0
  3. atendentepro-0.5.7/MANIFEST.in +40 -0
  4. atendentepro-0.5.7/PKG-INFO +721 -0
  5. atendentepro-0.5.7/README.md +665 -0
  6. atendentepro-0.5.7/atendentepro/README.md +1467 -0
  7. atendentepro-0.5.7/atendentepro/__init__.py +245 -0
  8. atendentepro-0.5.7/atendentepro/agents/__init__.py +56 -0
  9. atendentepro-0.5.7/atendentepro/agents/answer.py +61 -0
  10. atendentepro-0.5.7/atendentepro/agents/confirmation.py +69 -0
  11. atendentepro-0.5.7/atendentepro/agents/escalation.py +510 -0
  12. atendentepro-0.5.7/atendentepro/agents/feedback.py +961 -0
  13. atendentepro-0.5.7/atendentepro/agents/flow.py +64 -0
  14. atendentepro-0.5.7/atendentepro/agents/interview.py +68 -0
  15. atendentepro-0.5.7/atendentepro/agents/knowledge.py +296 -0
  16. atendentepro-0.5.7/atendentepro/agents/onboarding.py +65 -0
  17. atendentepro-0.5.7/atendentepro/agents/triage.py +57 -0
  18. atendentepro-0.5.7/atendentepro/agents/usage.py +56 -0
  19. atendentepro-0.5.7/atendentepro/config/__init__.py +19 -0
  20. atendentepro-0.5.7/atendentepro/config/settings.py +134 -0
  21. atendentepro-0.5.7/atendentepro/guardrails/__init__.py +21 -0
  22. atendentepro-0.5.7/atendentepro/guardrails/manager.py +419 -0
  23. atendentepro-0.5.7/atendentepro/license.py +502 -0
  24. atendentepro-0.5.7/atendentepro/models/__init__.py +21 -0
  25. atendentepro-0.5.7/atendentepro/models/context.py +21 -0
  26. atendentepro-0.5.7/atendentepro/models/outputs.py +118 -0
  27. atendentepro-0.5.7/atendentepro/network.py +501 -0
  28. atendentepro-0.5.7/atendentepro/prompts/__init__.py +45 -0
  29. atendentepro-0.5.7/atendentepro/prompts/answer.py +113 -0
  30. atendentepro-0.5.7/atendentepro/prompts/confirmation.py +124 -0
  31. atendentepro-0.5.7/atendentepro/prompts/escalation.py +190 -0
  32. atendentepro-0.5.7/atendentepro/prompts/feedback.py +232 -0
  33. atendentepro-0.5.7/atendentepro/prompts/flow.py +112 -0
  34. atendentepro-0.5.7/atendentepro/prompts/interview.py +123 -0
  35. atendentepro-0.5.7/atendentepro/prompts/knowledge.py +135 -0
  36. atendentepro-0.5.7/atendentepro/prompts/onboarding.py +146 -0
  37. atendentepro-0.5.7/atendentepro/prompts/triage.py +42 -0
  38. atendentepro-0.5.7/atendentepro/templates/__init__.py +51 -0
  39. atendentepro-0.5.7/atendentepro/templates/manager.py +530 -0
  40. atendentepro-0.5.7/atendentepro/utils/__init__.py +40 -0
  41. atendentepro-0.5.7/atendentepro/utils/openai_client.py +154 -0
  42. atendentepro-0.5.7/atendentepro/utils/tracing.py +263 -0
  43. atendentepro-0.5.7/atendentepro.egg-info/SOURCES.txt +44 -0
  44. atendentepro-0.5.7/pyproject.toml +130 -0
  45. atendentepro-0.5.7/requirements.txt +46 -0
  46. atendentepro-0.5.7/setup.cfg +4 -0
  47. atendentepro-0.5.7/setup.py +8 -0
@@ -0,0 +1,183 @@
1
+ # Changelog
2
+
3
+ All notable changes to AtendentePro will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.5.7] - 2025-01-07
9
+
10
+ ### Added
11
+ - MonkAI Trace integration for comprehensive agent monitoring
12
+ - New functions: `configure_monkai_trace`, `run_with_monkai_tracking`
13
+ - Session management with `set_monkai_user`, `set_monkai_input`
14
+ - Token segmentation support (input, output, process, memory)
15
+ - Multi-user session tracking for WhatsApp/chat bots
16
+ - Documentation for tracing setup in README
17
+
18
+ ### Changed
19
+ - Renamed `configure_tracing` to `configure_application_insights` (legacy alias kept)
20
+
21
+ ## [0.5.6] - 2025-01-07
22
+
23
+ ### Added
24
+ - New parameters in `create_standard_network` to enable/disable individual agents:
25
+ - `include_flow`, `include_interview`, `include_answer`
26
+ - `include_knowledge`, `include_confirmation`, `include_usage`
27
+ - Allows creating custom networks without specific agents (e.g., without Knowledge)
28
+
29
+ ### Changed
30
+ - Handoffs are now dynamically configured based on which agents are enabled
31
+ - Documentation updated with examples of minimal network configurations
32
+
33
+ ## [0.5.5] - 2025-01-06
34
+
35
+ ### Fixed
36
+ - GitHub Actions workflow now only triggers PyPI publish on version tags
37
+
38
+ ## [0.5.4] - 2025-01-06
39
+
40
+ ### Changed
41
+ - Complete standalone documentation in README.md for PyPI
42
+ - All documentation now visible directly on PyPI page
43
+ - No external links to private repository
44
+
45
+ ## [0.5.3] - 2025-01-06
46
+
47
+ ### Fixed
48
+ - Documentation links now use absolute GitHub URLs for PyPI compatibility
49
+ - Removed reference to private `examples/` folder
50
+
51
+ ## [0.5.2] - 2025-01-06
52
+
53
+ ### Changed
54
+ - Updated contact information:
55
+ - Email: contato@monkai.com.br
56
+ - Website: https://www.monkai.com.br
57
+
58
+ ## [0.5.1] - 2025-01-06
59
+
60
+ ### Changed
61
+ - **Documentation**: Updated all diagrams and READMEs
62
+ - Added prompts files for Escalation and Feedback agents (`prompts/escalation.py`, `prompts/feedback.py`)
63
+ - Moved `templates/standard/` out of `client_templates/` (now included in repository)
64
+ - Removed unnecessary Answer → Interview handoff
65
+ - Fixed inconsistencies in handoff diagrams
66
+ - Improved YAML configuration documentation
67
+
68
+ ### Fixed
69
+ - Removed circular handoff from Answer Agent to Interview Agent
70
+ - Fixed docstrings and diagrams referencing old handoff structure
71
+
72
+ ## [0.5.0] - 2025-01-06
73
+
74
+ ### Added
75
+ - **Feedback Agent**: New module for ticket-based user feedback
76
+ - `create_feedback_agent()` factory function
77
+ - `FEEDBACK_TOOLS` with ticket creation and management tools:
78
+ - `criar_ticket` - Create feedback tickets (dúvida, feedback, reclamação, sugestão, elogio, problema)
79
+ - `enviar_email_confirmacao` - Send confirmation email to user
80
+ - `consultar_ticket` - Query ticket status by protocol
81
+ - `listar_meus_tickets` - List user's tickets by email
82
+ - `atualizar_ticket` - Update ticket status or add response
83
+ - Protocol generation with customizable prefix (TKT, SAC, SUP)
84
+ - Email templates with brand customization
85
+ - Priority auto-classification (reclamações = alta)
86
+ - Team notification support
87
+ - **Network Integration**: Feedback Agent added to standard network
88
+ - `include_feedback` parameter in `create_standard_network()`
89
+ - `feedback_protocol_prefix`, `feedback_brand_color`, `feedback_brand_name` parameters
90
+ - `add_feedback_to_all()` method in AgentNetwork
91
+ - Feedback added as handoff to ALL agents by default
92
+ - **Template Configuration**: New `feedback_config.yaml` template
93
+ - Ticket types configuration
94
+ - Priority levels and SLA
95
+ - Email branding options
96
+ - Auto-priority rules
97
+ - **Configuration Function**: `configure_feedback_storage()` for runtime config
98
+
99
+ ### Changed
100
+ - `AgentNetwork` now includes `feedback` attribute
101
+ - Network handoffs updated to include feedback option
102
+ - README updated with Feedback Agent documentation
103
+ - Version bump to 0.5.0
104
+
105
+ ## [0.4.0] - 2025-01-06
106
+
107
+ ### Added
108
+ - **Escalation Agent**: New module for human support transfer
109
+ - `create_escalation_agent()` factory function
110
+ - `ESCALATION_TOOLS` with registration and consultation tools
111
+ - Automatic activation triggers (explicit request, frustration, out-of-scope topics)
112
+ - Business hours verification
113
+ - Protocol generation and tracking
114
+ - Priority auto-classification (urgent, high, normal, low)
115
+ - Webhook notification support
116
+ - **Network Integration**: Escalation Agent added to standard network
117
+ - `include_escalation` parameter in `create_standard_network()`
118
+ - `escalation_channels` parameter for channel description
119
+ - `add_escalation_to_all()` method in AgentNetwork
120
+ - Escalation added as handoff to ALL agents by default
121
+ - **Template Configuration**: New `escalation_config.yaml` template
122
+ - Customizable triggers, channels, and business hours
123
+ - Priority classification rules
124
+ - Custom messages
125
+ - **Client Updates**: Vivo and EasyDr networks support Escalation Agent
126
+ - **Examples**: New `main_escalation()` demo in `run_vivo.py`
127
+
128
+ ### Changed
129
+ - `AgentNetwork` now includes `escalation` attribute
130
+ - Network handoffs updated to include escalation option
131
+ - README updated with Escalation Agent documentation
132
+ - Version bump to 0.4.0
133
+
134
+ ## [0.3.0] - 2025-01-04
135
+
136
+ ### Added
137
+ - **License System**: New token-based licensing system
138
+ - `activate()` function to activate the library
139
+ - Auto-activation via `ATENDENTEPRO_LICENSE_KEY` environment variable
140
+ - `atendentepro-generate-token` CLI command for administrators
141
+ - License expiration support
142
+ - Feature-based licensing
143
+ - **CLI Tools**: Command-line interface for token generation
144
+ - **Improved Documentation**: Enhanced README with activation instructions
145
+
146
+ ### Changed
147
+ - Library now requires activation before use
148
+ - Version bump to 0.3.0
149
+ - Updated pyproject.toml with new metadata
150
+
151
+ ### Security
152
+ - Added HMAC-SHA256 token validation
153
+ - Proprietary license enforcement
154
+
155
+ ## [0.2.0] - 2025-01-03
156
+
157
+ ### Added
158
+ - **Modular Architecture**: Complete refactoring into independent library
159
+ - **Agent Network**: Configurable multi-agent system
160
+ - Triage Agent - Intent classification
161
+ - Flow Agent - Options presentation
162
+ - Interview Agent - Information collection
163
+ - Answer Agent - Response synthesis
164
+ - Knowledge Agent - RAG and structured data queries
165
+ - Confirmation Agent - Yes/no validation
166
+ - Usage Agent - System help
167
+ - Onboarding Agent - User registration
168
+ - **Template System**: YAML-based client configuration
169
+ - **Guardrails**: Scope validation and forbidden topics
170
+ - **Custom Tools**: Support for function_tool integrations
171
+ - **Multiple Data Sources**: CSV, database, API support
172
+
173
+ ### Changed
174
+ - Extracted from monkai monorepo into standalone package
175
+ - Standardized configuration format
176
+
177
+ ## [0.1.0] - 2024-12-01
178
+
179
+ ### Added
180
+ - Initial release
181
+ - Basic multi-agent functionality
182
+ - OpenAI Agents SDK integration
183
+
@@ -0,0 +1,25 @@
1
+ AtendentePro Proprietary License
2
+
3
+ Copyright (c) 2024-2025 BeMonkAI
4
+
5
+ All rights reserved.
6
+
7
+ NOTICE: This software is proprietary and confidential. Unauthorized copying,
8
+ modification, distribution, or use of this software, via any medium, is
9
+ strictly prohibited without the express written permission of BeMonkAI.
10
+
11
+ This software requires a valid license key for use. License keys can be
12
+ obtained by contacting: contato@monkai.com.br
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+
22
+ For licensing inquiries:
23
+ Email: contato@monkai.com.br
24
+ Website: https://www.monkai.com.br
25
+
@@ -0,0 +1,40 @@
1
+ # Include the README and other documentation
2
+ include README.md
3
+ include CHANGELOG.md
4
+ include LICENSE
5
+
6
+ # Include requirements
7
+ include requirements.txt
8
+
9
+ # Include package data
10
+ recursive-include atendentepro *.py
11
+ recursive-include atendentepro *.md
12
+
13
+ # Exclude development and test files
14
+ exclude .gitignore
15
+ exclude .env
16
+ exclude .env.example
17
+ exclude env.example
18
+
19
+ # Exclude directories not needed in package
20
+ prune venv
21
+ prune .venv
22
+ prune tests
23
+ prune docs
24
+ prune examples
25
+ prune scripts
26
+ prune client_templates
27
+ prune *.egg-info
28
+ prune __pycache__
29
+ prune .git
30
+ prune .github
31
+ prune .pytest_cache
32
+ prune .mypy_cache
33
+
34
+ # Exclude compiled files
35
+ global-exclude *.py[cod]
36
+ global-exclude __pycache__
37
+ global-exclude *.so
38
+ global-exclude *.dylib
39
+ global-exclude .DS_Store
40
+