Toggle Menu
Prev Up Next

# `langchain_cohere.chat_models`.get_cohere_chat_request

langchain_cohere.chat_models.get_cohere_chat_request(messages: List[BaseMessage], *, documents: Optional[List[Document]] = None, connectors: Optional[List[Dict[str, str]]] = None, stop_sequences: Optional[List[str]] = None, **kwargs: Any) → Dict[str, Any]

  Get the request for the Cohere chat API.

  Parameters

    - messages (List[BaseMessage]) – The messages.

    - connectors (Optional[List[Dict[str, str]]]) – The connectors.

    - **kwargs (Any) – The keyword arguments.

    - documents (Optional[List[Document]]) –

    - stop_sequences (Optional[List[str]]) –

    - **kwargs –

  Returns

    The request for the Cohere chat API.

  Return type

    Dict[str, Any]