gllm-core-binary 0.4.4b3__cp313-cp313-win_amd64.whl → 0.4.5__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 +17 -17
- gllm_core/event/event_emitter.pyi +1 -1
- gllm_core/event/handler/event_handler.pyi +1 -2
- gllm_core/event/hook/event_hook.pyi +1 -2
- gllm_core/utils/__init__.pyi +2 -2
- gllm_core/utils/analyzer.pyi +8 -8
- gllm_core/utils/binary_handler_factory.pyi +4 -4
- gllm_core/utils/concurrency.pyi +1 -1
- gllm_core/utils/google_sheets.pyi +0 -2
- gllm_core/utils/validation.pyi +17 -1
- gllm_core.cp313-win_amd64.pyd +0 -0
- gllm_core.pyi +1 -1
- gllm_core_binary-0.4.5.dist-info/METADATA +177 -0
- {gllm_core_binary-0.4.4b3.dist-info → gllm_core_binary-0.4.5.dist-info}/RECORD +16 -16
- gllm_core_binary-0.4.4b3.dist-info/METADATA +0 -113
- {gllm_core_binary-0.4.4b3.dist-info → gllm_core_binary-0.4.5.dist-info}/WHEEL +0 -0
- {gllm_core_binary-0.4.4b3.dist-info → gllm_core_binary-0.4.5.dist-info}/top_level.txt +0 -0
gllm_core/constants.pyi
CHANGED
|
@@ -2,26 +2,26 @@ from enum import IntEnum, StrEnum
|
|
|
2
2
|
|
|
3
3
|
class EventLevel(IntEnum):
|
|
4
4
|
"""Defines event levels for the event emitter module."""
|
|
5
|
-
TRACE
|
|
6
|
-
DEBUG
|
|
7
|
-
INFO
|
|
8
|
-
WARN
|
|
9
|
-
ERROR
|
|
10
|
-
FATAL
|
|
5
|
+
TRACE: int
|
|
6
|
+
DEBUG: int
|
|
7
|
+
INFO: int
|
|
8
|
+
WARN: int
|
|
9
|
+
ERROR: int
|
|
10
|
+
FATAL: int
|
|
11
11
|
|
|
12
12
|
class EventType(StrEnum):
|
|
13
13
|
"""Defines event types for the event emitter module."""
|
|
14
|
-
ACTIVITY
|
|
15
|
-
CODE
|
|
16
|
-
REFERENCE
|
|
17
|
-
RESPONSE
|
|
18
|
-
STATUS
|
|
19
|
-
THINKING
|
|
14
|
+
ACTIVITY: str
|
|
15
|
+
CODE: str
|
|
16
|
+
REFERENCE: str
|
|
17
|
+
RESPONSE: str
|
|
18
|
+
STATUS: str
|
|
19
|
+
THINKING: str
|
|
20
20
|
|
|
21
21
|
class EventTypeSuffix(StrEnum):
|
|
22
22
|
"""Defines suffixes for block based event types."""
|
|
23
|
-
START
|
|
24
|
-
END
|
|
23
|
+
START: str
|
|
24
|
+
END: str
|
|
25
25
|
|
|
26
26
|
class DefaultChunkMetadata:
|
|
27
27
|
"""Defines constants for default chunk metadata keys."""
|
|
@@ -31,6 +31,6 @@ class DefaultChunkMetadata:
|
|
|
31
31
|
|
|
32
32
|
class LogMode(StrEnum):
|
|
33
33
|
"""Defines supported log modes for the SDK logging system."""
|
|
34
|
-
TEXT
|
|
35
|
-
SIMPLE
|
|
36
|
-
JSON
|
|
34
|
+
TEXT: str
|
|
35
|
+
SIMPLE: str
|
|
36
|
+
JSON: str
|
|
@@ -4,7 +4,7 @@ from gllm_core.event.handler import ConsoleEventHandler as ConsoleEventHandler,
|
|
|
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
|
-
from gllm_core.utils import
|
|
7
|
+
from gllm_core.utils import validate_enum as validate_enum
|
|
8
8
|
from typing import AsyncGenerator
|
|
9
9
|
|
|
10
10
|
class EventEmitter:
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import abc
|
|
2
1
|
from _typeshed import Incomplete
|
|
3
2
|
from abc import ABC, abstractmethod
|
|
4
3
|
from gllm_core.constants import EventType as EventType, EventTypeSuffix as EventTypeSuffix
|
|
@@ -8,7 +7,7 @@ from gllm_core.utils import LoggerManager as LoggerManager
|
|
|
8
7
|
DEFAULT_COLOR_MAP: Incomplete
|
|
9
8
|
DEFAULT_COLOR: str
|
|
10
9
|
|
|
11
|
-
class BaseEventHandler(ABC
|
|
10
|
+
class BaseEventHandler(ABC):
|
|
12
11
|
"""An abstract base class for all event handlers used throughout the Gen AI applications.
|
|
13
12
|
|
|
14
13
|
Attributes:
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import abc
|
|
2
1
|
from abc import ABC, abstractmethod
|
|
3
2
|
from gllm_core.schema import Event as Event
|
|
4
3
|
|
|
5
|
-
class BaseEventHook(ABC
|
|
4
|
+
class BaseEventHook(ABC):
|
|
6
5
|
"""An abstract base class for all event hooks."""
|
|
7
6
|
@abstractmethod
|
|
8
7
|
async def __call__(self, event: Event) -> Event:
|
gllm_core/utils/__init__.pyi
CHANGED
|
@@ -8,6 +8,6 @@ from gllm_core.utils.logger_manager import LoggerManager as LoggerManager
|
|
|
8
8
|
from gllm_core.utils.main_method_resolver import MainMethodResolver as MainMethodResolver
|
|
9
9
|
from gllm_core.utils.merger_method import MergerMethod as MergerMethod
|
|
10
10
|
from gllm_core.utils.retry import RetryConfig as RetryConfig, retry as retry
|
|
11
|
-
from gllm_core.utils.validation import validate_string_enum as validate_string_enum
|
|
11
|
+
from gllm_core.utils.validation import validate_enum as validate_enum, validate_string_enum as validate_string_enum
|
|
12
12
|
|
|
13
|
-
__all__ = ['BinaryHandlingStrategy', 'ChunkMetadataMerger', 'LoggerManager', 'MainMethodResolver', 'MergerMethod', 'RunAnalyzer', 'RetryConfig', 'asyncify', 'get_default_portal', 'binary_handler_factory', 'format_chunk_message', 'get_placeholder_keys', 'load_gsheets', 'syncify', 'retry', 'validate_string_enum']
|
|
13
|
+
__all__ = ['BinaryHandlingStrategy', 'ChunkMetadataMerger', 'LoggerManager', 'MainMethodResolver', 'MergerMethod', 'RunAnalyzer', 'RetryConfig', 'asyncify', 'get_default_portal', 'binary_handler_factory', 'format_chunk_message', 'get_placeholder_keys', 'load_gsheets', 'syncify', 'retry', 'validate_enum', 'validate_string_enum']
|
gllm_core/utils/analyzer.pyi
CHANGED
|
@@ -6,11 +6,11 @@ from typing import Any, Callable
|
|
|
6
6
|
|
|
7
7
|
class ParameterKind(StrEnum):
|
|
8
8
|
"""Enum representing the different kinds of parameters a method can have."""
|
|
9
|
-
POSITIONAL_ONLY
|
|
10
|
-
POSITIONAL_OR_KEYWORD
|
|
11
|
-
VAR_POSITIONAL
|
|
12
|
-
KEYWORD_ONLY
|
|
13
|
-
VAR_KEYWORD
|
|
9
|
+
POSITIONAL_ONLY: str
|
|
10
|
+
POSITIONAL_OR_KEYWORD: str
|
|
11
|
+
VAR_POSITIONAL: str
|
|
12
|
+
KEYWORD_ONLY: str
|
|
13
|
+
VAR_KEYWORD: str
|
|
14
14
|
|
|
15
15
|
class ParameterInfo(BaseModel):
|
|
16
16
|
"""Model representing information about a method parameter.
|
|
@@ -48,9 +48,9 @@ class ArgUsages(BaseModel):
|
|
|
48
48
|
|
|
49
49
|
class RunArgumentUsageType(StrEnum):
|
|
50
50
|
"""Enum representing the different types of argument usage in a run."""
|
|
51
|
-
FULL_PASS
|
|
52
|
-
REQUIRED
|
|
53
|
-
OPTIONAL
|
|
51
|
+
FULL_PASS: str
|
|
52
|
+
REQUIRED: str
|
|
53
|
+
OPTIONAL: str
|
|
54
54
|
|
|
55
55
|
class RunProfile(BaseModel):
|
|
56
56
|
"""Model representing the profile of a run.
|
|
@@ -10,10 +10,10 @@ class BinaryHandlingStrategy(StrEnum):
|
|
|
10
10
|
HEX (str): Encode binary data to hex.
|
|
11
11
|
SHOW_SIZE (str): Show the size of binary data.
|
|
12
12
|
"""
|
|
13
|
-
SKIP
|
|
14
|
-
BASE64
|
|
15
|
-
HEX
|
|
16
|
-
SHOW_SIZE
|
|
13
|
+
SKIP: str
|
|
14
|
+
BASE64: str
|
|
15
|
+
HEX: str
|
|
16
|
+
SHOW_SIZE: str
|
|
17
17
|
|
|
18
18
|
def binary_handler_factory(handling_type: BinaryHandlingStrategy | str) -> Callable[[bytes], str | None]:
|
|
19
19
|
"""Factory function to create appropriate binary data handler.
|
gllm_core/utils/concurrency.pyi
CHANGED
gllm_core/utils/validation.pyi
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
from
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from enum import Enum, StrEnum as StrEnum
|
|
3
|
+
from gllm_core.utils.logger_manager import LoggerManager as LoggerManager
|
|
4
|
+
from typing import TypeVar
|
|
2
5
|
|
|
6
|
+
E = TypeVar('E', bound=Enum)
|
|
7
|
+
logger: Incomplete
|
|
8
|
+
|
|
9
|
+
def validate_enum(enum_type: type[E], value: object) -> None:
|
|
10
|
+
"""Validates that the provided value is a valid enum value.
|
|
11
|
+
|
|
12
|
+
Args:
|
|
13
|
+
enum_type (type[E]): The type of the enum.
|
|
14
|
+
value (object): The value to validate.
|
|
15
|
+
|
|
16
|
+
Raises:
|
|
17
|
+
ValueError: If the provided value is not a valid enum value.
|
|
18
|
+
"""
|
|
3
19
|
def validate_string_enum(enum_type: type[StrEnum], value: str) -> None:
|
|
4
20
|
"""Validates that the provided value is a valid string enum value.
|
|
5
21
|
|
gllm_core.cp313-win_amd64.pyd
CHANGED
|
Binary file
|
gllm_core.pyi
CHANGED
|
@@ -18,7 +18,7 @@ import gllm_core.event.handler.ConsoleEventHandler
|
|
|
18
18
|
import gllm_core.event.handler.PrintEventHandler
|
|
19
19
|
import gllm_core.event.handler.StreamEventHandler
|
|
20
20
|
import gllm_core.schema.Event
|
|
21
|
-
import gllm_core.utils.
|
|
21
|
+
import gllm_core.utils.validate_enum
|
|
22
22
|
import rich
|
|
23
23
|
import rich.console
|
|
24
24
|
import abc
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: gllm-core-binary
|
|
3
|
+
Version: 0.4.5
|
|
4
|
+
Summary: A library containing core components for Gen AI applications.
|
|
5
|
+
Author-email: Dimitrij Ray <dimitrij.ray@gdplabs.id>, Henry Wicaksono <henry.wicaksono@gdplabs.id>, Resti Febriana <resti.febriana@gdplabs.id>
|
|
6
|
+
Requires-Python: <3.14,>=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Requires-Dist: anyio<5.0.0,>=4.10.0
|
|
9
|
+
Requires-Dist: deprecation<3.0.0,>=2.1.0
|
|
10
|
+
Requires-Dist: google<4.0.0,>=3.0.0
|
|
11
|
+
Requires-Dist: google-auth<3.0.0,>=2.38.0
|
|
12
|
+
Requires-Dist: gspread<7.0.0,>=6.1.4
|
|
13
|
+
Requires-Dist: numpy<2.0.0,>=1.26; python_version < "3.12"
|
|
14
|
+
Requires-Dist: numpy<3.0.0,>=1.26; python_version >= "3.12" and python_version < "3.13"
|
|
15
|
+
Requires-Dist: numpy<3.0.0,>=2.2; python_version >= "3.13"
|
|
16
|
+
Requires-Dist: pydantic<3.0.0,>=2.11.4
|
|
17
|
+
Requires-Dist: python-json-logger<4.0.0,>=3.3.0
|
|
18
|
+
Requires-Dist: rich<15.0.0,>=14.1.0
|
|
19
|
+
Requires-Dist: scipy<2.0.0,>=1.15.1
|
|
20
|
+
Provides-Extra: dev
|
|
21
|
+
Requires-Dist: coverage<8.0.0,>=7.4.4; extra == "dev"
|
|
22
|
+
Requires-Dist: mypy<2.0.0,>=1.15.0; extra == "dev"
|
|
23
|
+
Requires-Dist: pre-commit<4.0.0,>=3.7.0; extra == "dev"
|
|
24
|
+
Requires-Dist: pytest<9.0.0,>=8.1.1; extra == "dev"
|
|
25
|
+
Requires-Dist: pytest-asyncio<1.0.0,>=0.23.6; extra == "dev"
|
|
26
|
+
Requires-Dist: pytest-cov<6.0.0,>=5.0.0; extra == "dev"
|
|
27
|
+
Requires-Dist: ruff<1.0.0,>=0.6.7; extra == "dev"
|
|
28
|
+
Provides-Extra: langchain
|
|
29
|
+
Requires-Dist: langchain-core<1.0.0,>=0.3.0; extra == "langchain"
|
|
30
|
+
Provides-Extra: google-adk
|
|
31
|
+
Requires-Dist: google-adk<2.0.0,>=1.0.0; extra == "google-adk"
|
|
32
|
+
Requires-Dist: starlette<1.0.0,>=0.49.0; extra == "google-adk"
|
|
33
|
+
|
|
34
|
+
# GLLM Core
|
|
35
|
+
|
|
36
|
+
## Description
|
|
37
|
+
A core library providing foundational components and utilities for Generative AI applications.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Installation
|
|
42
|
+
|
|
43
|
+
### Prerequisites
|
|
44
|
+
|
|
45
|
+
Mandatory:
|
|
46
|
+
1. Python 3.11+ — [Install here](https://www.python.org/downloads/)
|
|
47
|
+
2. pip — [Install here](https://pip.pypa.io/en/stable/installation/)
|
|
48
|
+
3. uv — [Install here](https://docs.astral.sh/uv/getting-started/installation/)
|
|
49
|
+
|
|
50
|
+
Extras (required only for Artifact Registry installations):
|
|
51
|
+
1. gcloud CLI (for authentication) — [Install here](https://cloud.google.com/sdk/docs/install), then log in using:
|
|
52
|
+
```bash
|
|
53
|
+
gcloud auth login
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### Option 1: Install from Artifact Registry
|
|
59
|
+
|
|
60
|
+
This option requires authentication via the `gcloud` CLI.
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
uv pip install \
|
|
64
|
+
--extra-index-url "https://oauth2accesstoken:$(gcloud auth print-access-token)@glsdk.gdplabs.id/gen-ai-internal/simple/" \
|
|
65
|
+
gllm-core
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### Option 2: Install from PyPI
|
|
71
|
+
|
|
72
|
+
This option requires no authentication.
|
|
73
|
+
However, it installs the **binary wheel** version of the package, which is fully usable but **does not include source code**.
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
uv pip install gllm-core-binary
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Local Development Setup
|
|
82
|
+
|
|
83
|
+
### Prerequisites
|
|
84
|
+
|
|
85
|
+
1. Python 3.11+ — [Install here](https://www.python.org/downloads/)
|
|
86
|
+
2. pip — [Install here](https://pip.pypa.io/en/stable/installation/)
|
|
87
|
+
3. uv — [Install here](https://docs.astral.sh/uv/getting-started/installation/)
|
|
88
|
+
4. gcloud CLI — [Install here](https://cloud.google.com/sdk/docs/install), then log in using:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
gcloud auth login
|
|
92
|
+
```
|
|
93
|
+
5. Git — [Install here](https://git-scm.com/downloads)
|
|
94
|
+
6. Access to the [GDP Labs SDK GitHub repository](https://github.com/GDP-ADMIN/gl-sdk)
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### 1. Clone Repository
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
git clone git@github.com:GDP-ADMIN/gl-sdk.git
|
|
102
|
+
cd gl-sdk/libs/gllm-core
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
### 2. Setup Authentication
|
|
108
|
+
|
|
109
|
+
Set the following environment variables to authenticate with internal package indexes:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
export UV_INDEX_GEN_AI_INTERNAL_USERNAME=oauth2accesstoken
|
|
113
|
+
export UV_INDEX_GEN_AI_INTERNAL_PASSWORD="$(gcloud auth print-access-token)"
|
|
114
|
+
export UV_INDEX_GEN_AI_USERNAME=oauth2accesstoken
|
|
115
|
+
export UV_INDEX_GEN_AI_PASSWORD="$(gcloud auth print-access-token)"
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
### 3. Quick Setup
|
|
121
|
+
|
|
122
|
+
Run:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
make setup
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
### 4. Activate Virtual Environment
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
source .venv/bin/activate
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Local Development Utilities
|
|
139
|
+
|
|
140
|
+
The following Makefile commands are available for quick operations:
|
|
141
|
+
|
|
142
|
+
### Install uv
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
make install-uv
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Install Pre-Commit
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
make install-pre-commit
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Install Dependencies
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
make install
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Update Dependencies
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
make update
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Run Tests
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
make test
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## Contributing
|
|
175
|
+
|
|
176
|
+
Please refer to the [Python Style Guide](https://docs.google.com/document/d/1uRggCrHnVfDPBnG641FyQBwUwLoFw0kTzNqRm92vUwM/edit?usp=sharing)
|
|
177
|
+
for information about code style, documentation standards, and SCA requirements.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
gllm_core.cp313-win_amd64.pyd,sha256=
|
|
2
|
-
gllm_core.pyi,sha256=
|
|
1
|
+
gllm_core.cp313-win_amd64.pyd,sha256=tZX5jSx7C3LdqVdYxOmU0LidCbqKwrjML7ldEo3L6kM,1216000
|
|
2
|
+
gllm_core.pyi,sha256=yaptQynjmnHkD9cSX6dNIU6v2MRB_3yafwgtuoFPbh4,1439
|
|
3
3
|
gllm_core/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
gllm_core/constants.pyi,sha256=
|
|
4
|
+
gllm_core/constants.pyi,sha256=HfDsdHcPhUsSniEp_fScuVnSuhpJOM17rQIU2dV2DY8,843
|
|
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=LBqox8xFm6jSxPfBEftJr_zUmXwPk_qHNwU3bZaphhE,855
|
|
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=PDW4OtFUjjYxWjOINLOr42hCbzaTmGMvYaRKpLlX4-Y,7283
|
|
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
13
|
gllm_core/event/handler/console_event_handler.pyi,sha256=eCv0SaZEpbu8W2jQPLnWwXNzhGOSM5KAtDVUYfvlvMs,1494
|
|
14
|
-
gllm_core/event/handler/event_handler.pyi,sha256=
|
|
14
|
+
gllm_core/event/handler/event_handler.pyi,sha256=tC6q1-pvIBhX16uaryeLcpyf5Z6vQgjEVf3vo257gCo,2118
|
|
15
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
|
-
gllm_core/event/hook/event_hook.pyi,sha256=
|
|
18
|
+
gllm_core/event/hook/event_hook.pyi,sha256=IV5oq-ZZqrLG_hvdibphCpWDYu9e5lYuarQxt8dn76Y,565
|
|
19
19
|
gllm_core/event/hook/json_stringify_event_hook.pyi,sha256=I-QxbaLc4rEyqhW_f4INN5UxBg_ZofHHN1HQKfPJ7rs,585
|
|
20
20
|
gllm_core/schema/__init__.pyi,sha256=X7Gv3xgtl4Ylzsg9iuGgjJPkQey7OdvvIC_X1e5_LAI,310
|
|
21
21
|
gllm_core/schema/chunk.pyi,sha256=ZVYQitMtvMStiFssnTCgtSIcj30VSsK2dKscSysl3R4,2378
|
|
@@ -23,22 +23,22 @@ gllm_core/schema/component.pyi,sha256=fghUD8QJRXjjUT2jn64dkM_KjMv6MV9OAQUXjc7xsD
|
|
|
23
23
|
gllm_core/schema/event.pyi,sha256=Yd74uSWhIO1lx0_p70rYt-LMz4FZHbbbqJP7xhVh_pY,1335
|
|
24
24
|
gllm_core/schema/schema_generator.pyi,sha256=ToadC6UKEq35k32wUK1VaMKiICRtENXUYdAQOMlTg3U,1445
|
|
25
25
|
gllm_core/schema/tool.pyi,sha256=T5TufJZPYUzYoSPZBX0FkqgZ9u03VAIsZdwvY1PS7nw,8848
|
|
26
|
-
gllm_core/utils/__init__.pyi,sha256=
|
|
27
|
-
gllm_core/utils/analyzer.pyi,sha256=
|
|
28
|
-
gllm_core/utils/binary_handler_factory.pyi,sha256=
|
|
26
|
+
gllm_core/utils/__init__.pyi,sha256=KTUv1RiXQpr8Ef2owMYWUrAB7U_LpC9lTb0-rcHx0NM,1408
|
|
27
|
+
gllm_core/utils/analyzer.pyi,sha256=E3xvelXssLGrKMRvHn_Ap-ao3dhCLPM-q2Pr1vHAdgw,4372
|
|
28
|
+
gllm_core/utils/binary_handler_factory.pyi,sha256=Cpsv8gvCuD52c-q8sjZizSiRHV0h5sVdgYP9uMgKWbg,1717
|
|
29
29
|
gllm_core/utils/chunk_metadata_merger.pyi,sha256=J1lHTFV-0IiC6xKzzC7x1D1wBoki249muEU2HrF6C58,2317
|
|
30
|
-
gllm_core/utils/concurrency.pyi,sha256=
|
|
30
|
+
gllm_core/utils/concurrency.pyi,sha256=S_B9BLhVzOOBANknZW0eVTKFHVjCYI3vD7zwLQfawvI,3941
|
|
31
31
|
gllm_core/utils/event_formatter.pyi,sha256=ocQ_Ev_XorRhLzj0c2szlclz8V3_Ysbg6qHmjhmur3k,1375
|
|
32
|
-
gllm_core/utils/google_sheets.pyi,sha256=
|
|
32
|
+
gllm_core/utils/google_sheets.pyi,sha256=S3ArLRoWqGZpzqmuQ48xVVOZ9OjLILdD8Ez51QfufFM,847
|
|
33
33
|
gllm_core/utils/imports.pyi,sha256=-KM0pyw7yFVCUZjHjoNBRFgEnI8hlr0pquKuhcA2X9M,2196
|
|
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
37
|
gllm_core/utils/retry.pyi,sha256=KxlPzURzZfCSgKC44v98nR2bqamzHqtbRuXLDEuX29c,1614
|
|
38
38
|
gllm_core/utils/similarity.pyi,sha256=HmSxE5VfPwYZYih_bSIz8QRDbkouO_jij-FX6TSCEdM,439
|
|
39
|
-
gllm_core/utils/validation.pyi,sha256
|
|
39
|
+
gllm_core/utils/validation.pyi,sha256=NFfyDCYsqHv44Z_5RqpSUEiuETpqH5Eoia5xwC4n1MU,938
|
|
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.5.dist-info/METADATA,sha256=LzXLUK6g9BiW6kUOtm5CLHSBS0Hsm8mrnJlmApPcJNA,4657
|
|
42
|
+
gllm_core_binary-0.4.5.dist-info/WHEEL,sha256=O_u6PJIQ2pIcyIInxVQ9r-yArMuUZbBIaF1kpYVkYxA,96
|
|
43
|
+
gllm_core_binary-0.4.5.dist-info/top_level.txt,sha256=UYoTGvK_Yec95-_QUuVCKEr6PUXb5Lc7Dr-x8SeX9uM,10
|
|
44
|
+
gllm_core_binary-0.4.5.dist-info/RECORD,,
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.2
|
|
2
|
-
Name: gllm-core-binary
|
|
3
|
-
Version: 0.4.4b3
|
|
4
|
-
Summary: A library containing core components for Gen AI applications.
|
|
5
|
-
Author-email: Dimitrij Ray <dimitrij.ray@gdplabs.id>, Henry Wicaksono <henry.wicaksono@gdplabs.id>, Resti Febriana <resti.febriana@gdplabs.id>
|
|
6
|
-
Requires-Python: <3.14,>=3.11
|
|
7
|
-
Description-Content-Type: text/markdown
|
|
8
|
-
Requires-Dist: poetry<3.0.0,>=2.1.3
|
|
9
|
-
Requires-Dist: anyio<5.0.0,>=4.10.0
|
|
10
|
-
Requires-Dist: deprecation<3.0.0,>=2.1.0
|
|
11
|
-
Requires-Dist: google<4.0.0,>=3.0.0
|
|
12
|
-
Requires-Dist: google-auth<3.0.0,>=2.38.0
|
|
13
|
-
Requires-Dist: gspread<7.0.0,>=6.1.4
|
|
14
|
-
Requires-Dist: numpy<2.0.0,>=1.26; python_version < "3.12"
|
|
15
|
-
Requires-Dist: numpy<3.0.0,>=1.26; python_version >= "3.12" and python_version < "3.13"
|
|
16
|
-
Requires-Dist: numpy<3.0.0,>=2.2; python_version >= "3.13"
|
|
17
|
-
Requires-Dist: pydantic<3.0.0,>=2.11.4
|
|
18
|
-
Requires-Dist: python-json-logger<4.0.0,>=3.3.0
|
|
19
|
-
Requires-Dist: rich<15.0.0,>=14.1.0
|
|
20
|
-
Requires-Dist: scipy<2.0.0,>=1.15.1
|
|
21
|
-
Requires-Dist: virtualenv==20.30.0
|
|
22
|
-
Provides-Extra: dev
|
|
23
|
-
Requires-Dist: coverage<8.0.0,>=7.4.4; extra == "dev"
|
|
24
|
-
Requires-Dist: mypy<2.0.0,>=1.15.0; extra == "dev"
|
|
25
|
-
Requires-Dist: pre-commit<4.0.0,>=3.7.0; extra == "dev"
|
|
26
|
-
Requires-Dist: pytest<9.0.0,>=8.1.1; extra == "dev"
|
|
27
|
-
Requires-Dist: pytest-asyncio<1.0.0,>=0.23.6; extra == "dev"
|
|
28
|
-
Requires-Dist: pytest-cov<6.0.0,>=5.0.0; extra == "dev"
|
|
29
|
-
Requires-Dist: ruff<1.0.0,>=0.6.7; extra == "dev"
|
|
30
|
-
Provides-Extra: langchain
|
|
31
|
-
Requires-Dist: langchain-core<1.0.0,>=0.3.0; extra == "langchain"
|
|
32
|
-
Provides-Extra: google-adk
|
|
33
|
-
Requires-Dist: google-adk<2.0.0,>=1.0.0; extra == "google-adk"
|
|
34
|
-
Requires-Dist: starlette<1.0.0,>=0.49.0; extra == "google-adk"
|
|
35
|
-
|
|
36
|
-
# GLLM Core
|
|
37
|
-
|
|
38
|
-
## Description
|
|
39
|
-
|
|
40
|
-
A core library providing foundational components and utilities for Generative AI applications.
|
|
41
|
-
|
|
42
|
-
## Installation
|
|
43
|
-
|
|
44
|
-
### Prerequisites
|
|
45
|
-
1. Python 3.11+ - [Install here](https://www.python.org/downloads/)
|
|
46
|
-
2. Pip (if using Pip) - [Install here](https://pip.pypa.io/en/stable/installation/)
|
|
47
|
-
3. Poetry 2.1.4+ - [Install here](https://python-poetry.org/docs/#installation)
|
|
48
|
-
4. Git (if using Git) - [Install here](https://git-scm.com/downloads)
|
|
49
|
-
5. gcloud CLI (for authentication) - [Install here](https://cloud.google.com/sdk/docs/install)
|
|
50
|
-
6. For git installation, access to the [GDP Labs SDK github repository](https://github.com/GDP-ADMIN/gl-sdk)
|
|
51
|
-
|
|
52
|
-
### 1. Installation from Artifact Registry
|
|
53
|
-
Choose one of the following methods to install the package:
|
|
54
|
-
|
|
55
|
-
#### Using pip
|
|
56
|
-
```bash
|
|
57
|
-
pip install gllm-core-binary
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
#### Using Poetry
|
|
61
|
-
```bash
|
|
62
|
-
poetry add gllm-core-binary
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### 2. Development Installation (Git)
|
|
66
|
-
For development purposes, you can install directly from the Git repository:
|
|
67
|
-
```bash
|
|
68
|
-
git clone git@github.com:GDP-ADMIN/gl-sdk.git
|
|
69
|
-
cd gl-sdk/libs/gllm-core
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Local Development Setup
|
|
73
|
-
|
|
74
|
-
### Quick Setup (Recommended)
|
|
75
|
-
For local development with editable gllm packages, use the provided Makefile:
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
# Complete setup: installs Poetry, configures auth, installs packages, sets up pre-commit
|
|
79
|
-
make setup
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
The following are the available Makefile targets:
|
|
83
|
-
|
|
84
|
-
1. `make setup` - Complete development setup (recommended for new developers)
|
|
85
|
-
2. `make install-poetry` - Install or upgrade Poetry to the latest version
|
|
86
|
-
3. `make auth` - Configure authentication for internal repositories
|
|
87
|
-
4. `make install` - Install all dependencies
|
|
88
|
-
5. `make install-pre-commit` - Set up pre-commit hooks
|
|
89
|
-
6. `make update` - Update dependencies
|
|
90
|
-
|
|
91
|
-
### Manual Development Setup (Legacy)
|
|
92
|
-
If you prefer to manage dependencies manually:
|
|
93
|
-
|
|
94
|
-
1. Go to root folder of `gllm-core` module, e.g. `cd libs/gllm-core`.
|
|
95
|
-
2. Run `poetry shell` to create a virtual environment.
|
|
96
|
-
3. Run `poetry lock` to create a lock file if you haven't done it yet.
|
|
97
|
-
4. Run `poetry install` to install the `gllm-core` requirements for the first time.
|
|
98
|
-
5. Run `poetry update` if you update any dependency module version at `pyproject.toml`.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
## Contributing
|
|
102
|
-
Please refer to this [Python Style Guide](https://docs.google.com/document/d/1uRggCrHnVfDPBnG641FyQBwUwLoFw0kTzNqRm92vUwM/edit?usp=sharing)
|
|
103
|
-
to get information about code style, documentation standard, and SCA that you need to use when contributing to this project
|
|
104
|
-
|
|
105
|
-
### Getting Started with Development
|
|
106
|
-
1. Clone the repository and navigate to the gllm-core directory
|
|
107
|
-
2. Run `make setup` to set up your development environment
|
|
108
|
-
3. Run `which python` to get the path to be referenced at Visual Studio Code interpreter path (`Ctrl`+`Shift`+`P` or `Cmd`+`Shift`+`P`)
|
|
109
|
-
4. Try running the unit test to see if it's working:
|
|
110
|
-
```bash
|
|
111
|
-
poetry run pytest -s tests/unit_tests/
|
|
112
|
-
```
|
|
113
|
-
5. When you want to update the dependencies, run `make update`
|
|
File without changes
|
|
File without changes
|