Skip to content

Home > llm-ops > Chain

Chain class ​

Chain 类用于llm类的格式化输出。

Signature:

typescript
export declare class Chain
export declare class Chain

Constructors ​

ConstructorModifiersDescription
(constructor)(params)创建一个新的 Chain 实例。

Properties ​

PropertyModifiersTypeDescription
chainFunctionChain | TypeScriptChain
chainName?string(Optional)
llmLLM

Methods ​

MethodModifiersDescription
call(params)调用Chain
exportHistory()导出链的历史记录。

Released under the MIT License.