Skip to main content

Crate siumai_core

Crate siumai_core 

Source
Expand description

siumai-core

Provider-agnostic runtime, types, and shared execution primitives.

Re-exports§

pub use error::LlmErrorExt;

Modules§

auth
Authentication helpers and token providers. This module defines provider-agnostic contracts for supplying Bearer tokens.
builder
Builder base + provider builder core utilities.
client
Client Module
completion
Completion model family.
core
Core Abstractions
custom_provider
Custom Provider Framework
defaults
Shared Default Configuration Values
embedding
Embedding model family.
encoding
Provider wire-format encoders.
error
Error handling (re-export).
execution
Execution Layer - Unified Public API
image
Image generation model family.
observability
Observability entrypoint: unified namespace for tracing and telemetry.
params
Parameter Management Module
rerank
Rerank model family.
retry
Retry module (ergonomic namespace)
retry_api
Public Retry API Facade
speech
Speech (text-to-speech) model family.
standards
Protocol standards and compatibility helpers.
streaming
Streaming Module
structured_output
Provider-agnostic structured output helpers.
text
Text model family contracts.
tooling
Tool runtime (schema + execution binding).
tools
Provider-defined tool factories (re-export).
traits
Core Trait Definitions
transcription
Transcription (speech-to-text) model family.
types
Core data type definitions (re-export).
ui
AI SDK-style UI message helpers.
utils
Utility modules for siumai
video
Video generation model family (task-oriented).

Macros§

traced_http_request
traced_llm_chat

Enums§

LlmError
The primary error type for the LLM library.