Class ChainTool

Class that extends DynamicTool for creating tools that can run chains. Takes an instance of a class that extends BaseChain as a parameter in its constructor and uses it to run the chain when its 'func' method is called.

Hierarchy

Constructors

Properties

Constructors

Properties

chain: BaseChain<ChainValues, ChainValues>
description: string
func: ((input, runManager?) => Promise<string>)

Type declaration

    • (input, runManager?): Promise<string>
    • Parameters

      • input: string
      • Optional runManager: CallbackManagerForToolRun

      Returns Promise<string>

name: string

Generated using TypeDoc