Class: LLMQuestionGenerator
LLMQuestionGenerator uses the LLM to generate new questions for the LLM using tools and a user query.
Implements
Constructors
constructor
• new LLMQuestionGenerator(init?
)
Parameters
Name | Type |
---|---|
init? | Partial <LLMQuestionGenerator > |
Defined in
Properties
llm
• llm: LLM
Defined in
outputParser
• outputParser: BaseOutputParser
<StructuredOutput
<SubQuestion
[]>>
Defined in
prompt
• prompt: (__namedParameters
: Object
) => string
Type declaration
▸ («destructured»
): string
Parameters
Name | Type |
---|---|
«destructured» | Object |
Returns
string
Defined in
Methods
generate
▸ generate(tools
, query
): Promise
<SubQuestion
[]>
Parameters
Name | Type |
---|---|
tools | ToolMetadata [] |
query | string |
Returns
Promise
<SubQuestion
[]>
Implementation of
BaseQuestionGenerator.generate