Skip to main content

Crate cersei_types

Crate cersei_types 

Source
Expand description

cersei-types: Provider-agnostic message types, errors, and content blocks for the Cersei coding agent SDK.

Structs§

CitationsConfig
DocumentSource
ImageSource
MemoryEntry
Message
MessageMetadata
SessionInfo
ToolDefinition
Usage

Enums§

CerseiError
ContentBlock
MediaKind
Broad category of a media file, derived from its MIME type. Used to decide whether a file becomes an ContentBlock::Image or ContentBlock::Document.
MessageContent
Role
StopReason
StreamEvent
ToolResultContent

Functions§

detect_mime
Detect a MIME type from the leading bytes of a file (magic numbers), falling back to the file extension when the signature is unrecognized. Returns None when neither yields a known type.

Type Aliases§

Result