Skip to main content
Core TypeScript types for the @mariozechner/pi-web-ui package.

Import

Message Types

ArtifactMessage

Custom message type for artifact content (HTML, SVG, etc.).
Extend CustomAgentMessages to use in agent:

UserMessageWithAttachments

User message with file attachments.

Attachment Types

Attachment

File attachment data.

Example

Renderer Types

MessageRenderer

Custom message renderer function.

Example

ToolRenderer

Custom tool result renderer.

Example

Sandbox Types

SandboxRuntimeProvider

Runtime provider for sandboxed code execution.

ConsoleLog

Console log entry.

DownloadableFile

File available for download from sandbox.

Storage Types

SessionData

Session data stored in IndexedDB.

SessionMetadata

Session metadata for list display.

Settings Types

CustomProvider

Custom API provider configuration.

CustomProviderType

Component Props Types

ChatPanelProps

AgentInterfaceProps

MessageListProps

InputProps

ModelSelectorProps

SettingsDialogProps

Example: Type-Safe Usage

Storage Backend Types

StorageBackend

Generic storage interface.

IndexedDBConfig

IndexedDB configuration.

StoreConfig

IndexedDB store configuration.

IndexConfig

IndexedDB index configuration.