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 – The text to indent

  • prefix – Used to determine the number of spaces to indent

Returns

The indented text

Return type

str