create_summarize_prompt#
- langchain_cohere.chains.summarize.summarize_chain.create_summarize_prompt(prompt_message: BaseMessage = HumanMessage(content='Please summarize the documents in a concise manner.', additional_kwargs={}, response_metadata={}), extra_prompt_messages: List[BaseMessagePromptTemplate] = []) ChatPromptTemplate [source]#
Create prompt for this agent. :param system_message: Message to use as the system message that will be the
first in the prompt.
- Parameters:
extra_prompt_messages (List[BaseMessagePromptTemplate]) – Prompt messages that will be placed between the system message and the new human input.
prompt_message (BaseMessage)
- Returns:
A prompt template to pass into this agent.
- Return type: