- fix wrong comments

- add comments in some catogories
- change Custom Component title
This commit is contained in:
Carlos 2024-06-24 01:04:05 -03:00 committed by Gabriel Luiz Freitas Almeida
commit 285355c3bb
2 changed files with 45 additions and 44 deletions

View file

@ -4,7 +4,7 @@ import ZoomableImage from "/src/theme/ZoomableImage.js";
import ReactPlayer from "react-player";
import Admonition from "@theme/Admonition";
# Creating Custom Components in Langflow
# Custom Components
Build custom components in Langflow for various data processing and transformation tasks.
@ -152,7 +152,7 @@ def process_data(self) -> Data:
This example demonstrates a more complex component that routes data based on a condition.
Notice that this component has two outputs associated with the methods `true_response` and `false_response`.
Notice that this component has two outputs associated with the methods `true_response` and `false_response`.
These methods trigger `self.stop` to block the transmission for the selected output, allowing for logic operations to be implemented visually.
@ -221,5 +221,3 @@ class ConditionalRouterComponent(Component):
By following these steps and examples, you can create custom components in Langflow tailored to your specific needs. The modular structure of Custom Components allows for flexible and reusable components that can be easily integrated into your workflows.
---

View file

@ -50,7 +50,7 @@ module.exports = {
},
{
type: "category",
label: "Core Components",
label: "Components",
collapsed: false,
items: [
"components/inputs-and-outputs",
@ -63,45 +63,48 @@ module.exports = {
"components/custom",
],
},
{
type: "category",
label: "Extended Components",
collapsed: true,
items: [
"components/agents",
"components/chains",
"components/experimental",
"components/utilities",
"components/model_specs",
"components/retrievers",
"components/text-splitters",
"components/toolkits",
"components/tools",
],
},
{
type: "category",
label: "Example Components",
collapsed: true,
items: [
"examples/chat-memory",
"examples/combine-text",
"examples/create-record",
"examples/pass",
"examples/store-message",
"examples/sub-flow",
"examples/text-operator",
],
},
{
type: "category",
label: "Migration",
collapsed: false,
items: [
"migration/migrating-to-one-point-zero",
"migration/compatibility",
],
},
// RSN - Check if we need this
// {
// type: "category",
// label: "Extended Components",
// collapsed: true,
// items: [
// "components/agents",
// "components/chains",
// "components/experimental",
// "components/utilities",
// "components/model_specs",
// "components/retrievers",
// "components/text-splitters",
// "components/toolkits",
// "components/tools",
// ],
// },
// RSN - Check if we need this
// {
// type: "category",
// label: "Example Components",
// collapsed: true,
// items: [
// "examples/chat-memory",
// "examples/combine-text",
// "examples/create-record",
// "examples/pass",
// "examples/store-message",
// "examples/sub-flow",
// "examples/text-operator",
// ],
// },
// RSN - Check if we need this
// {
// type: "category",
// label: "Migration",
// collapsed: false,
// items: [
// "migration/migrating-to-one-point-zero",
// "migration/compatibility",
// ],
// },
{
type: "category",
label: "Tutorials",