class_docstr: Use Cohere Python SDK to interact with Cohere platform.
  
  .. seealso:: https://docs.cohere.com/docs
  
  :param conn_id: :ref:`Cohere connection id <howto/connection:cohere>`
  :param timeout: Request timeout in seconds.
  :param max_retries: Maximal number of retries for requests.
class_docstr_tok: ["Use","Cohere","Python","SDK","to","interact","with","Cohere","platform",".","..","seealso",":",":","https",":","\/\/docs.cohere.com\/docs",":","param","conn_id",":",":","ref",":","`","Cohere","connection","id","<","howto\/connection",":","cohere",">","`",":","param","timeout",":","Request","timeout","in","seconds",".",":","param","max_retries",":","Maximal","number","of","retries","for","requests","."]
code: def get_conn(self) -> cohere.Client:
      conn = self.get_connection(self.conn_id)
      return cohere.Client(
          api_key=conn.password,
          timeout=self.timeout,
          max_retries=self.max_retries,
          api_url=conn.host,
      )
  
file_path: airflow/airflow/providers/cohere/hooks/cohere.py
imports: from __future__ import annotations
  from functools import cached_property
  from typing import Any
  import cohere
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 2 for calling the CohereHook obj's underlying member method code with example usage: obj.get_conn() and returns: cohere