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 issues flagged by PR review agents
Louis Choquelfaa518a2c522
diff --git a/.github/workflows/graph-ui-check.yml b/.github/workflows/graph-ui-check.ymlindex ee0c262a3..ca5bca976 100644--- a/.github/workflows/graph-ui-check.yml+++ b/.github/workflows/graph-ui-check.yml@@ -16,7 +16,8 @@ jobs:- name: Check graph UI assets are in syncrun: |PINNED_VERSION=$(grep -o '"github:Pipelex/mthds-ui#[^"]*"' package.json | sed 's/.*#//;s/"//')- SYNCED_VERSION=$(cat pipelex/graph/reactflow/assets/.graph-ui-version 2>/dev/null | tr -d '[:space:]' || echo "NONE")+ SYNCED_VERSION=$(cat pipelex/graph/reactflow/assets/.graph-ui-version 2>/dev/null | tr -d '[:space:]')+ SYNCED_VERSION="${SYNCED_VERSION:-NONE}"if [ "$PINNED_VERSION" != "$SYNCED_VERSION" ]; thenecho "::error::Graph UI assets are out of date! Pinned: $PINNED_VERSION, Synced: $SYNCED_VERSION. Run 'make sync-graph-ui' to update."exit 1diff --git a/pipelex/pipe_operators/pipe_operator.py b/pipelex/pipe_operators/pipe_operator.pyindex 8e7f24cc2..c73562cd4 100644--- a/pipelex/pipe_operators/pipe_operator.py+++ b/pipelex/pipe_operators/pipe_operator.py@@ -46,7 +46,7 @@ class PipeOperator(PipeAbstract, Generic[PipeOperatorOutputType]):list_content: ListContent[StuffContent] = main_stuff.as_list_content() # pyright: ignore[reportUnknownVariableType, reportUnknownMemberType]nb_items = len(list_content.items)if nb_items == 0:- output_concept_with_multiplicity = "empty list"+ output_concept_with_multiplicity += " [empty list]"elif nb_items == 1:output_concept_with_multiplicity += " [1 item]"else:diff --git a/pipelex/tools/aws/aws_config.py b/pipelex/tools/aws/aws_config.pyindex 842df00f6..d3fa463d0 100644--- a/pipelex/tools/aws/aws_config.py+++ b/pipelex/tools/aws/aws_config.py@@ -66,6 +66,14 @@ class AwsConfig(ConfigModel):def get_bedrock_token(self) -> str:match self.api_key_method:case AwsKeyMethod.ENV:- return get_required_env(BEDROCK_TOKEN_VAR_NAME)+ try:+ return get_required_env(BEDROCK_TOKEN_VAR_NAME)+ except EnvVarNotFoundError as exc:+ msg = f"Error getting Bedrock token from environment: {exc}"+ raise AwsCredentialsError(msg) from exccase AwsKeyMethod.SECRET_PROVIDER:- return get_secret(BEDROCK_TOKEN_VAR_NAME)+ try:+ return get_secret(BEDROCK_TOKEN_VAR_NAME)+ except SecretNotFoundError as exc:+ msg = "Error getting Bedrock token from secrets provider."+ raise AwsCredentialsError(msg) from excdiff --git a/tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/test_pipe_llm_object_list.py b/tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/test_pipe_llm_object_list.pyindex 5ec7971a0..6e43a8f6f 100644--- a/tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/test_pipe_llm_object_list.py+++ b/tests/e2e/pipelex/pipes/pipe_operators/pipe_llm/test_pipe_llm_object_list.py@@ -11,7 +11,7 @@ from pipelex.pipeline.runner import PipelexRunner@pytest.mark.llm@pytest.mark.inference@pytest.mark.dry_runnable[email protected](loop_scope="class")class TestPipeLLMObjectList:async def test_craft_prompts(self, pipe_run_mode: PipeRunMode) -> None:"""Test a PipeLLM pipe that generates a list of structured MoodboardPrompt objects."""