get_cohere_chat_request#

langchain_community.chat_models.cohere.get_cohere_chat_request(messages: List[BaseMessage], *, connectors: List[Dict[str, 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.

Returns:

The request for the Cohere chat API.

Return type:

Dict[str, Any]