@fluidframework/tree-agent-langchain Package
LangChain integration helpers for @fluidframework/tree-agent.
Functions
| Function | Alerts | Return Type | Description |
|---|---|---|---|
| createLangchainChatModel(langchainModel) | Alpha | SharedTreeChatModel | Creates a stateless SharedTreeChatModel backed by LangChain. |
Function Details
createLangchainChatModel
Creates a stateless SharedTreeChatModel backed by LangChain.
This API is provided as an alpha preview and may change without notice.
To use, import via @fluidframework/tree-agent-langchain/alpha.
For more information about our API support guarantees, see here.
Signature
export declare function createLangchainChatModel(langchainModel: BaseChatModel): SharedTreeChatModel;
Remarks
Use with createTreeAgent.
Parameters
| Parameter | Type | Description |
|---|---|---|
| langchainModel | BaseChatModel | The LangChain chat model to use. |
Returns
Return type: SharedTreeChatModel