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:
Returns:

A prompt template to pass into this agent.

Return type:

ChatPromptTemplate