airflow.providers.cohere.hooks.cohere¶
属性¶
类¶
使用 Cohere Python SDK 通过 API v2 与 Cohere 平台交互。 |
模块内容¶
- class airflow.providers.cohere.hooks.cohere.CohereHook(conn_id=default_conn_name, timeout=None, max_retries=None, request_options=None)[源码]¶
基类:
airflow.hooks.base.BaseHook
使用 Cohere Python SDK 通过 API v2 与 Cohere 平台交互。
- 参数:
conn_id (str) – Cohere 连接 ID
timeout (int | None) – 请求超时(秒)。可选。
max_retries (int | None) – 请求的最大重试次数。已弃用,请改用 request_options。可选。
request_options (cohere.core.request_options.RequestOptions | None) – 用于函数特定请求配置的字典。可选。