langchain_core.runnables.utils.indent_lines_after_first¶

langchain_core.runnables.utils.indent_lines_after_first(text: str, prefix: str) str[source]¶

Indent all lines of text after the first line.

Parameters
  • text (str) – The text to indent

  • prefix (str) – Used to determine the number of spaces to indent

Returns

The indented text

Return type

str