getting this error when running LLMQuestionGenerator:
SubQuestion expected dict not str (type=type_error)
from this code:
query= input("Query: ")
question_gen = LLMQuestionGenerator.from_defaults(llm=Settings.llm)
tool_choices = [
ToolMetadata(
name="vyos",
description="Provides information about VyOS and its contents",
),
ToolMetadata(
name="ubuntu",
description="Provides information about Ubuntu and its contents",
),
]
# Generate sub-questions
query_bundle = QueryBundle(query_str=query)
choices = question_gen.generate(tool_choices, query_bundle)
for choice in choices:
print(choice)