diff --git a/docs/docs/examples/flow-runner.mdx b/docs/docs/examples/flow-runner.mdx index ffa4d2e2e..f762c38c3 100644 --- a/docs/docs/examples/flow-runner.mdx +++ b/docs/docs/examples/flow-runner.mdx @@ -76,6 +76,7 @@ description = "Run other flows using a document as input." ```python from langflow import CustomComponent + class MyComponent(CustomComponent): display_name = "Custom Component" description = "This is a custom component" @@ -95,6 +96,7 @@ The typical structure of a Custom Component is composed of _`display_name`_ and ```python from langflow import CustomComponent + # focus class FlowRunner(CustomComponent): # focus @@ -141,6 +143,7 @@ from langflow import CustomComponent # focus from langchain.schema import Document + class FlowRunner(CustomComponent): display_name = "Flow Runner" description = "Run other flows using a document as input." @@ -326,7 +329,7 @@ Finally, we can add field customizations through the _`build_config`_ method. He -Done! This is what our script and custom component look like: +Done! This is what our script and custom component looks like: