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.

feat: skip inference setup for --dry-run in agent CLI run commands

Louis Choquel3dbe435860ee
diff --git a/pipelex/cli/agent_cli/commands/run/bundle_cmd.py b/pipelex/cli/agent_cli/commands/run/bundle_cmd.py
index e52626671..31815cd1e 100644
--- a/pipelex/cli/agent_cli/commands/run/bundle_cmd.py
+++ b/pipelex/cli/agent_cli/commands/run/bundle_cmd.py
@@ -173,7 +173,7 @@ def run_bundle_cmd(
agent_error(str(exc), type(exc).__name__, cause=exc)
case RunnerType.PIPELEX:
- make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"])
+ make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"], needs_inference=not dry_run)
try:
result = asyncio.run(
diff --git a/pipelex/cli/agent_cli/commands/run/method_cmd.py b/pipelex/cli/agent_cli/commands/run/method_cmd.py
index 73e09c597..a98ced0f2 100644
--- a/pipelex/cli/agent_cli/commands/run/method_cmd.py
+++ b/pipelex/cli/agent_cli/commands/run/method_cmd.py
@@ -130,7 +130,7 @@ def run_method_cmd(
agent_error(str(exc), type(exc).__name__, cause=exc)
case RunnerType.PIPELEX:
- make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"])
+ make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"], needs_inference=not dry_run)
try:
result = asyncio.run(
diff --git a/pipelex/cli/agent_cli/commands/run/pipe_cmd.py b/pipelex/cli/agent_cli/commands/run/pipe_cmd.py
index 82808dce9..f242a4a25 100644
--- a/pipelex/cli/agent_cli/commands/run/pipe_cmd.py
+++ b/pipelex/cli/agent_cli/commands/run/pipe_cmd.py
@@ -128,7 +128,7 @@ def run_pipe_cmd(
agent_error(str(exc), type(exc).__name__, cause=exc)
case RunnerType.PIPELEX:
- make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"])
+ make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"], needs_inference=not dry_run)
try:
result = asyncio.run(