Returns the format instructions as a string. If the 'raw' option is true, returns the raw FORMAT_INSTRUCTIONS.
Format instructions as a string.
Parses the given text into an AgentAction or AgentFinish object. If an output fixing parser is defined, uses it to parse the text.
Text to parse.
Promise that resolves to an AgentAction or AgentFinish object.
Parses ReAct-style LLM calls that have a single tool input.
Expects output to be in one of two formats.
If the output signals that an action should be taken, should be in the below format. This will result in an AgentAction being returned.
If the output signals that a final answer should be given, should be in the below format. This will result in an AgentFinish being returned.
Example