LangChain.ChainLink (langchainex v0.2.3)

an individual chain_link in a language chain when called, a chainlink will

  1. fill in and submit an input prompt, then
  2. add the entire response to the responses list
  3. parse the response with the output_parser
  4. store any output

Link to this section Summary

Functions

calls the chain_link, filling in the input prompt and parsing the output

Link to this section Types

@type input() ::
  %LangChain.Chat{
    input_variables: term(),
    partial_variables: term(),
    prompt_messages: term(),
    template: term()
  }
  | %LangChain.PromptTemplate{
      input_variables: term(),
      partial_variables: term(),
      src: term(),
      template: term()
    }
  | String.t()

Link to this section Functions

Link to this function

call(chain_link, llm_pid, previousValues)

calls the chain_link, filling in the input prompt and parsing the output

Link to this function

no_parse(chain_link, outputs \\ [])