format_xml#

langchain.agents.format_scratchpad.xml.format_xml(intermediate_steps: List[Tuple[AgentAction, str]]) str[source]#

Format the intermediate steps as XML.

Parameters:

intermediate_steps (List[Tuple[AgentAction, str]]) – The intermediate steps.

Returns:

The intermediate steps as XML.

Return type:

str