load_lesson_planner#
- load_lesson_planner(llm: BaseLanguageModel, system_prompt: str = "Please output the requested list of broad lesson topics starting with the header 'Topics:' and then followed by a numbered list of topics. Please include enough general topics that a language teacher could effectively teach the language for the given skill level. At the end of your list of topics, say '<END_OF_LIST>'", human_prompt: str = 'Write a list of lesson topics for a person learning {language} through immersion by speaking with a native speaker of {language}. The learner has {proficiency} level experience with {language}. Tailor the lesson topics for the native instructor for the level of experience the learner has.', verbose: bool = False) LessonPlannerAgent[source]#
Return a lesson planner agent initialized with memory and custom prompts
- Parameters:
llm – Which LLM to use for inference
system_prompt – Prompt template instructing LLM role and response format
human_prompt – Prompt template providing LLM user proficiency and target language
verbose – If the LLM chain should be verbose
- Returns:
LessonPlannerAgent instance
- Return type: