Skip to main content

Crate synaptic_mistral

Crate synaptic_mistral 

Source

Structs§

ChatRequest
A request to a chat model containing messages, optional tool definitions, and tool choice configuration.
ChatResponse
A response from a chat model containing the AI message and optional token usage statistics.
MistralChatModel
MistralConfig
OpenAiEmbeddings
OpenAiEmbeddingsConfig

Enums§

Message
Represents a chat message. Tagged enum with System, Human, AI, and Tool variants.
MistralModel
SynapticError
Unified error type for the Synaptic framework with variants covering all subsystems.

Traits§

ChatModel
The core trait for language model providers. Implementations provide chat() for single responses and optionally stream_chat() for streaming.

Functions§

mistral_embeddings

Type Aliases§

ChatStream
Type alias for a pinned, boxed async stream of AIMessageChunk results.