Skip to content

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

FieldWhat it does
Input (required)The text to pass.
Agent Executor (required)The agent or chain to run.
StreamReturns the answer piece by piece, as it is generated. Off by default.

Advanced options

FieldWhat it does
Input KeyThe name of the input the agent or chain expects. Default: input.
Output KeyThe 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.

  1. Connect the enquiry to Input and the chain to Agent Executor.
  2. Use Text as the summary.