fix(plus_api): add tools_metadata kwarg to crewai.plus_api.publish_tool

Mirrors the parameter origin/main added on crewai.cli.plus_api so the
relocated crewai.plus_api stays in sync. Also fix a stale crewai_cli
patch target in the lib/crewai plus_api test.
This commit is contained in:
Greyson Lalonde
2026-05-05 03:28:07 +08:00
parent d6b1ab6e20
commit e8bf900008
2 changed files with 5 additions and 1 deletions

View File

@@ -210,7 +210,7 @@ class TestPlusAPI(unittest.TestCase):
)
self.assertEqual(response, mock_response)
@patch("crewai_cli.plus_api.PlusAPI._make_request")
@patch("crewai.plus_api.PlusAPI._make_request")
def test_publish_tool_with_tools_metadata(self, mock_make_request):
mock_response = MagicMock()
mock_make_request.return_value = mock_response