Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

fix/sub_pipe_spec-result (#322)

Louis Choquel680844047342
diff --git a/.badges/tests.json b/.badges/tests.json
index baa674784..5353808dd 100644
--- a/.badges/tests.json
+++ b/.badges/tests.json
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"label": "tests",
- "message": "1055",
+ "message": "1051",
"color": "blue",
"cacheSeconds": 300
}
\ No newline at end of file
diff --git a/pipelex/libraries/pipelines/builder/pipe/sub_pipe_spec.py b/pipelex/libraries/pipelines/builder/pipe/sub_pipe_spec.py
index ce0cd7ab1..666b764da 100644
--- a/pipelex/libraries/pipelines/builder/pipe/sub_pipe_spec.py
+++ b/pipelex/libraries/pipelines/builder/pipe/sub_pipe_spec.py
@@ -16,8 +16,7 @@ class SubPipeSpec(StructuredContent):
Attributes:
the_pipe_code: The pipe code to execute. Must reference an existing pipe in the pipeline.
- result: Optional name to assign to the pipe's output in the context.
- If not specified, output is added directly to context.
+ result: Name to assign to the pipe's output in the context.
nb_output: Fixed number of outputs to generate. Mutually exclusive with
multiple_output.
multiple_output: When true, allows LLM to determine the number of outputs.
@@ -39,7 +38,7 @@ class SubPipeSpec(StructuredContent):
model_config = ConfigDict(extra="forbid")
the_pipe_code: str
- result: str | None = None
+ result: str
nb_output: int | None = None
multiple_output: bool | None = None
batch_over: str | None = None