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/api-client

thomashebrardac40e9cc1da9
diff --git a/pipelex/client/protocol.py b/pipelex/client/protocol.py
index f86c50e99..328729faa 100644
--- a/pipelex/client/protocol.py
+++ b/pipelex/client/protocol.py
@@ -5,10 +5,10 @@ from pydantic import BaseModel
from typing_extensions import runtime_checkable
from pipelex.core.memory.working_memory import WorkingMemory
+from pipelex.core.pipes.pipe_output import PipeOutput
from pipelex.core.stuffs.stuff_content import StuffContent
from pipelex.pipe_run.pipe_run_params import PipeOutputMultiplicity
from pipelex.types import StrEnum
-from pipelex.core.pipes.pipe_output import PipeOutput
# StuffContentOrData represents all possible formats for implicit memory input:
# Case 1: Direct content (no 'concept' key)
diff --git a/pipelex/pipeline/execute.py b/pipelex/pipeline/execute.py
index 409186f79..8e63e6293 100644
--- a/pipelex/pipeline/execute.py
+++ b/pipelex/pipeline/execute.py
@@ -99,8 +99,6 @@ async def execute_pipeline(
pipe_run_mode=pipe_run_mode,
)
- from pipelex import pretty_print
- pretty_print(working_memory)
pipe_job = PipeJobFactory.make_pipe_job(
pipe=pipe,
pipe_run_params=pipe_run_params,
diff --git a/tests/integration/pipelex/client/test_client.py b/tests/integration/pipelex/client/test_client.py
index b85f9c22e..e0d5fb205 100644
--- a/tests/integration/pipelex/client/test_client.py
+++ b/tests/integration/pipelex/client/test_client.py
@@ -112,11 +112,12 @@ class TestPipelexApiClient:
pretty_print(pipeline_reponse, title="PIPELINE RESPONSE")
# Verify result
- assert pipeline_reponse.pipeline_run_id is not None
+ assert pipeline_reponse.pipe_output
+ assert pipeline_reponse.pipe_output.pipeline_run_id is not None
assert pipeline_reponse.pipeline_state == PipelineState.COMPLETED
assert pipeline_reponse.pipe_output is not None
- working_memory = pipeline_reponse.pipe_output["dict_memory"]
+ working_memory = pipeline_reponse.pipe_output.working_memory
# Verify question structure
assert working_memory["question"] == {