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.
Add needs_model_specs=True to agent CLI run and models commands (#755)
Louis Choquel48d27eafdfe7
diff --git a/pipelex/cli/agent_cli/commands/models_cmd.py b/pipelex/cli/agent_cli/commands/models_cmd.pyindex 670d4fb83..0cab39b34 100644--- a/pipelex/cli/agent_cli/commands/models_cmd.py+++ b/pipelex/cli/agent_cli/commands/models_cmd.py@@ -240,7 +240,7 @@ def agent_models_cmd(that an agent needs to reference when building pipelines."""try:- make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"], needs_inference=False)+ make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"], needs_inference=False, needs_model_specs=True)model_deck = get_model_deck()builder_config = get_config().pipelex.builder_configdiff --git a/pipelex/cli/agent_cli/commands/run/bundle_cmd.py b/pipelex/cli/agent_cli/commands/run/bundle_cmd.pyindex 31815cd1e..3e7dab2b2 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"], needs_inference=not dry_run)+ make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"], needs_inference=not dry_run, needs_model_specs=True)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.pyindex a98ced0f2..98d3eaa8d 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"], needs_inference=not dry_run)+ make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"], needs_inference=not dry_run, needs_model_specs=True)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.pyindex f242a4a25..93ce65dee 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"], needs_inference=not dry_run)+ make_pipelex_for_agent_cli(log_level=ctx.obj["log_level"], needs_inference=not dry_run, needs_model_specs=True)try:result = asyncio.run(