create_prompt#
- langchain_cohere.csv_agent.agent.create_prompt(system_message: BaseMessage | None = SystemMessage(content='You are a helpful AI assistant.', additional_kwargs={}, response_metadata={}), extra_prompt_messages: List[BaseMessagePromptTemplate] | None = None) ChatPromptTemplate [source]#
Create prompt for this agent.
- Parameters:
system_message (BaseMessage | None) – Message to use as the system message that will be the first in the prompt.
extra_prompt_messages (List[BaseMessagePromptTemplate] | None) – Prompt messages that will be placed between the system message and the new human input.
- Returns:
A prompt template to pass into this agent.
- Return type: