Skip to main content

Crate synaptic_perplexity

Crate synaptic_perplexity 

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.
PerplexityChatModel
PerplexityConfig

Enums§

Message
Represents a chat message. Tagged enum with System, Human, AI, and Tool variants.
PerplexityModel
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.

Type Aliases§

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