letschatty 0.4.335__py3-none-any.whl → 0.4.336__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.
- letschatty/models/company/assets/ai_agents_v2/chatty_ai_agent_in_chat.py +2 -33
- letschatty/models/company/assets/ai_agents_v2/statuses.py +33 -0
- letschatty/models/company/assets/chat_assets.py +1 -1
- {letschatty-0.4.335.dist-info → letschatty-0.4.336.dist-info}/METADATA +1 -1
- {letschatty-0.4.335.dist-info → letschatty-0.4.336.dist-info}/RECORD +7 -6
- {letschatty-0.4.335.dist-info → letschatty-0.4.336.dist-info}/LICENSE +0 -0
- {letschatty-0.4.335.dist-info → letschatty-0.4.336.dist-info}/WHEEL +0 -0
|
@@ -7,15 +7,16 @@ independently without loading entire chat documents.
|
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
9
|
from letschatty.models.analytics.events.base import EventType
|
|
10
|
+
from enum import StrEnum
|
|
10
11
|
from pydantic import BaseModel, Field, field_validator, ConfigDict
|
|
11
12
|
from datetime import datetime
|
|
12
13
|
from zoneinfo import ZoneInfo
|
|
13
14
|
from typing import Optional, ClassVar, List, Dict, Any
|
|
14
|
-
from enum import StrEnum
|
|
15
15
|
from letschatty.models.base_models.chatty_asset_model import CompanyAssetModel, ChattyAssetPreview
|
|
16
16
|
from letschatty.models.utils.types.identifier import StrObjectId
|
|
17
17
|
from .chain_of_thought_in_chat import ChainOfThoughtInChatTrigger
|
|
18
18
|
from .chatty_ai_mode import ChattyAIMode
|
|
19
|
+
from .statuses import DataCollectionStatus, PreQualifyStatus
|
|
19
20
|
import logging
|
|
20
21
|
|
|
21
22
|
logger = logging.getLogger(__name__)
|
|
@@ -45,38 +46,6 @@ class HumanInterventionReason(StrEnum):
|
|
|
45
46
|
SOMETHING_WENT_WRONG = "something_went_wrong"
|
|
46
47
|
|
|
47
48
|
|
|
48
|
-
class DataCollectionStatus(StrEnum):
|
|
49
|
-
"""
|
|
50
|
-
Status of data collection for the AI agent in this chat.
|
|
51
|
-
Only tracks field collection, not qualification status.
|
|
52
|
-
|
|
53
|
-
- COLLECTING: Still collecting data from the user
|
|
54
|
-
- MANDATORY_COMPLETED: All mandatory fields have been collected
|
|
55
|
-
- ALL_COMPLETED: All fields (mandatory + optional) have been collected
|
|
56
|
-
- CANCELLED: Data collection was cancelled
|
|
57
|
-
"""
|
|
58
|
-
COLLECTING = "collecting"
|
|
59
|
-
MANDATORY_COMPLETED = "mandatory_completed"
|
|
60
|
-
ALL_COMPLETED = "all_completed"
|
|
61
|
-
CANCELLED = "cancelled"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class PreQualifyStatus(StrEnum):
|
|
65
|
-
"""
|
|
66
|
-
Status of pre-qualification for the AI agent in this chat.
|
|
67
|
-
Separate from data collection - tracks qualification evaluation.
|
|
68
|
-
|
|
69
|
-
- PENDING: Waiting for data collection to complete
|
|
70
|
-
- EVALUATING: Data collected, evaluating acceptance criteria
|
|
71
|
-
- QUALIFIED: User met acceptance criteria
|
|
72
|
-
- UNQUALIFIED: User did NOT meet acceptance criteria
|
|
73
|
-
"""
|
|
74
|
-
PENDING = "pending"
|
|
75
|
-
EVALUATING = "evaluating"
|
|
76
|
-
QUALIFIED = "qualified"
|
|
77
|
-
UNQUALIFIED = "unqualified"
|
|
78
|
-
|
|
79
|
-
|
|
80
49
|
class HumanIntervention(BaseModel):
|
|
81
50
|
"""
|
|
82
51
|
Reason for human intervention
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from enum import StrEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class DataCollectionStatus(StrEnum):
|
|
5
|
+
"""
|
|
6
|
+
Status of data collection for the AI agent in this chat.
|
|
7
|
+
Only tracks field collection, not qualification status.
|
|
8
|
+
|
|
9
|
+
- COLLECTING: Still collecting data from the user
|
|
10
|
+
- MANDATORY_COMPLETED: All mandatory fields have been collected
|
|
11
|
+
- ALL_COMPLETED: All fields (mandatory + optional) have been collected
|
|
12
|
+
- CANCELLED: Data collection was cancelled
|
|
13
|
+
"""
|
|
14
|
+
COLLECTING = "collecting"
|
|
15
|
+
MANDATORY_COMPLETED = "mandatory_completed"
|
|
16
|
+
ALL_COMPLETED = "all_completed"
|
|
17
|
+
CANCELLED = "cancelled"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class PreQualifyStatus(StrEnum):
|
|
21
|
+
"""
|
|
22
|
+
Status of pre-qualification for the AI agent in this chat.
|
|
23
|
+
Separate from data collection - tracks qualification evaluation.
|
|
24
|
+
|
|
25
|
+
- PENDING: Waiting for data collection to complete
|
|
26
|
+
- EVALUATING: Data collected, evaluating acceptance criteria
|
|
27
|
+
- QUALIFIED: User met acceptance criteria
|
|
28
|
+
- UNQUALIFIED: User did NOT meet acceptance criteria
|
|
29
|
+
"""
|
|
30
|
+
PENDING = "pending"
|
|
31
|
+
EVALUATING = "evaluating"
|
|
32
|
+
QUALIFIED = "qualified"
|
|
33
|
+
UNQUALIFIED = "unqualified"
|
|
@@ -4,7 +4,7 @@ from enum import StrEnum
|
|
|
4
4
|
from pydantic_core.core_schema import str_schema
|
|
5
5
|
|
|
6
6
|
from letschatty.models.company.assets.ai_agents_v2.chain_of_thought_in_chat import ChainOfThoughtInChatTrigger
|
|
7
|
-
from letschatty.models.company.assets.ai_agents_v2.
|
|
7
|
+
from letschatty.models.company.assets.ai_agents_v2.statuses import DataCollectionStatus, PreQualifyStatus
|
|
8
8
|
from ...utils.types.identifier import StrObjectId
|
|
9
9
|
from datetime import datetime
|
|
10
10
|
from zoneinfo import ZoneInfo
|
|
@@ -88,7 +88,7 @@ letschatty/models/company/assets/ai_agents_v2/chat_example.py,sha256=yCKt6ifNYch
|
|
|
88
88
|
letschatty/models/company/assets/ai_agents_v2/chat_example_test.py,sha256=vChD-TkX1ORRD9LMbd2HlpbK4QyrsfhDiJd-LDjIqlk,4618
|
|
89
89
|
letschatty/models/company/assets/ai_agents_v2/chatty_ai_agent.py,sha256=R2rCANri8ZiqnmPP10PWoanGddMImCMxrl78Y6d-194,8204
|
|
90
90
|
letschatty/models/company/assets/ai_agents_v2/chatty_ai_agent_config_for_automation.py,sha256=W8orpgp-yG8OHNWGQ16jMv-VgM_Z-Hk0q8PtC0KT2KU,388
|
|
91
|
-
letschatty/models/company/assets/ai_agents_v2/chatty_ai_agent_in_chat.py,sha256=
|
|
91
|
+
letschatty/models/company/assets/ai_agents_v2/chatty_ai_agent_in_chat.py,sha256=p-Mys4XM0kppdETj__gCa0ddQmS93S_evVYTrha4eCc,14630
|
|
92
92
|
letschatty/models/company/assets/ai_agents_v2/chatty_ai_mode.py,sha256=fnmExsywjDk5stMcgpHF-8W5lLy-5ReCm02HaQ6Ae98,2309
|
|
93
93
|
letschatty/models/company/assets/ai_agents_v2/context_item.py,sha256=9629_sJ4vjfF6--KR44E6lqVpc0uOGSlcorKS5ooSXU,438
|
|
94
94
|
letschatty/models/company/assets/ai_agents_v2/faq.py,sha256=qL-sr17ALvJ9PEzpaXpYL91-bQ9Np3C4jCYe-zfot6o,457
|
|
@@ -99,10 +99,11 @@ letschatty/models/company/assets/ai_agents_v2/n8n_agents_info.py,sha256=UNsYXznX
|
|
|
99
99
|
letschatty/models/company/assets/ai_agents_v2/n8n_schema_incoming_message_output.json,sha256=_NERM9gJ4Ry8NFVb8mHxRmdv0GfBrHdtmKxVJWmTUrY,2102
|
|
100
100
|
letschatty/models/company/assets/ai_agents_v2/n8n_schema_smart_follow_up_output.json,sha256=QAPRJXin-sE9NxQBHmmErSYHL6dQzmu4i0HEFSSXOi4,2350
|
|
101
101
|
letschatty/models/company/assets/ai_agents_v2/pre_qualify_config.py,sha256=tXsUXWB4d_SeY1ip9aMZzmkAftaNP3CMlW3_04xArcM,4761
|
|
102
|
+
letschatty/models/company/assets/ai_agents_v2/statuses.py,sha256=nhIGfeKednLNFZCIMavbZptT_9L-HDDVshAyCLdwPe8,1109
|
|
102
103
|
letschatty/models/company/assets/assignment/__init__.py,sha256=eWYZfaDQde5OJNIDed8D-LNRXOa5O_O4mGMToNFtaW8,239
|
|
103
104
|
letschatty/models/company/assets/assignment/assignment_assets.py,sha256=phIJqNh4UGTU-Hux_kaOYhJm2GCqv37AnCGePSDVKmM,2245
|
|
104
105
|
letschatty/models/company/assets/automation.py,sha256=QDMCHm--85tEGUwddjWGeUSxmCT27HiH8lRm4w4DJLE,1871
|
|
105
|
-
letschatty/models/company/assets/chat_assets.py,sha256=
|
|
106
|
+
letschatty/models/company/assets/chat_assets.py,sha256=26FX3hOgJF3ogxfYvhhBHJUfXMFtVHapgd8XsFStoU4,7934
|
|
106
107
|
letschatty/models/company/assets/chatty_fast_answers/__init__.py,sha256=tbgWS0n1i0nVi9f79U44GPRnrW25NKcjl6Port92alk,48
|
|
107
108
|
letschatty/models/company/assets/chatty_fast_answers/chatty_fast_answer.py,sha256=PxW3eStHXo0BY7Z9hMDqBTHmgO7XcwtOvEpwXi-rA5g,1076
|
|
108
109
|
letschatty/models/company/assets/company_assets.py,sha256=YKRo_uXhQYRQ8HvMf4HhrHTBC2zp7xlE_B0nqSMfMFY,726
|
|
@@ -310,7 +311,7 @@ letschatty/services/template_campaigns/template_campaign_service.py,sha256=jORgD
|
|
|
310
311
|
letschatty/services/users/agent_service.py,sha256=hIkUUJ1SpkKbh5_uo4i2CeqGtuMTjU7tSV8k5J7WPG4,279
|
|
311
312
|
letschatty/services/users/user_factory.py,sha256=FCB9uiAfjMeYfh4kMdx5h8VDHJ8MCsD-uaxW3X3KaWM,6681
|
|
312
313
|
letschatty/services/validators/analytics_validator.py,sha256=-QBR6XIqEv2qw3stcBQehkwui1EcfWUM6M9DRQODykY,6335
|
|
313
|
-
letschatty-0.4.
|
|
314
|
-
letschatty-0.4.
|
|
315
|
-
letschatty-0.4.
|
|
316
|
-
letschatty-0.4.
|
|
314
|
+
letschatty-0.4.336.dist-info/LICENSE,sha256=EClLu_bO2HBLDcThowIwfaIg5EOwIYhpRsBJjVEk92A,1197
|
|
315
|
+
letschatty-0.4.336.dist-info/METADATA,sha256=S-3B1_bkFmSgzwvYjdvcOxYL2QTUbDrE06ZD6VJkpGY,3283
|
|
316
|
+
letschatty-0.4.336.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
317
|
+
letschatty-0.4.336.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|