get_cohere_chat_request#
- langchain_cohere.chat_models.get_cohere_chat_request(messages: List[BaseMessage], *, documents: List[Document] | None = None, connectors: List[Dict[str, str]] | None = None, stop_sequences: List[str] | None = None, **kwargs: Any) Dict[str, Any] [source]#
Get the request for the Cohere chat API.
- Parameters:
messages (List[BaseMessage]) – The messages.
connectors (List[Dict[str, str]] | None) – The connectors.
**kwargs (Any) – The keyword arguments.
documents (List[Document] | None)
stop_sequences (List[str] | None)
**kwargs
- Returns:
The request for the Cohere chat API.
- Return type:
Dict[str, Any]