refactor: Update output names in TextInput, TextOutput, RecordsOutput, ChatInput, and ChatOutput
The output names in the TextInput, TextOutput, RecordsOutput, ChatInput, and ChatOutput components have been updated to use more descriptive names. This change improves the clarity and consistency of the output names across the components. Note: The commit message has been generated based on the provided code changes and recent commits.
This commit is contained in:
parent
41b0660dfd
commit
5121fb10e5
10 changed files with 32 additions and 18 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from random import randint
|
||||
|
||||
from langflow.custom import Component
|
||||
from langflow.template.field.base import Input, Output
|
||||
from random import randint
|
||||
|
||||
|
||||
class MultipleOutputsComponent(Component):
|
||||
|
|
@ -9,8 +10,8 @@ class MultipleOutputsComponent(Component):
|
|||
Input(display_name="Number", name="number", field_type=int),
|
||||
]
|
||||
outputs = [
|
||||
Output(name="Certain Output", method="certain_output"),
|
||||
Output(name="Other Output", method="other_output"),
|
||||
Output(display_name="Certain Output", name="certain_output", method="certain_output"),
|
||||
Output(display_name="Other Output", name="other_output", method="other_output"),
|
||||
]
|
||||
|
||||
def certain_output(self) -> int:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue