llm_chain::chains

Module conversation

Source
Expand description

The Chain module models a conversation between an entity and an LLM. It manages the conversation state and provides methods for sending messages and receiving responses.

It relies on the traits::Executor trait to execute prompts and handle LLM interactions.

Structs§

Chain
Chain represents a conversation between an entity and an LLM.

Enums§

Error
An error type representing various errors that can occur while interacting with the Chain.