Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1572154
feat: add FunctionComponent and InputConfig for dynamic function wrap…
ogabrielluiz Nov 30, 2025
4bf1a1a
test: add unit tests for FunctionComponent functionality and behavior
ogabrielluiz Nov 30, 2025
3932cd4
feat: add tests for auto-wrapping functions in Component.set()
ogabrielluiz Nov 30, 2025
c536920
feat: add functionality to wrap plain callables as FunctionComponents
ogabrielluiz Nov 30, 2025
38d2c4f
feat: implement FunctionComponent class for dynamic function wrapping
ogabrielluiz Nov 30, 2025
21e6d57
feat: enhance eval_custom_component_code to support pure function com…
ogabrielluiz Nov 30, 2025
ad62df5
feat: update output type handling in FunctionComponent to default to …
ogabrielluiz Nov 30, 2025
2a19cfe
feat: add integration tests for FunctionComponent execution and seria…
ogabrielluiz Nov 30, 2025
a158e65
feat: update output type handling in FunctionComponent tests and add …
ogabrielluiz Nov 30, 2025
0a231f1
feat: add comprehensive tests for eval_custom_component_code handling…
ogabrielluiz Nov 30, 2025
908dbb2
feat: add edge case tests for FunctionComponent handling of unusual f…
ogabrielluiz Nov 30, 2025
1d6d65c
feat: enhance validate_code to support detection of function and clas…
ogabrielluiz Nov 30, 2025
2b85c47
feat: enhance _create_function_component_class to handle multiple fun…
ogabrielluiz Nov 30, 2025
ee503be
feat: enhance FunctionComponent to support display_name and improve d…
ogabrielluiz Nov 30, 2025
2bee586
feat: add tests for FunctionComponent pipelines with various configur…
ogabrielluiz Nov 30, 2025
31cb8f5
feat: add additional tests for FunctionComponent to improve coverage …
ogabrielluiz Nov 30, 2025
b7a471f
feat: add comprehensive tests for validate_code to enhance type detec…
ogabrielluiz Nov 30, 2025
2a5be66
feat: add tests for eval_custom_component_code to improve coverage an…
ogabrielluiz Nov 30, 2025
d4943db
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 30, 2025
328efaa
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 30, 2025
7c1d85c
docs: enhance FunctionComponent and InputConfig documentation
ogabrielluiz Nov 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/lfx/src/lfx/_assets/component_index.json

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions src/lfx/src/lfx/base/functions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""Functions module - Wrap Python functions as Langflow components."""

from lfx.base.functions.function_component import (
FunctionComponent,
InputConfig,
component,
from_function,
)

__all__ = [
"FunctionComponent",
"InputConfig",
"component",
"from_function",
]
Loading
Loading