query_engine.update_prompts( {"response_synthesizer:summary_template": new_summary_tmpl} )
>>> from llama_index.core.agent import ReActAgent
>>> agent = ReActAgent.from_tools([])
>>> agent.get_prompts()
{'agent_worker:system_prompt': PromptTemplate(metadata={'prompt_type': <PromptType.CUSTOM: 'custom'>}, template_vars=['tool_desc', 'tool_names'], kwargs={}, output_parser=None, template_var_mappings=None, function_mappings=None, template='You are designed to help with a variety of tasks, from answering questions to providing summaries to other types of analyses.\n\n## Tools\n\nYou have access to a wide variety of tools. You are re .... l you have enough information to answer the question without using any more tools. At that point, you MUST respond in the one of the following two formats:\n\n\n\nPlain Text\nThought: I can answer without using any more tools. I\'ll use the user\'s language to answer\nAnswer: [your answer here (In the same language as the user\'s question)]\n\n\n## Current Conversation\n\nBelow is the current conversation consisting of interleaving human and assistant messages.\n')}Plain Text\nThought: I cannot answer the question with the provided tools.\nAnswer: [your answer here (In the same language as the user\'s question)]\n
>>> prompt = agent.get_prompts()['agent_worker:system_prompt']
>>> agent.update_prompts({'agent_worker:system_prompt': prompt})
>>>