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
thomashebrard5f0807a153e6
diff --git a/pipelex/client/protocol.py b/pipelex/client/protocol.pyindex 97c8ce529..f86c50e99 100644--- a/pipelex/client/protocol.py+++ b/pipelex/client/protocol.py@@ -8,6 +8,7 @@ from pipelex.core.memory.working_memory import WorkingMemoryfrom pipelex.core.stuffs.stuff_content import StuffContentfrom pipelex.pipe_run.pipe_run_params import PipeOutputMultiplicityfrom 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)@@ -30,8 +31,8 @@ StuffContentOrData = (| Sequence[StuffContent] # Case 1.4 (covariant - accepts list[TextContent], etc.)| DictStuffContent # Case 2.1, 2.2, 2.3, 2.4, 2.5, 2.6)+DictMemory = dict[str, DictStuffContent] # Special case of ImplicitMemory (Case 2.1, 2.2, 2.3, 2.4, 2.5, 2.6)ImplicitMemory = dict[str, StuffContentOrData]-DictMemory = dict[str, DictStuffContent] # Special case of ImplicitMemoryclass PipelineState(StrEnum):@@ -90,11 +91,9 @@ class PipelineResponse(ApiResponse):"""created_at: str- pipeline_state: PipelineStatefinished_at: str | None = None- pipeline_run_id: str- pipe_output: DictMemory | None = None- main_stuff_name: str+ pipeline_state: PipelineState+ pipe_output: PipeOutput | None = None@runtime_checkablediff --git a/pipelex/pipeline/execute.py b/pipelex/pipeline/execute.pyindex 8e63e6293..409186f79 100644--- a/pipelex/pipeline/execute.py+++ b/pipelex/pipeline/execute.py@@ -99,6 +99,8 @@ 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,