Expand description
siumai-provider-cohere
Cohere provider implementation for siumai.
Currently, this crate focuses on Cohere’s reranking endpoint (/v2/rerank) to align
with the Vercel AI SDK @ai-sdk/cohere behavior.
Modules§
- auth
- Authentication helpers and token providers. This module defines a minimal trait to supply Bearer tokens (e.g., for Vertex AI).
- builder
- Builder utilities shared across provider crates.
- client
- Client Module
- core
- Core Abstractions
- defaults
- Default Configuration Values
- error
- Error handling (re-export).
- execution
- Execution Layer - Unified Public API
- hosted_
tools - Provider-defined tools (core crate).
- observability
- Observability entrypoint: unified namespace for tracing and telemetry.
- params
- Parameter Management Module
- provider_
options - Provider-owned typed option structs (Cohere-specific). Provider-owned typed option structs for Cohere.
- providers
- Provider-owned clients and builders.
- retry
- Retry module (ergonomic namespace)
- retry_
api - Public Retry API Facade
- standards
- Protocol standards owned by this crate.
- streaming
- Streaming Module
- traits
- Core Trait Definitions
- types
- Core data type definitions (re-export).
- utils
- Utility modules for siumai
Enums§
- LlmError
- The primary error type for the LLM library.