Agent for the MRKL chain.

⚠️ Deprecated ⚠️

Use the createStructuredChatAgent method instead.

This feature is deprecated and will be removed in the future.

It is not recommended for use.

Hierarchy

Constructors

Properties

ToolType: ToolInterface
llmChain: LLMChain<string, LLMType>
outputParser: undefined | AgentActionOutputParser

Accessors

Methods

  • Constructs the agent's scratchpad, which is a string representation of the agent's previous steps.

    Parameters

    • steps: AgentStep[]

      Array of AgentStep instances representing the agent's previous steps.

    Returns Promise<string>

    Promise resolving to a string representing the agent's scratchpad.

  • Validates that all tools have descriptions. Throws an error if a tool without a description is found.

    Parameters

    • tools: ToolInterface[]

      Array of Tool instances to validate.

    Returns void

    void

Generated using TypeDoc