load_conversation_agent#

load_conversation_agent(llm: BaseLanguageModel, prompt_template: str | None = None, verbose: bool = False) → ConversationAgent[source]#

Return a conversation agent initialized with memory and custom prompts

Parameters:
  • llm – Which LLM to use for inference

  • prompt_template – Prompt template instructing LLM role and response instructions

  • verbose – If the LLM chain should be verbose

Returns:

ConversationAgent instance

Return type:

ConversationAgent