ai-pipeline-core 0.2.9__py3-none-any.whl → 0.3.3__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.
- ai_pipeline_core/__init__.py +32 -5
- ai_pipeline_core/debug/__init__.py +26 -0
- ai_pipeline_core/debug/config.py +91 -0
- ai_pipeline_core/debug/content.py +705 -0
- ai_pipeline_core/debug/processor.py +99 -0
- ai_pipeline_core/debug/summary.py +236 -0
- ai_pipeline_core/debug/writer.py +913 -0
- ai_pipeline_core/deployment/__init__.py +46 -0
- ai_pipeline_core/deployment/base.py +681 -0
- ai_pipeline_core/deployment/contract.py +84 -0
- ai_pipeline_core/deployment/helpers.py +98 -0
- ai_pipeline_core/documents/flow_document.py +1 -1
- ai_pipeline_core/documents/task_document.py +1 -1
- ai_pipeline_core/documents/temporary_document.py +1 -1
- ai_pipeline_core/flow/config.py +13 -2
- ai_pipeline_core/flow/options.py +4 -4
- ai_pipeline_core/images/__init__.py +362 -0
- ai_pipeline_core/images/_processing.py +157 -0
- ai_pipeline_core/llm/ai_messages.py +25 -4
- ai_pipeline_core/llm/client.py +15 -19
- ai_pipeline_core/llm/model_response.py +5 -5
- ai_pipeline_core/llm/model_types.py +10 -13
- ai_pipeline_core/logging/logging_mixin.py +2 -2
- ai_pipeline_core/pipeline.py +1 -1
- ai_pipeline_core/progress.py +127 -0
- ai_pipeline_core/prompt_builder/__init__.py +5 -0
- ai_pipeline_core/prompt_builder/documents_prompt.jinja2 +23 -0
- ai_pipeline_core/prompt_builder/global_cache.py +78 -0
- ai_pipeline_core/prompt_builder/new_core_documents_prompt.jinja2 +6 -0
- ai_pipeline_core/prompt_builder/prompt_builder.py +253 -0
- ai_pipeline_core/prompt_builder/system_prompt.jinja2 +41 -0
- ai_pipeline_core/tracing.py +54 -2
- ai_pipeline_core/utils/deploy.py +214 -6
- ai_pipeline_core/utils/remote_deployment.py +37 -187
- {ai_pipeline_core-0.2.9.dist-info → ai_pipeline_core-0.3.3.dist-info}/METADATA +96 -27
- ai_pipeline_core-0.3.3.dist-info/RECORD +57 -0
- {ai_pipeline_core-0.2.9.dist-info → ai_pipeline_core-0.3.3.dist-info}/WHEEL +1 -1
- ai_pipeline_core/simple_runner/__init__.py +0 -14
- ai_pipeline_core/simple_runner/cli.py +0 -254
- ai_pipeline_core/simple_runner/simple_runner.py +0 -247
- ai_pipeline_core-0.2.9.dist-info/RECORD +0 -41
- {ai_pipeline_core-0.2.9.dist-info → ai_pipeline_core-0.3.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Pipeline deployment utilities for unified, type-safe deployments.
|
|
2
|
+
|
|
3
|
+
@public
|
|
4
|
+
|
|
5
|
+
This module provides the PipelineDeployment base class and related types
|
|
6
|
+
for creating pipeline deployments that work seamlessly across local testing,
|
|
7
|
+
CLI execution, and production Prefect deployments.
|
|
8
|
+
|
|
9
|
+
Example:
|
|
10
|
+
>>> from ai_pipeline_core import PipelineDeployment, DeploymentContext, DeploymentResult
|
|
11
|
+
>>>
|
|
12
|
+
>>> class MyResult(DeploymentResult):
|
|
13
|
+
... report: str
|
|
14
|
+
>>>
|
|
15
|
+
>>> class MyPipeline(PipelineDeployment[MyOptions, MyResult]):
|
|
16
|
+
... flows = [step_01, step_02]
|
|
17
|
+
...
|
|
18
|
+
... @staticmethod
|
|
19
|
+
... def build_result(project_name, documents, options):
|
|
20
|
+
... return MyResult(success=True, report="Done")
|
|
21
|
+
>>>
|
|
22
|
+
>>> pipeline = MyPipeline()
|
|
23
|
+
>>> result = pipeline.run_local("test", documents, options)
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
from .base import DeploymentContext, DeploymentResult, PipelineDeployment
|
|
27
|
+
from .contract import (
|
|
28
|
+
CompletedRun,
|
|
29
|
+
DeploymentResultData,
|
|
30
|
+
FailedRun,
|
|
31
|
+
PendingRun,
|
|
32
|
+
ProgressRun,
|
|
33
|
+
RunResponse,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
__all__ = [
|
|
37
|
+
"CompletedRun",
|
|
38
|
+
"DeploymentContext",
|
|
39
|
+
"DeploymentResult",
|
|
40
|
+
"DeploymentResultData",
|
|
41
|
+
"FailedRun",
|
|
42
|
+
"PendingRun",
|
|
43
|
+
"PipelineDeployment",
|
|
44
|
+
"ProgressRun",
|
|
45
|
+
"RunResponse",
|
|
46
|
+
]
|