agsamantha/node_modules/langchain/dist/experimental/babyagi/task_prioritization.d.ts
2024-10-02 15:15:21 -05:00

14 lines
689 B
TypeScript

import { LLMChain, LLMChainInput } from "../../chains/llm_chain.js";
/** Chain to prioritize tasks. */
export declare class TaskPrioritizationChain extends LLMChain {
static lc_name(): string;
/**
* Static method to create a new TaskPrioritizationChain from a
* BaseLanguageModel. It generates a prompt using the PromptTemplate class
* and the task prioritization template, and returns a new instance of
* TaskPrioritizationChain.
* @param fields Object with fields used to initialize the chain, excluding the prompt.
* @returns A new instance of TaskPrioritizationChain.
*/
static fromLLM(fields: Omit<LLMChainInput, "prompt">): LLMChain;
}