langchain.js
    Preparing search index...

    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 (View Summary)

    Index

    Constructors

    Properties

    lc_namespace: string[] = ...

    Methods

    • Returns the format instructions as a string.

      Parameters

      • options: any

      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<any>

      Promise that resolves to an AgentAction or AgentFinish object.

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

      Parameters

      • llm: BaseLanguageModelInterface

        BaseLanguageModelInterface instance used to create the OutputFixingParser.

      • options: Omit<ChatConversationalAgentOutputParserArgs, "outputFixingParser">

        Options for creating the ChatConversationalAgentOutputParserWithRetries instance.

      Returns ChatConversationalAgentOutputParserWithRetries

      A new instance of ChatConversationalAgentOutputParserWithRetries.