gllm-pipeline-binary 0.4.18__cp312-cp312-win_amd64.whl → 0.4.20__cp312-cp312-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.
@@ -7,6 +7,7 @@ from gllm_pipeline.steps.terminator_step import TerminatorStep as TerminatorStep
7
7
  from gllm_pipeline.utils.graph import create_edge as create_edge
8
8
  from gllm_pipeline.utils.mermaid import MERMAID_HEADER as MERMAID_HEADER, combine_mermaid_diagrams as combine_mermaid_diagrams, extract_step_diagrams as extract_step_diagrams
9
9
  from langgraph.graph import StateGraph
10
+ from langgraph.graph.state import CompiledStateGraph as CompiledStateGraph
10
11
  from pydantic import BaseModel
11
12
  from typing import Any, TypedDict
12
13
 
@@ -7,8 +7,9 @@ from gllm_pipeline.steps.pipeline_step import BasePipelineStep as BasePipelineSt
7
7
  from gllm_pipeline.steps.step_error_handler.step_error_handler import BaseStepErrorHandler as BaseStepErrorHandler
8
8
  from gllm_pipeline.utils.error_handling import ErrorContext as ErrorContext
9
9
  from gllm_pipeline.utils.has_inputs_mixin import HasInputsMixin as HasInputsMixin
10
+ from gllm_pipeline.utils.input_map import shallow_dump as shallow_dump
10
11
  from langchain_core.runnables import RunnableConfig as RunnableConfig
11
- from pydantic import BaseModel
12
+ from pydantic import BaseModel as BaseModel
12
13
  from typing import Any
13
14
 
14
15
  class ComponentStep(BasePipelineStep, HasInputsMixin):
@@ -13,12 +13,13 @@ from gllm_pipeline.types import Val as Val
13
13
  from gllm_pipeline.utils.async_utils import execute_callable as execute_callable
14
14
  from gllm_pipeline.utils.graph import create_edge as create_edge
15
15
  from gllm_pipeline.utils.has_inputs_mixin import HasInputsMixin as HasInputsMixin
16
+ from gllm_pipeline.utils.input_map import shallow_dump as shallow_dump
16
17
  from gllm_pipeline.utils.mermaid import MERMAID_HEADER as MERMAID_HEADER
17
18
  from gllm_pipeline.utils.step_execution import execute_sequential_steps as execute_sequential_steps
18
19
  from langchain_core.runnables import RunnableConfig as RunnableConfig
19
20
  from langgraph.graph import StateGraph as StateGraph
20
21
  from langgraph.types import Command, RetryPolicy as RetryPolicy
21
- from pydantic import BaseModel
22
+ from pydantic import BaseModel as BaseModel
22
23
  from typing import Any, Callable
23
24
 
24
25
  ConditionType = Component | Callable[[dict[str, Any]], str]
@@ -2,8 +2,9 @@ from _typeshed import Incomplete
2
2
  from gllm_core.utils.retry import RetryConfig as RetryConfig
3
3
  from gllm_datastore.cache.cache import BaseCache as BaseCache
4
4
  from gllm_pipeline.steps.pipeline_step import BasePipelineStep as BasePipelineStep
5
+ from gllm_pipeline.utils.input_map import shallow_dump as shallow_dump
5
6
  from langchain_core.runnables import RunnableConfig as RunnableConfig
6
- from pydantic import BaseModel
7
+ from pydantic import BaseModel as BaseModel
7
8
  from typing import Any
8
9
 
9
10
  class LogStep(BasePipelineStep):
@@ -8,6 +8,7 @@ from gllm_pipeline.steps.step_error_handler.step_error_handler import BaseStepEr
8
8
  from gllm_pipeline.utils.async_utils import execute_callable as execute_callable
9
9
  from gllm_pipeline.utils.error_handling import ErrorContext as ErrorContext
10
10
  from gllm_pipeline.utils.has_inputs_mixin import HasInputsMixin as HasInputsMixin
11
+ from gllm_pipeline.utils.input_map import shallow_dump as shallow_dump
11
12
  from langchain_core.runnables import RunnableConfig as RunnableConfig
12
13
  from typing import Any, Callable
13
14
 
@@ -5,9 +5,11 @@ from gllm_pipeline.alias import InputMapSpec as InputMapSpec, PipelineSteps as P
5
5
  from gllm_pipeline.steps.branching_step import BranchingStep as BranchingStep
6
6
  from gllm_pipeline.steps.pipeline_step import BasePipelineStep as BasePipelineStep
7
7
  from gllm_pipeline.steps.step_error_handler.step_error_handler import BaseStepErrorHandler as BaseStepErrorHandler
8
+ from gllm_pipeline.utils.copy import safe_deepcopy as safe_deepcopy
8
9
  from gllm_pipeline.utils.error_handling import ValidationError as ValidationError, create_error_context as create_error_context
9
10
  from gllm_pipeline.utils.graph import create_edge as create_edge
10
11
  from gllm_pipeline.utils.has_inputs_mixin import HasInputsMixin as HasInputsMixin
12
+ from gllm_pipeline.utils.input_map import shallow_dump as shallow_dump
11
13
  from gllm_pipeline.utils.mermaid import MERMAID_HEADER as MERMAID_HEADER
12
14
  from gllm_pipeline.utils.step_execution import execute_sequential_steps as execute_sequential_steps
13
15
  from langchain_core.runnables import RunnableConfig as RunnableConfig
@@ -7,8 +7,9 @@ from gllm_pipeline.steps.step_error_handler.step_error_handler import BaseStepEr
7
7
  from gllm_pipeline.utils.async_utils import execute_callable as execute_callable
8
8
  from gllm_pipeline.utils.error_handling import ErrorContext as ErrorContext
9
9
  from gllm_pipeline.utils.has_inputs_mixin import HasInputsMixin as HasInputsMixin
10
+ from gllm_pipeline.utils.input_map import shallow_dump as shallow_dump
10
11
  from langchain_core.runnables import RunnableConfig as RunnableConfig
11
- from pydantic import BaseModel
12
+ from pydantic import BaseModel as BaseModel
12
13
  from typing import Any, Callable
13
14
 
14
15
  class StateOperatorStep(BasePipelineStep, HasInputsMixin):
@@ -9,8 +9,9 @@ from gllm_pipeline.steps.pipeline_step import BasePipelineStep as BasePipelineSt
9
9
  from gllm_pipeline.steps.step_error_handler.step_error_handler import BaseStepErrorHandler as BaseStepErrorHandler
10
10
  from gllm_pipeline.utils.error_handling import ErrorContext as ErrorContext
11
11
  from gllm_pipeline.utils.has_inputs_mixin import HasInputsMixin as HasInputsMixin
12
+ from gllm_pipeline.utils.input_map import shallow_dump as shallow_dump
12
13
  from langchain_core.runnables import RunnableConfig as RunnableConfig
13
- from pydantic import BaseModel
14
+ from pydantic import BaseModel as BaseModel
14
15
  from typing import Any
15
16
 
16
17
  class SubgraphStep(BaseCompositeStep, HasInputsMixin):
@@ -0,0 +1,11 @@
1
+ from typing import Any
2
+
3
+ def safe_deepcopy(obj: Any) -> Any:
4
+ """Deepcopy an object gracefully.
5
+
6
+ Args:
7
+ obj (Any): The object to copy.
8
+
9
+ Returns:
10
+ Any: The deep copied object, or the original object if deepcopy fails.
11
+ """
@@ -12,7 +12,8 @@ class ErrorContext(BaseModel):
12
12
  exception (BaseException): The exception that was raised.
13
13
  step_name (str): The name of the pipeline step where the error occurred.
14
14
  step_type (str): The type of pipeline step where the error occurred.
15
- state (dict[str, Any] | None): The pipeline state at the time of the error. Defaults to None.
15
+ state (dict[str, Any] | BaseModel | None): The pipeline state at the time of the error.
16
+ Defaults to None.
16
17
  operation (str): Description of the operation being performed when the error occurred.
17
18
  Defaults to "execution".
18
19
  additional_context (str | None): Additional context to include in the error message.
@@ -22,7 +23,7 @@ class ErrorContext(BaseModel):
22
23
  exception: BaseException
23
24
  step_name: str
24
25
  step_type: str
25
- state: dict[str, Any] | None
26
+ state: dict[str, Any] | BaseModel | None
26
27
  operation: str
27
28
  additional_context: str | None
28
29
 
@@ -1,6 +1,8 @@
1
1
  from _typeshed import Incomplete
2
2
  from gllm_pipeline.types import Val as Val
3
+ from gllm_pipeline.utils.input_map import shallow_dump as shallow_dump
3
4
  from langchain_core.runnables import RunnableConfig as RunnableConfig
5
+ from pydantic import BaseModel as BaseModel
4
6
  from typing import Any
5
7
 
6
8
  class HasInputsMixin:
@@ -0,0 +1,12 @@
1
+ from pydantic import BaseModel
2
+ from typing import Any
3
+
4
+ def shallow_dump(state: dict[str, Any] | BaseModel) -> dict[str, Any]:
5
+ """Convert Pydantic model to dict while preserving nested Pydantic objects.
6
+
7
+ Args:
8
+ state (dict[str, Any] | BaseModel): The state to convert.
9
+
10
+ Returns:
11
+ dict[str, Any]: The state as a dictionary with preserved nested Pydantic objects.
12
+ """
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gllm-pipeline-binary
3
- Version: 0.4.18
3
+ Version: 0.4.20
4
4
  Summary: A library containing components related to Gen AI applications pipeline orchestration.
5
5
  Author-email: Dimitrij Ray <dimitrij.ray@gdplabs.id>, Henry Wicaksono <henry.wicaksono@gdplabs.id>, Kadek Denaya <kadek.d.r.diana@gdplabs.id>
6
6
  Requires-Python: <3.13,>=3.11
@@ -1,4 +1,4 @@
1
- gllm_pipeline.cp312-win_amd64.pyd,sha256=ViARHONPCsEeMKM5d96xnZJR89FtN42V65gNgDd3A6w,1572352
1
+ gllm_pipeline.cp312-win_amd64.pyd,sha256=5HHwEPijn0Tk3IPVzhVmLorpCkFvULCSFjoFM7B_mJo,1609216
2
2
  gllm_pipeline.pyi,sha256=aentP4mHbDiRLyQ5Sn84-1sVyTbaLL9Vq60I1quEXNo,1108
3
3
  gllm_pipeline/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  gllm_pipeline/alias.pyi,sha256=MbRJJjogWHp6PAmtoi_1xrRmxkvGq4C_NllWk8sYiog,272
@@ -7,7 +7,7 @@ gllm_pipeline/exclusions/__init__.pyi,sha256=_LwIlqmH4Iiksn7p09d2vZG4Ek8CdKC8UcD
7
7
  gllm_pipeline/exclusions/exclusion_manager.pyi,sha256=DzoL-2KeTRmFgJEo8rzYViFYKbzZVTZGJmKvzaoTC0M,2960
8
8
  gllm_pipeline/exclusions/exclusion_set.pyi,sha256=11XTt6IfkHpzomcNybA78SfWlp752Z3AGhXfm2rL0Fk,1685
9
9
  gllm_pipeline/pipeline/__init__.pyi,sha256=1IKGdMvmLWEiOOmAKFNUPm-gdw13zrnU1gs7tDNzgEU,168
10
- gllm_pipeline/pipeline/pipeline.pyi,sha256=ykxgXD38TM9X5mXsPmzJSMxsCKoV6Q_tRbuRDk0bVXg,14226
10
+ gllm_pipeline/pipeline/pipeline.pyi,sha256=GJAvD_YGE0R7JSYvNdcJgzdRV8uZymKkSv8sL9A-DrY,14302
11
11
  gllm_pipeline/pipeline/states.pyi,sha256=EiyfBPwrVDZ336w5wyD1q8W4E6G1uZNzsP-bzrHDumo,6464
12
12
  gllm_pipeline/pipeline/composer/__init__.pyi,sha256=-hcOUQgpTRt1QjQfRurTf-UApFnTrhilx6vN-gYd5J0,666
13
13
  gllm_pipeline/pipeline/composer/composer.pyi,sha256=foztmOTsqdd6CW1CY4QQrObe2shy_yvEopz_knwAmFk,26697
@@ -19,17 +19,17 @@ gllm_pipeline/pipeline/composer/toggle_composer.pyi,sha256=7tEEDSSwOoPeiyYeFSjLq
19
19
  gllm_pipeline/steps/__init__.pyi,sha256=f_dgel-CsDow7nSWYQDVTQYOogwvty8tEeh2lZautqM,1967
20
20
  gllm_pipeline/steps/_func.pyi,sha256=fKL6aCobBmjo7vznRKJeeML4VmJtoQhD8G5L5vG3Pao,60843
21
21
  gllm_pipeline/steps/branching_step.pyi,sha256=iNarrcZgWfiRdr8CJfGm8GzUlYq13Rx5cgYXnBsNWN4,1041
22
- gllm_pipeline/steps/component_step.pyi,sha256=IgWrHvJRnLsumLd9-eVfXOYPJFbnbC5knTfbotd79Xk,5446
22
+ gllm_pipeline/steps/component_step.pyi,sha256=YXBJMSYm-fDXhdqQgBcZfl5U7gUSbSM4sCrmKOhq7Tk,5531
23
23
  gllm_pipeline/steps/composite_step.pyi,sha256=lvueTBQG_t0TtS5qRvUzZOIt3h6-uD26DJXW4ZSkuUc,3544
24
- gllm_pipeline/steps/conditional_step.pyi,sha256=0wTWlDNF5494BbVxfGnDmbH07h5BbHvjS9AHHYmC_OQ,9981
24
+ gllm_pipeline/steps/conditional_step.pyi,sha256=62ikxvEoc1M3ytPonGRSWmBLo0eQ-IY6Lw0HGAqDZfY,10066
25
25
  gllm_pipeline/steps/guard_step.pyi,sha256=c_vdRz3hjfPu2DFkBt0_UBGJErQpdJwl0AE-GNxC4gM,4779
26
- gllm_pipeline/steps/log_step.pyi,sha256=tC3nHz_XQGc6UX6B47ahTOIIzXGYkySTZaMrEBuwvdA,2956
27
- gllm_pipeline/steps/map_reduce_step.pyi,sha256=ajLdwl5utCEyraLkpYWZUIXM04KnrMzSOQAWOdI6wqo,5870
26
+ gllm_pipeline/steps/log_step.pyi,sha256=5lPtVckw8klVbkO3USUCBg5kHoFVSb6-GIbmRWqLoWk,3041
27
+ gllm_pipeline/steps/map_reduce_step.pyi,sha256=xdpS-chS8Z3mzqUcDIO7jvPVsein8uYCAC-nC3kkQY4,5942
28
28
  gllm_pipeline/steps/no_op_step.pyi,sha256=Av0acePkJYbYcZsP-KZt3HyuX7CoKjcGrtdNF-CsoLw,1313
29
- gllm_pipeline/steps/parallel_step.pyi,sha256=hnlwvLixAA9ly-wKXkPoJIEt1y8t0Px-Z5JhKKbFENk,8175
29
+ gllm_pipeline/steps/parallel_step.pyi,sha256=plr329iZwkQEJo5zvLRjFp88aERwWNlbXfXeIHnQwFs,8316
30
30
  gllm_pipeline/steps/pipeline_step.pyi,sha256=lk_hsau5G-1qp0wJClhsN-cu5vS3Ui0afcLPzJo8oYw,11112
31
- gllm_pipeline/steps/state_operator_step.pyi,sha256=2c7uhPOgz7TCRS-R7WgAKwdUJlTLZcu0PLoY7bFk5SI,4998
32
- gllm_pipeline/steps/subgraph_step.pyi,sha256=YBqrfXN4O0siP9Qba3Q8rHuvdOHase-KEAWQn8nQt70,5713
31
+ gllm_pipeline/steps/state_operator_step.pyi,sha256=YGy99gAIk8NA-JuXXhmyexTgne7nJ9_jxrKdwV3-oMI,5083
32
+ gllm_pipeline/steps/subgraph_step.pyi,sha256=5QVo7p_vZsfwzx8iwpo2GN2N2-18JrvHTTD05R_xLds,5798
33
33
  gllm_pipeline/steps/terminator_step.pyi,sha256=-FLZ7YSKmETJjnzjvTbKI0IeI6lvDSUkBZnO8PNf4E0,2455
34
34
  gllm_pipeline/steps/step_error_handler/__init__.pyi,sha256=6eUbWMlQKQjlqS2KJHIMZksb_dXUxmsgRzoJ03tnX4o,618
35
35
  gllm_pipeline/steps/step_error_handler/empty_step_error_handler.pyi,sha256=IJx19GngXuP4j4ZV2GeAKnV74NxesTUP8NWp719w1aE,806
@@ -39,14 +39,16 @@ gllm_pipeline/steps/step_error_handler/raise_step_error_handler.pyi,sha256=IuICN
39
39
  gllm_pipeline/steps/step_error_handler/step_error_handler.pyi,sha256=1h4-51zawOsq-Bg5vsjiO7Tgyc2NtbNETRAZthQrFWM,1968
40
40
  gllm_pipeline/utils/__init__.pyi,sha256=34a24yfX5Wwh3Tw7HuxnSQ1AX0L7-qa0rrXiE1FqWWk,994
41
41
  gllm_pipeline/utils/async_utils.pyi,sha256=IB8slUq3tk9tTX7UM1uj7Z6UBXuXRNbQCJzCNp3pwug,899
42
- gllm_pipeline/utils/error_handling.pyi,sha256=UR0Ckt2wqTelCZFMkhRP2HHRF99GgqJnnZFPHCv4uZM,2402
42
+ gllm_pipeline/utils/copy.pyi,sha256=IW--DcDVCv87-6-gAlDgo3QybeFoNXEtSASK2P21k0c,260
43
+ gllm_pipeline/utils/error_handling.pyi,sha256=x2PxZjud1ibr1Ld6prnEsIf6mp0K3Y9elodoqtFnk5k,2439
43
44
  gllm_pipeline/utils/graph.pyi,sha256=Jq24B5W_9IUNlxuJY8jYo3hLUHHM6JbXH8-Mwnlmou4,696
44
- gllm_pipeline/utils/has_inputs_mixin.pyi,sha256=pMFrAAyO2xf_357NDBOCOUIu_GZoRVebeJWJD6lnm2k,2475
45
+ gllm_pipeline/utils/has_inputs_mixin.pyi,sha256=fN6hscTjDUNTEzWiMhkQvGYmeQo3-ma7gMACvxExkqc,2592
46
+ gllm_pipeline/utils/input_map.pyi,sha256=mupd6DHQAuEJ0jh0SgJsOoTw1ZzSpAZPw0JkQ7xdQAY,407
45
47
  gllm_pipeline/utils/mermaid.pyi,sha256=B096GTXxVAO--kw3UDsbysOsnjGOytYfozX39YaM21A,1174
46
48
  gllm_pipeline/utils/retry_converter.pyi,sha256=JPUuaGzKpVLshrbhX9rQHYl5XmC9GDa59rGU-FtOpWM,1128
47
49
  gllm_pipeline/utils/step_execution.pyi,sha256=8dGj6_VAHT7cgmg8QPJN65XDKTu3Kj4NTtkDM_AF7GA,930
48
50
  gllm_pipeline.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
49
- gllm_pipeline_binary-0.4.18.dist-info/METADATA,sha256=vQOhDqu4EmBX6XZC5fYlLDyr2dlK1ExS6LOdztrXgD8,3454
50
- gllm_pipeline_binary-0.4.18.dist-info/WHEEL,sha256=x5rgv--I0NI0IT1Lh9tN1VG2cI637p3deednwYLKnxc,96
51
- gllm_pipeline_binary-0.4.18.dist-info/top_level.txt,sha256=C3yeOtoE6ZhuOnBEq_FFc_Rp954IHJBlB6fBgSdAWYI,14
52
- gllm_pipeline_binary-0.4.18.dist-info/RECORD,,
51
+ gllm_pipeline_binary-0.4.20.dist-info/METADATA,sha256=lVbRxPGBuSMijsINwcdcbETWv9hqLSkB07tXTW6NCnI,3454
52
+ gllm_pipeline_binary-0.4.20.dist-info/WHEEL,sha256=x5rgv--I0NI0IT1Lh9tN1VG2cI637p3deednwYLKnxc,96
53
+ gllm_pipeline_binary-0.4.20.dist-info/top_level.txt,sha256=C3yeOtoE6ZhuOnBEq_FFc_Rp954IHJBlB6fBgSdAWYI,14
54
+ gllm_pipeline_binary-0.4.20.dist-info/RECORD,,