Skip to content

fix: create_pipeline tool kwarg mismatch (BUI-670)#207

Merged
tstadel merged 1 commit into
mainfrom
claude/focused-hoover-837917
Apr 29, 2026
Merged

fix: create_pipeline tool kwarg mismatch (BUI-670)#207
tstadel merged 1 commit into
mainfrom
claude/focused-hoover-837917

Conversation

@tholor
Copy link
Copy Markdown
Member

@tholor tholor commented Apr 29, 2026

Summary

  • Fixes BUI-670: create_pipeline failed with PipelineResource.create() got an unexpected keyword argument 'name'.
  • Root cause: the protocol and tool caller used kwarg name, but PipelineResource.create is defined with pipeline_name. Mocks followed the protocol, so unit tests passed while the real call failed.
  • Aligned protocol, caller, and test mocks on pipeline_name to match the implementation and the rest of the pipeline resource API.

Test plan

  • uv run pytest test/unit/tools/test_pipeline.py test/unit/api/pipeline/test_pipeline_resource.py test/unit/tools/test_doc_search.py passes
  • uv run mypy clean on changed files
  • Manual verification: invoke create_pipeline via deepset-mcp against a real workspace

🤖 Generated with Claude Code

The create_pipeline tool called PipelineResource.create(name=...) but the
implementation expects pipeline_name=..., causing the tool to fail with
"got an unexpected keyword argument 'name'". The protocol declared the
parameter as `name` while the implementation used `pipeline_name`, so
tests against mocks passed but real calls failed.

Aligned the protocol, mocks, and caller on `pipeline_name` to match the
implementation and the rest of the pipeline resource API.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tholor tholor requested a review from tstadel April 29, 2026 12:46
@tstadel tstadel enabled auto-merge (squash) April 29, 2026 15:33
@tstadel tstadel disabled auto-merge April 29, 2026 15:33
@tstadel tstadel merged commit ae5bd09 into main Apr 29, 2026
6 checks passed
@tstadel tstadel deleted the claude/focused-hoover-837917 branch April 29, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants