Runnable Executor
Runnable Executor passes a text to a connected agent or chain and returns its answer as text. A runnable component is a piece that processes a text and returns another, such as an agent or a chain of steps with a model.
When to use it
- Using an agent’s or chain’s answer as text in a flow.
- Running a chain with a text coming from another component.
Configuration
| Field | What it does |
|---|---|
| Input (required) | The text to pass. |
| Agent Executor (required) | The agent or chain to run. |
| Stream | Returns the answer piece by piece, as it is generated. Off by default. |
Advanced options
| Field | What it does |
|---|---|
| Input Key | The name of the input the agent or chain expects. Default: input. |
| Output Key | The name of the result taken from the answer. Default: output. |
Output
The Text output is the answer.
Example
A support flow passes each enquiry to a chain that summarises it.
- Connect the enquiry to Input and the chain to Agent Executor.
- Use Text as the summary.
Related components
- RunnableParallel: runs several at once.
- Runnable Data Batch: runs one per item in a list.