llm_chain

Module frame

Source
Expand description

A frame is the combination of a Step and an Executor. It wraps common behavior used by different chain types.

This module provides the Frame struct, which is a core component in the process of creating customized chains. The Frame struct is designed to simplify the process of interacting with Step and Executor traits, allowing developers to focus on implementing the desired functionality without worrying about the boilerplate code.

The Frame struct is generic over the Step and Executor types, ensuring that it can work with any combination of types that implement the required traits.

Structs§

Frame
The Frame struct represents a combination of a Step and an Executor.

Enums§

FormatAndExecuteError
An error that occurs when formatting and prompt template for an LLM