Skip to content

connecting 2 custom components #2033

Closed Answered by dosubot bot
SVyusti asked this question in Q&A
May 31, 2024 · 4 comments · 7 replies
Discussion options

You must be logged in to vote

To modify two Langflow custom components so that the first component can pass a function to the second component, you can follow these steps:

  1. Modify the first component to include a function that it will pass to the second component.
  2. Modify the second component to accept and utilize the function passed from the first component.

Here is an example of how you can achieve this:

First Component (FunctionProviderComponent)

from typing import Callable
from langflow.interface.custom.custom_component import CustomComponent
from langflow.schema import Record

class FunctionProviderComponent(CustomComponent):
    display_name = "Function Provider"
    description = "Provides a function to be use…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Comment options

You must be logged in to vote
5 replies
@dosubot
Comment options

Answer selected by SVyusti
@SVyusti
Comment options

@dosubot
Comment options

@SVyusti
Comment options

@dosubot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant