Skip to main content

siumai_provider_cohere/
lib.rs

1//! siumai-provider-cohere
2//!
3//! Cohere provider implementation for siumai.
4//!
5//! Currently, this crate focuses on Cohere's reranking endpoint (`/v2/rerank`) to align
6//! with the Vercel AI SDK `@ai-sdk/cohere` behavior.
7#![deny(unsafe_code)]
8
9// Re-export the provider-agnostic core modules required by the provider implementation.
10// This preserves existing internal module paths in migrated code (e.g. `crate::types::*`).
11pub use siumai_core::{
12    LlmError, auth, client, core, defaults, error, execution, hosted_tools, observability, params,
13    retry, retry_api, streaming, traits, types, utils,
14};
15
16/// Builder utilities shared across provider crates.
17pub mod builder {
18    pub use siumai_core::builder::*;
19}
20
21pub mod providers;
22pub mod standards;
23
24/// Provider-owned typed option structs (Cohere-specific).
25pub mod provider_options;