Skip to main content

Crate siumai_core

Crate siumai_core 

Source
Expand description

siumai-core

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

Modules§

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

Macros§

traced_http_request
traced_llm_chat

Enums§

LlmError
The primary error type for the LLM library.