Expand description
cersei-types: Provider-agnostic message types, errors, and content blocks for the Cersei coding agent SDK.
Structs§
- Citations
Config - Document
Source - Image
Source - Memory
Entry - Message
- Message
Metadata - Session
Info - Tool
Definition - Usage
Enums§
- Cersei
Error - Content
Block - Media
Kind - Broad category of a media file, derived from its MIME type. Used to decide
whether a file becomes an
ContentBlock::ImageorContentBlock::Document. - Message
Content - Role
- Stop
Reason - Stream
Event - Tool
Result Content
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
Nonewhen neither yields a known type.