LangChain.Chain (langchainex v0.2.3)

A chain of ChainLinks to be processed in order, usually ending in an anchor for user confirmation.

Link to this section Summary

Functions

Processes the ChainLinks in the chain and accumulates the output. If the optional anchor parameter is set to true, an anchor step will be added at the end of the chain for user confirmation.

Creates a new Chain struct with the given chain_links.

Link to this section Functions

Link to this function

call(lang_chain, llm_pid, previous_values, anchor \\ false)

Processes the ChainLinks in the chain and accumulates the output. If the optional anchor parameter is set to true, an anchor step will be added at the end of the chain for user confirmation.

Link to this function

new(chain_links)

Creates a new Chain struct with the given chain_links.