Skip to main content

Class: LangchainAgentWrapper<T>

langchain-agent.LangchainAgentWrapper

Type parameters

NameType
Textends BaseChain

Implements

Constructors

constructor

new LangchainAgentWrapper<T>(agentOrChain, chainValues?, userInputKey?, callbacks?)

Type parameters

NameType
Textends BaseChain<T>

Parameters

NameType
agentOrChainT
chainValues?ChainValues
userInputKey?string
callbacks?Callbacks

Defined in

packages/convostack-langchain-agent/dist/index.d.ts:11

Methods

reply

reply(context): Promise<IAgentResponse>

Parameters

NameType
contextIAgentContext

Returns

Promise<IAgentResponse>

Implementation of

IAgent.reply

Defined in

packages/convostack-langchain-agent/dist/index.d.ts:12