Chain class
Chain 类用于llm类的格式化输出。
Signature:
typescript
export declare class Chainexport declare class ChainConstructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(params) | 创建一个新的 Chain 实例。 |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| chain | FunctionChain | TypeScriptChain | ||
| chainName? | string | (Optional) | |
| llm | LLM |
Methods
| Method | Modifiers | Description |
|---|---|---|
| call(params) | 调用Chain | |
| exportHistory() | 导出链的历史记录。 |