Feat: move other tools to different folders (#8164)

* delete data and transfer data to dataframe

* [autofix.ci] apply automated fixes

* create a new bundle for search

* fix type for dataframe

* add data_to_dataframe function

* [autofix.ci] apply automated fixes

* fix test because of files movement

* delete message and text

* json update

* fix search yahoo test

* fix run_model output type

* add tavily bundle

* move other tools

* [autofix.ci] apply automated fixes

* add tavily bundle

* move other tools

* [autofix.ci] apply automated fixes

* update python repl import path

* autofix

* fix test

* fix frontend test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
Yuqi Tang 2025-05-27 10:56:59 -07:00 committed by GitHub
commit d84ea5c9b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 100 additions and 52 deletions

View file

@ -2,7 +2,7 @@ from tests.integration.utils import run_single_component
async def test_mcp_component():
from langflow.components.tools.mcp_component import MCPToolsComponent
from langflow.components.data.mcp_component import MCPToolsComponent
inputs = {}
await run_single_component(

View file

@ -1,5 +1,5 @@
import pytest
from langflow.components.tools.calculator_core import CalculatorComponent
from langflow.components.helpers.calculator_core import CalculatorComponent
from tests.base import ComponentTestBaseWithoutClient

View file

@ -2,7 +2,7 @@ import asyncio
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from langflow.components.tools.mcp_component import MCPSseClient, MCPStdioClient, MCPToolsComponent
from langflow.components.data.mcp_component import MCPSseClient, MCPStdioClient, MCPToolsComponent
from tests.base import ComponentTestBaseWithoutClient, VersionComponentMapping
@ -99,7 +99,7 @@ class TestMCPToolsComponent(ComponentTestBaseWithoutClient):
# Test tool options are updated
assert "options" in updated_config["tool"]
@patch("langflow.components.tools.mcp_component.create_tool_coroutine")
@patch("langflow.components.data.mcp_component.create_tool_coroutine")
async def test_build_output(self, mock_create_coroutine, component_class, default_kwargs, mock_tool):
"""Test building output with a tool."""
component = component_class(**default_kwargs)

View file

@ -1,5 +1,5 @@
import pytest
from langflow.components.tools import PythonREPLComponent
from langflow.components.processing import PythonREPLComponent
from tests.base import DID_NOT_EXIST, ComponentTestBaseWithoutClient