glchat-plugin 0.2.4__py3-none-any.whl → 0.2.6__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.
@@ -7,6 +7,7 @@ References:
7
7
  None
8
8
  """
9
9
 
10
+ import warnings
10
11
  from enum import StrEnum
11
12
 
12
13
 
@@ -15,11 +16,26 @@ class SearchType(StrEnum):
15
16
 
16
17
  Attributes:
17
18
  NORMAL: Get answer from chatbot knowledge.
18
- WEB: Get more relevant information from the web.
19
+ SEARCH: Get answer from various connectors.
20
+ WEB: Get more relevant information from the web. (DEPRECATED)
19
21
  Web Search uses real-time data. Agent selection isn't available in this mode.
20
22
  DEEP_RESEARCH: Get answer from Deep Research Agent.
21
23
  """
22
24
 
23
25
  NORMAL = "normal"
24
- WEB = "web"
26
+ SEARCH = "search"
27
+ _WEB = "web" # Underscore to hide it from normal use
25
28
  DEEP_RESEARCH = "deep_research"
29
+
30
+ @property
31
+ def WEB(cls) -> "SearchType":
32
+ """Deprecated: Use SEARCH instead.
33
+
34
+ Will be removed in version 0.3.0
35
+ """
36
+ warnings.warn(
37
+ "SearchType.WEB is deprecated and will be removed in a future version. Use SearchType.SEARCH instead.",
38
+ DeprecationWarning,
39
+ stacklevel=2,
40
+ )
41
+ return cls._WEB
@@ -15,13 +15,11 @@ class BaseRateLimiterService(ABC):
15
15
  """A base class for tenant service."""
16
16
 
17
17
  @abstractmethod
18
- async def custom_identifier(self, request: Any, identifier_id: Any, **kwargs: Any) -> str:
18
+ async def custom_identifier(self, request: Any) -> str:
19
19
  """Abstract method to get a custom identifier for rate limiting.
20
20
 
21
21
  Args:
22
- request (Request): The incoming request.
23
- identifier_id (str): The identifier ID for rate limiting.
24
- **kwargs (Any): Additional keyword arguments.
22
+ request (Any): The incoming request.
25
23
 
26
24
  Returns:
27
25
  str: A custom identifier for rate limiting.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: glchat-plugin
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Author-email: GenAI SDK Team <gat-sdk@gdplabs.id>
5
5
  Requires-Python: <3.13,>=3.11
6
6
  Description-Content-Type: text/markdown
@@ -1,7 +1,7 @@
1
1
  glchat_plugin/__init__.py,sha256=SHSBMz7JDU6MecyIrhHu5-3NVs89JkXhyvD3ZGOkWOE,37
2
2
  glchat_plugin/config/__init__.py,sha256=DNnX8B_TvAN89oyMgq32zG1DeaezODrihiAXTwOPT5o,39
3
3
  glchat_plugin/config/app_config.py,sha256=9_ShYtaQ7Rp14sSkrIFLoOAMlbwVlm13EuCxzOn4NCI,426
4
- glchat_plugin/config/constant.py,sha256=U3Qg-MmrHUw51D8NcnCRbKfdhphCp_xEGbAjaGbaWHM,573
4
+ glchat_plugin/config/constant.py,sha256=yyHkEAtv0uF-B-ip6Qwr3MHOv_LQ-D5beZ7FiLzlaRU,1095
5
5
  glchat_plugin/context/__init__.py,sha256=3Wx_apMIS6z-m6eRs6hoyOsJFLJfKmMFOkrPDkPQfJI,40
6
6
  glchat_plugin/context/context_manager.py,sha256=0lhO0w_hd5dUdIEJQ2LOJFZsgpzitQU_aPZfTfQK3vw,1302
7
7
  glchat_plugin/pipeline/__init__.py,sha256=Sk-NfIGyA9VKIg0Bt5OHatNUYyWVPh9i5xhE5DFAfbo,41
@@ -9,7 +9,7 @@ glchat_plugin/pipeline/base_pipeline_preset_config.py,sha256=2DxJlroZ_tvVO6DYo1R
9
9
  glchat_plugin/pipeline/pipeline_handler.py,sha256=vDvIPI7Y39K_DI3jvQZsXC9YzQLUI4TuC-boyasdey8,24405
10
10
  glchat_plugin/pipeline/pipeline_plugin.py,sha256=1i7w7WepM5gON4Kx10SjL7NV7-SYVAmRE1EW2m_dOYg,4028
11
11
  glchat_plugin/service/__init__.py,sha256=9T4qzyYL052qLqva5el1F575OTRNaaf9tb9UvW-leTc,47
12
- glchat_plugin/service/base_rate_limiter_service.py,sha256=ndm97wTdro4MQaOQW720Z2j9f6V7aWpL9DkuUV4a4PA,1399
12
+ glchat_plugin/service/base_rate_limiter_service.py,sha256=tgKwdr4EqnGo5iDRVJPnlg8W9q0hiUzfeewAtdW4IjU,1232
13
13
  glchat_plugin/service/base_tenant_service.py,sha256=CB-jJWXi87nTcjO1XhPoSgNMf2YA_LfXoHr30ye0VtI,734
14
14
  glchat_plugin/service/base_user_service.py,sha256=qnRKl2u1xhGc4wMaOd_h_mAuxM7GduyDbqebj-k3GDE,2211
15
15
  glchat_plugin/storage/__init__.py,sha256=VNO7ua2yAOLzXwe6H6zDZz9yXbhQfKqNJzxE3G8IyfA,50
@@ -17,7 +17,7 @@ glchat_plugin/storage/base_anonymizer_storage.py,sha256=oFwovWrsjM7v1YjeN-4p-M3O
17
17
  glchat_plugin/storage/base_chat_history_storage.py,sha256=JvUUFMu_9jRBQ9yug_x7S4rQjZEA1vM5ombDvz-7zCE,11095
18
18
  glchat_plugin/tools/__init__.py,sha256=OFotHbgQ8mZEbdlvlv5aVMdxfubPvkVWAcTwhIPdIqQ,542
19
19
  glchat_plugin/tools/decorators.py,sha256=AvQBV18wzXWdC483RSSmpfh92zsqTyp8SzDLIkreIGU,3925
20
- glchat_plugin-0.2.4.dist-info/METADATA,sha256=BZLbz7i8foo489j0yIbc8tS0fUhbcHJIEeXtmlTzPiY,2063
21
- glchat_plugin-0.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
- glchat_plugin-0.2.4.dist-info/top_level.txt,sha256=fzKSXmct5dY4CAKku4-mkdHX-QPAyQVvo8vpQj8qizY,14
23
- glchat_plugin-0.2.4.dist-info/RECORD,,
20
+ glchat_plugin-0.2.6.dist-info/METADATA,sha256=mLIcOlhschBrPYOY9zJBYx1n5wMMdWNqz502WL5Y2fk,2063
21
+ glchat_plugin-0.2.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
+ glchat_plugin-0.2.6.dist-info/top_level.txt,sha256=fzKSXmct5dY4CAKku4-mkdHX-QPAyQVvo8vpQj8qizY,14
23
+ glchat_plugin-0.2.6.dist-info/RECORD,,