📝 docs(flow-runner.mdx): update example code formatting and fix indentation for better readability
🖼️ chore(flow_runner_code.png): update flow_runner_code.png image
This commit is contained in:
parent
11854ccdb3
commit
3e465f6df3
2 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ We will cover how to:
|
||||||
- Load a flow using the _`load_flow`_ method.
|
- Load a flow using the _`load_flow`_ method.
|
||||||
- Configure a dropdown input field using the _`options`_ parameter.
|
- Configure a dropdown input field using the _`options`_ parameter.
|
||||||
|
|
||||||
<details>
|
<details open>
|
||||||
|
|
||||||
<summary>Example Code</summary>
|
<summary>Example Code</summary>
|
||||||
|
|
||||||
|
|
@ -38,8 +38,8 @@ from langflow import CustomComponent
|
||||||
from langchain.schema import Document
|
from langchain.schema import Document
|
||||||
|
|
||||||
class FlowRunner(CustomComponent):
|
class FlowRunner(CustomComponent):
|
||||||
display_name = "Flow Runner"
|
display_name = "Flow Runner"
|
||||||
description = "Run other flows using a document as input."
|
description = "Run other flows using a document as input."
|
||||||
|
|
||||||
def build_config(self):
|
def build_config(self):
|
||||||
flows = self.list_flows()
|
flows = self.list_flows()
|
||||||
|
|
|
||||||
BIN
docs/static/img/flow_runner_code.png
vendored
BIN
docs/static/img/flow_runner_code.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 342 KiB After Width: | Height: | Size: 379 KiB |
Loading…
Add table
Add a link
Reference in a new issue