ai-pipeline-core 0.1.4__tar.gz → 0.1.5__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.
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/PKG-INFO +3 -3
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/README.md +1 -1
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/__init__.py +1 -1
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/documents/document.py +2 -2
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/tracing.py +4 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/pyproject.toml +3 -3
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/.gitignore +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/LICENSE +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/documents/__init__.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/documents/document_list.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/documents/flow_document.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/documents/mime_type.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/documents/task_document.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/documents/utils.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/exceptions.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/flow/__init__.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/flow/config.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/llm/__init__.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/llm/ai_messages.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/llm/client.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/llm/model_options.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/llm/model_response.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/llm/model_types.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/logging/__init__.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/logging/logging.yml +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/logging/logging_config.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/logging/logging_mixin.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/prompt_manager.py +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/py.typed +0 -0
- {ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/settings.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ai-pipeline-core
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Core utilities for AI-powered processing pipelines using prefect
|
|
5
5
|
Project-URL: Homepage, https://github.com/bbarwik/ai-pipeline-core
|
|
6
6
|
Project-URL: Repository, https://github.com/bbarwik/ai-pipeline-core
|
|
@@ -20,7 +20,7 @@ Classifier: Typing :: Typed
|
|
|
20
20
|
Requires-Python: >=3.12
|
|
21
21
|
Requires-Dist: httpx>=0.28.1
|
|
22
22
|
Requires-Dist: jinja2>=3.1.6
|
|
23
|
-
Requires-Dist: lmnr>=0.7.
|
|
23
|
+
Requires-Dist: lmnr>=0.7.5
|
|
24
24
|
Requires-Dist: openai>=1.99.9
|
|
25
25
|
Requires-Dist: prefect>=3.4.13
|
|
26
26
|
Requires-Dist: pydantic-settings>=2.10.1
|
|
@@ -471,7 +471,7 @@ Built with:
|
|
|
471
471
|
|
|
472
472
|
## Stability Notice
|
|
473
473
|
|
|
474
|
-
**Current Version**: 0.1.
|
|
474
|
+
**Current Version**: 0.1.5
|
|
475
475
|
**Status**: Internal Preview
|
|
476
476
|
**API Stability**: Unstable - Breaking changes expected
|
|
477
477
|
**Recommended Use**: Learning and reference only
|
|
@@ -25,7 +25,7 @@ from .mime_type import (
|
|
|
25
25
|
class Document(BaseModel, ABC):
|
|
26
26
|
"""Abstract base class for all documents"""
|
|
27
27
|
|
|
28
|
-
MAX_CONTENT_SIZE: ClassVar[int] =
|
|
28
|
+
MAX_CONTENT_SIZE: ClassVar[int] = 25 * 1024 * 1024 # 25MB default
|
|
29
29
|
DESCRIPTION_EXTENSION: ClassVar[str] = ".description.md"
|
|
30
30
|
MARKDOWN_LIST_SEPARATOR: ClassVar[str] = "\n\n---\n\n"
|
|
31
31
|
|
|
@@ -105,7 +105,7 @@ class Document(BaseModel, ABC):
|
|
|
105
105
|
except TypeError:
|
|
106
106
|
raise DocumentNameError(f"{cls.__name__}.FILES must be an Enum of string values")
|
|
107
107
|
|
|
108
|
-
if name not in allowed:
|
|
108
|
+
if len(allowed) > 0 and name not in allowed:
|
|
109
109
|
allowed_str = ", ".join(sorted(allowed))
|
|
110
110
|
raise DocumentNameError(f"Invalid filename '{name}'. Allowed names: {allowed_str}")
|
|
111
111
|
|
|
@@ -103,6 +103,7 @@ def trace(
|
|
|
103
103
|
ignore_inputs: list[str] | None = None,
|
|
104
104
|
input_formatter: Callable[..., str] | None = None,
|
|
105
105
|
output_formatter: Callable[..., str] | None = None,
|
|
106
|
+
preserve_global_context: bool = True,
|
|
106
107
|
) -> Callable[[Callable[P, R]], Callable[P, R]] | Callable[P, R]:
|
|
107
108
|
"""Decorator that wires Laminar tracing and observation into a function.
|
|
108
109
|
|
|
@@ -136,6 +137,7 @@ def trace(
|
|
|
136
137
|
_ignore_inputs = ignore_inputs
|
|
137
138
|
_input_formatter = input_formatter
|
|
138
139
|
_output_formatter = output_formatter
|
|
140
|
+
_preserve_global_context = preserve_global_context
|
|
139
141
|
|
|
140
142
|
# --- Check debug_only flag and environment variable ---
|
|
141
143
|
if debug_only and os.getenv("LMNR_DEBUG", "").lower() != "true":
|
|
@@ -173,6 +175,8 @@ def trace(
|
|
|
173
175
|
observe_params["input_formatter"] = _input_formatter
|
|
174
176
|
if _output_formatter is not None:
|
|
175
177
|
observe_params["output_formatter"] = _output_formatter
|
|
178
|
+
if _preserve_global_context:
|
|
179
|
+
observe_params["preserve_global_context"] = _preserve_global_context
|
|
176
180
|
|
|
177
181
|
return observe_params
|
|
178
182
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ai-pipeline-core"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.5"
|
|
4
4
|
description = "Core utilities for AI-powered processing pipelines using prefect"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = {text = "MIT"}
|
|
@@ -22,7 +22,7 @@ classifiers = [
|
|
|
22
22
|
dependencies = [
|
|
23
23
|
"httpx>=0.28.1",
|
|
24
24
|
"Jinja2>=3.1.6",
|
|
25
|
-
"lmnr>=0.7.
|
|
25
|
+
"lmnr>=0.7.5",
|
|
26
26
|
"openai>=1.99.9",
|
|
27
27
|
"prefect>=3.4.13",
|
|
28
28
|
"pydantic-settings>=2.10.1",
|
|
@@ -140,7 +140,7 @@ reportIncompatibleVariableOverride = "error"
|
|
|
140
140
|
reportMissingParameterType = "warning"
|
|
141
141
|
|
|
142
142
|
[tool.bumpversion]
|
|
143
|
-
current_version = "0.1.
|
|
143
|
+
current_version = "0.1.5"
|
|
144
144
|
commit = true
|
|
145
145
|
tag = true
|
|
146
146
|
tag_name = "v{new_version}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/documents/document_list.py
RENAMED
|
File without changes
|
{ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/documents/flow_document.py
RENAMED
|
File without changes
|
|
File without changes
|
{ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/documents/task_document.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ai_pipeline_core-0.1.4 → ai_pipeline_core-0.1.5}/ai_pipeline_core/logging/logging_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|