Class ChatConversationalAgentOutputParserWithRetries

Class that represents an output parser with retries for the ChatConversationalAgent class. It extends the AgentActionOutputParser class and provides methods for parsing the output of the MRKL chain into agent actions with retry functionality.

Hierarchy

Constructors

Methods

  • Returns the format instructions as a string.

    Returns string

    Format instructions as a string.

  • Parses the given text into an AgentAction or AgentFinish object.

    Parameters

    • text: string

      Text to parse.

    Returns Promise<AgentAction | AgentFinish>

    Promise that resolves to an AgentAction or AgentFinish object.

  • Static method to create a new ChatConversationalAgentOutputParserWithRetries from a BaseLanguageModel and options. If no base parser is provided in the options, a new ChatConversationalAgentOutputParser is created. An OutputFixingParser is also created from the BaseLanguageModel and the base parser.

    Parameters

    • llm: BaseLanguageModel<any, BaseLanguageModelCallOptions>

      BaseLanguageModel instance used to create the OutputFixingParser.

    • options: Omit<ChatConversationalAgentOutputParserArgs, "outputFixingParser">

      Options for creating the ChatConversationalAgentOutputParserWithRetries instance.

    Returns ChatConversationalAgentOutputParserWithRetries

    A new instance of ChatConversationalAgentOutputParserWithRetries.

Generated using TypeDoc