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?
): LLMQuestionGenerator
Parameters
Name | Type |
---|---|
init? | Partial <LLMQuestionGenerator > |
Returns
Defined in
packages/core/src/QuestionGenerator.ts:25
Properties
llm
• llm: LLM
Defined in
packages/core/src/QuestionGenerator.ts:21
outputParser
• outputParser: BaseOutputParser
<StructuredOutput
<SubQuestion
[]>>
Defined in
packages/core/src/QuestionGenerator.ts:23
prompt
• prompt: (__namedParameters
: { queryStr
: undefined
| string
= ""; toolsStr
: undefined
| string
= "" }) => string
Type declaration
▸ («destructured»
): string
Parameters
Name | Type | Default value |
---|---|---|
«destructured» | Object | undefined |
› queryStr | undefined | string | "" |
› toolsStr | undefined | string | "" |
Returns
string
Defined in
packages/core/src/QuestionGenerator.ts:22
Methods
generate
▸ generate(tools
, query
): Promise
<SubQuestion
[]>
Parameters
Name | Type |
---|---|
tools | ToolMetadata [] |
query | string |
Returns
Promise
<SubQuestion
[]>
Implementation of
BaseQuestionGenerator.generate