refactor: replace StrInput with MultilineInput for URL fields (FirecrawlAPI) (#6160)

* 📝 (firecrawl_crawl_api.py): update StrInput to MultilineInput for better handling of URL input
📝 (firecrawl_scrape_api.py): update StrInput to MultilineInput for better handling of URL input

* [autofix.ci] apply automated fixes

*  (firecrawl_crawl_api.py): introduce StrInput class to langflow.io module for handling string inputs in the API

* [autofix.ci] apply automated fixes

*  (changes-filter.yaml): add new directories to components list for langflow schema and utils to be included in changes filtering

*  (changes-filter.yaml): add new directory "src/backend/base/langflow/graph/" to components list for changes filtering in the workspace.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Cristhian Zanforlin Lousa 2025-02-07 08:56:26 -03:00 committed by GitHub
commit 8208310fa6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 10 deletions

View file

@ -46,6 +46,9 @@ components:
- "src/frontend/tests/extended/features/**"
- "src/frontend/tests/extended/regression/**"
- "src/backend/base/langflow/custom/**"
- "src/backend/base/langflow/schema/**"
- "src/backend/base/langflow/graph/**"
- "src/backend/base/langflow/utils/**"
workspace:
- "src/backend/base/langflow/inputs/**"

View file

@ -1,13 +1,7 @@
import uuid
from langflow.custom import Component
from langflow.io import (
DataInput,
IntInput,
Output,
SecretStrInput,
StrInput,
)
from langflow.io import DataInput, IntInput, MultilineInput, Output, SecretStrInput, StrInput
from langflow.schema import Data
@ -27,7 +21,7 @@ class FirecrawlCrawlApi(Component):
password=True,
info="The API key to use Firecrawl API.",
),
StrInput(
MultilineInput(
name="url",
display_name="URL",
required=True,

View file

@ -2,9 +2,9 @@ from langflow.custom import Component
from langflow.io import (
DataInput,
IntInput,
MultilineInput,
Output,
SecretStrInput,
StrInput,
)
from langflow.schema import Data
@ -25,7 +25,7 @@ class FirecrawlScrapeApi(Component):
password=True,
info="The API key to use Firecrawl API.",
),
StrInput(
MultilineInput(
name="url",
display_name="URL",
required=True,