gllm-core-binary 0.4.0__cp313-cp313-win_amd64.whl → 0.4.0b1__cp313-cp313-win_amd64.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.
- gllm_core/constants.pyi +0 -1
- gllm_core/event/event_emitter.pyi +9 -21
- gllm_core/event/handler/console_event_handler.pyi +0 -1
- gllm_core/event/handler/print_event_handler.pyi +1 -2
- gllm_core/utils/retry.pyi +0 -2
- gllm_core.cp313-win_amd64.pyd +0 -0
- gllm_core.pyi +2 -2
- {gllm_core_binary-0.4.0.dist-info → gllm_core_binary-0.4.0b1.dist-info}/METADATA +1 -1
- {gllm_core_binary-0.4.0.dist-info → gllm_core_binary-0.4.0b1.dist-info}/RECORD +11 -11
- {gllm_core_binary-0.4.0.dist-info → gllm_core_binary-0.4.0b1.dist-info}/WHEEL +0 -0
- {gllm_core_binary-0.4.0.dist-info → gllm_core_binary-0.4.0b1.dist-info}/top_level.txt +0 -0
gllm_core/constants.pyi
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from gllm_core.constants import EventLevel as EventLevel
|
|
2
|
+
from gllm_core.constants import EventLevel as EventLevel
|
|
3
3
|
from gllm_core.event.handler import ConsoleEventHandler as ConsoleEventHandler, PrintEventHandler as PrintEventHandler, StreamEventHandler as StreamEventHandler
|
|
4
4
|
from gllm_core.event.handler.event_handler import BaseEventHandler as BaseEventHandler
|
|
5
5
|
from gllm_core.event.hook.event_hook import BaseEventHook as BaseEventHook
|
|
6
6
|
from gllm_core.schema import Event as Event
|
|
7
7
|
from gllm_core.utils import validate_string_enum as validate_string_enum
|
|
8
|
-
from typing import
|
|
8
|
+
from typing import AsyncGenerator
|
|
9
9
|
|
|
10
10
|
class EventEmitter:
|
|
11
11
|
'''Handles events emitting using event handlers with various levels and types.
|
|
@@ -123,31 +123,19 @@ class EventEmitter:
|
|
|
123
123
|
Returns:
|
|
124
124
|
EventEmitter: A new instance of the EventEmitter class with a single StreamEventHandler.
|
|
125
125
|
"""
|
|
126
|
-
async def emit(self,
|
|
127
|
-
|
|
126
|
+
async def emit(self, event: Event, disabled_handlers: list[str] | None = None) -> None:
|
|
127
|
+
"""Emits an event using the configured event handlers.
|
|
128
128
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
then passed to all handlers except those listed in disabled_handlers. Events are only
|
|
132
|
-
processed if their severity level meets or exceeds the EventEmitter\'s configured level.
|
|
129
|
+
Events are emitted by passing them to all handlers except those listed in disabled_handlers.
|
|
130
|
+
Events are only processed if their severity level meets or exceeds the EventEmitter's configured level.
|
|
133
131
|
|
|
134
132
|
Args:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
event_level (EventLevel, optional): The severity level of the event.
|
|
138
|
-
Defaults to EventLevel.DEBUG.
|
|
139
|
-
event_type (str, optional): The type of event (e.g., "status", "response").
|
|
140
|
-
Defaults to EventType.STATUS.value.
|
|
141
|
-
metadata (dict[str, Any] | None, optional): Additional metadata for the event.
|
|
142
|
-
Defaults to None, which creates an empty dictionary.
|
|
143
|
-
event_id (str | None, optional): Unique identifier for the event.
|
|
144
|
-
Defaults to None, which creates an empty string.
|
|
145
|
-
disabled_handlers (list[str] | None, optional): Names of handlers to skip for
|
|
146
|
-
this event. Defaults to None.
|
|
133
|
+
event (Event): The event to emit.
|
|
134
|
+
disabled_handlers (list[str] | None, optional): Names of handlers to skip for this event. Defaults to None.
|
|
147
135
|
|
|
148
136
|
Raises:
|
|
149
137
|
ValueError: If the provided event_level is not a valid EventLevel.
|
|
150
|
-
|
|
138
|
+
"""
|
|
151
139
|
async def close(self) -> None:
|
|
152
140
|
"""Closes all handlers in the handler list.
|
|
153
141
|
|
|
@@ -15,7 +15,7 @@ class PrintEventHandler(BaseEventHandler):
|
|
|
15
15
|
"""
|
|
16
16
|
padding_char: Incomplete
|
|
17
17
|
console: Incomplete
|
|
18
|
-
def __init__(self, name: str | None = None, color_map: dict[str, str] | None = None, padding_char: str = '='
|
|
18
|
+
def __init__(self, name: str | None = None, color_map: dict[str, str] | None = None, padding_char: str = '=') -> None:
|
|
19
19
|
'''Initializes a new instance of the PrintEventHandler class.
|
|
20
20
|
|
|
21
21
|
Args:
|
|
@@ -24,7 +24,6 @@ class PrintEventHandler(BaseEventHandler):
|
|
|
24
24
|
color_map (dict[str, str], optional): The dictionary that maps certain event types to their corresponding
|
|
25
25
|
colors in Rich format. Defaults to None, in which case the default color map will be used.
|
|
26
26
|
padding_char (str, optional): The character to use for padding. Defaults to "=".
|
|
27
|
-
separator_length (int | None, optional): Deprecated parameter. Defaults to None.
|
|
28
27
|
'''
|
|
29
28
|
async def emit(self, event: Event) -> None:
|
|
30
29
|
"""Emits the given event.
|
gllm_core/utils/retry.pyi
CHANGED
|
@@ -15,7 +15,6 @@ class RetryConfig(BaseModel):
|
|
|
15
15
|
max_retries (int): Maximum number of retry attempts.
|
|
16
16
|
base_delay (float): Base delay in seconds between retries.
|
|
17
17
|
max_delay (float): Maximum delay in seconds between retries.
|
|
18
|
-
exponential_base (float): Base for exponential backoff. Deprecated and will be removed in v0.4.
|
|
19
18
|
jitter (bool): Whether to add random jitter to delays.
|
|
20
19
|
timeout (float | None): Overall timeout in seconds for the entire operation. If None, timeout is disabled.
|
|
21
20
|
retry_on_exceptions (tuple[type[Exception], ...]): Tuple of exception types to retry on.
|
|
@@ -23,7 +22,6 @@ class RetryConfig(BaseModel):
|
|
|
23
22
|
max_retries: int
|
|
24
23
|
base_delay: float
|
|
25
24
|
max_delay: float
|
|
26
|
-
exponential_base: float
|
|
27
25
|
jitter: bool
|
|
28
26
|
timeout: float | None
|
|
29
27
|
retry_on_exceptions: tuple[type[Exception], ...]
|
gllm_core.cp313-win_amd64.pyd
CHANGED
|
Binary file
|
gllm_core.pyi
CHANGED
|
@@ -14,19 +14,18 @@ import gllm_core.adapters.tool.from_langchain_tool
|
|
|
14
14
|
import asyncio
|
|
15
15
|
import typing
|
|
16
16
|
import enum
|
|
17
|
-
import datetime
|
|
18
17
|
import gllm_core.event.handler.ConsoleEventHandler
|
|
19
18
|
import gllm_core.event.handler.PrintEventHandler
|
|
20
19
|
import gllm_core.event.handler.StreamEventHandler
|
|
21
20
|
import gllm_core.schema.Event
|
|
22
21
|
import gllm_core.utils.validate_string_enum
|
|
23
|
-
import json
|
|
24
22
|
import rich
|
|
25
23
|
import rich.console
|
|
26
24
|
import abc
|
|
27
25
|
import gllm_core.utils.LoggerManager
|
|
28
26
|
import rich.panel
|
|
29
27
|
import rich.style
|
|
28
|
+
import json
|
|
30
29
|
import gllm_core.event.EventEmitter
|
|
31
30
|
import gllm_core.schema.Component
|
|
32
31
|
import gllm_core.utils.get_placeholder_keys
|
|
@@ -39,6 +38,7 @@ import warnings
|
|
|
39
38
|
import functools
|
|
40
39
|
import traceback
|
|
41
40
|
import gllm_core.utils.BinaryHandlingStrategy
|
|
41
|
+
import datetime
|
|
42
42
|
import ast
|
|
43
43
|
import textwrap
|
|
44
44
|
import base64
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: gllm-core-binary
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.0b1
|
|
4
4
|
Summary: A library containing core components for Gen AI applications.
|
|
5
5
|
Author-email: Dimitrij Ray <dimitrij.ray@gdplabs.id>, Henry Wicaksono <henry.wicaksono@gdplabs.id>, Resti Febriana <resti.febriana@gdplabs.id>
|
|
6
6
|
Requires-Python: <3.14,>=3.11
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
gllm_core.cp313-win_amd64.pyd,sha256=
|
|
2
|
-
gllm_core.pyi,sha256=
|
|
1
|
+
gllm_core.cp313-win_amd64.pyd,sha256=vuAq2oxZVb-vwnz9FADosQGmqvKjGEddudJ9OotZbO8,1199104
|
|
2
|
+
gllm_core.pyi,sha256=n1D4ZCjhQUKv7qxTYLWh-afK6ECPZCddwckzt6afO2w,1446
|
|
3
3
|
gllm_core/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
gllm_core/constants.pyi,sha256=
|
|
4
|
+
gllm_core/constants.pyi,sha256=9M5UxEkdttu4fSJTLxhjt7q1xTRYbjTFheM5EjQ5Bs4,904
|
|
5
5
|
gllm_core/adapters/__init__.pyi,sha256=N8JBGr2mPUMAGaMd__7XxGr2NAzfaFMuNH15QkSfbrA,187
|
|
6
6
|
gllm_core/adapters/tool/__init__.pyi,sha256=zRmMo1ilDaYF-cErfkQqy8zGnArHebdWmox-P34_7fI,244
|
|
7
7
|
gllm_core/adapters/tool/google_adk.pyi,sha256=0awaKRXmmK5NiAP9vNNYjMARDPWfWyQqy29k3WHoX2s,953
|
|
8
8
|
gllm_core/adapters/tool/langchain.pyi,sha256=J2vRizEVUORs-GI4uyIBNpm05Np65PmJ4gyd1DwaAcU,415
|
|
9
9
|
gllm_core/event/__init__.pyi,sha256=HVs5C80lFzVEH7mO8KJTUqEPi_7KyPvNeMLuoG-hDeE,177
|
|
10
|
-
gllm_core/event/event_emitter.pyi,sha256=
|
|
10
|
+
gllm_core/event/event_emitter.pyi,sha256=dzhlOGnA2h5-OSRZHt-AJ-THul-rDUatfwr6dyYzYu8,7297
|
|
11
11
|
gllm_core/event/messenger.pyi,sha256=8Nvra-a7RqnfX0PAtm-Of5M8CvsYr0L_1k3HgdNCR5I,3190
|
|
12
12
|
gllm_core/event/handler/__init__.pyi,sha256=gZ21Fjjog3-e3-_Xv5sTpX9_Mx8X2LUzTrqp_tPisCg,377
|
|
13
|
-
gllm_core/event/handler/console_event_handler.pyi,sha256=
|
|
13
|
+
gllm_core/event/handler/console_event_handler.pyi,sha256=eCv0SaZEpbu8W2jQPLnWwXNzhGOSM5KAtDVUYfvlvMs,1494
|
|
14
14
|
gllm_core/event/handler/event_handler.pyi,sha256=chEYnw3Rp9Lk3Cz4dSn6EVlzje4BG-SlM82J-4UE5Hw,2153
|
|
15
|
-
gllm_core/event/handler/print_event_handler.pyi,sha256=
|
|
15
|
+
gllm_core/event/handler/print_event_handler.pyi,sha256=D_xNtpcBsGl7NVSCvFKEGvaUqfMTxPaQV8zXECwmZ2Q,1674
|
|
16
16
|
gllm_core/event/handler/stream_event_handler.pyi,sha256=5faGSFQLBN7XMqd4nIfGkdTBI_ALVaE-fmxVAjzca9w,2908
|
|
17
17
|
gllm_core/event/hook/__init__.pyi,sha256=gSDHYl0yi00zHHMRvU_Eg8qLqsGHESTvoNE3MXig-g0,149
|
|
18
18
|
gllm_core/event/hook/event_hook.pyi,sha256=rMatofdNAwHI65ya_7-q3NAfmTuKhc2WkXeiGPAvcKI,600
|
|
@@ -34,11 +34,11 @@ gllm_core/utils/imports.pyi,sha256=-KM0pyw7yFVCUZjHjoNBRFgEnI8hlr0pquKuhcA2X9M,2
|
|
|
34
34
|
gllm_core/utils/logger_manager.pyi,sha256=IDRgA-5jRDu4miO5Ru_tFJHql2JlHdr1GvZdmdS9Sg8,7159
|
|
35
35
|
gllm_core/utils/main_method_resolver.pyi,sha256=dHozSqFMwCyVorQ0ZE9N-c2V4PkpF8FdU1VGGPvTjK4,2178
|
|
36
36
|
gllm_core/utils/merger_method.pyi,sha256=JsgHnO47cqenqNxCrHqhAR-nnR_dEqE-7wprVrd8ZFg,1868
|
|
37
|
-
gllm_core/utils/retry.pyi,sha256=
|
|
37
|
+
gllm_core/utils/retry.pyi,sha256=KxlPzURzZfCSgKC44v98nR2bqamzHqtbRuXLDEuX29c,1614
|
|
38
38
|
gllm_core/utils/similarity.pyi,sha256=HmSxE5VfPwYZYih_bSIz8QRDbkouO_jij-FX6TSCEdM,439
|
|
39
39
|
gllm_core/utils/validation.pyi,sha256=-RdMmb8afH7F7q4Ao7x6FbwaDfxUHn3hA3WiOgzB-3s,397
|
|
40
40
|
gllm_core.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
|
|
41
|
-
gllm_core_binary-0.4.
|
|
42
|
-
gllm_core_binary-0.4.
|
|
43
|
-
gllm_core_binary-0.4.
|
|
44
|
-
gllm_core_binary-0.4.
|
|
41
|
+
gllm_core_binary-0.4.0b1.dist-info/METADATA,sha256=7hsreuUBYOfJKFX8_Jg0lPyJJB9pduZUJFeEPBpbkqM,4609
|
|
42
|
+
gllm_core_binary-0.4.0b1.dist-info/WHEEL,sha256=O_u6PJIQ2pIcyIInxVQ9r-yArMuUZbBIaF1kpYVkYxA,96
|
|
43
|
+
gllm_core_binary-0.4.0b1.dist-info/top_level.txt,sha256=UYoTGvK_Yec95-_QUuVCKEr6PUXb5Lc7Dr-x8SeX9uM,10
|
|
44
|
+
gllm_core_binary-0.4.0b1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|