Expand description
Data connector module for response storage and conversation storage.
Provides storage backends for:
- Conversations
- Conversation items
- Responses
Supported backends:
- Memory (default)
- None (no-op)
- Oracle ATP
- Postgres
- Redis
Re-exports§
pub use config::HistoryBackend;pub use config::OracleConfig;pub use config::PostgresConfig;pub use config::RedisConfig;pub use context::current_extra_columns;pub use context::current_request_context;pub use context::with_extra_columns;pub use context::with_request_context;pub use context::RequestContext;pub use hooks::BeforeHookResult;pub use hooks::ExtraColumns;pub use hooks::HookError;pub use hooks::StorageHook;pub use hooks::StorageOperation;pub use schema::ColumnDef;pub use schema::SchemaConfig;pub use schema::TableConfig;
Modules§
- config
- Storage backend configuration types.
- context
- Per-request context and hook data bridge for storage hooks.
- hooks
- Storage hook trait and supporting types.
- schema
- Schema configuration for storage backends.
Structs§
- Conversation
- Stored conversation data structure
- Conversation
Id - Conversation
Item - Conversation
Item Id - Conversation
Memory Id - List
Params - Memory
Conversation Item Storage - Memory
Conversation Storage - In-memory conversation storage used for development and tests
- Memory
Response Storage - In-memory implementation of response storage
- NewConversation
- Input payload for creating a conversation
- NewConversation
Item - NewConversation
Memory - Insert-only payload for creating a new conversation memory row.
- Response
Id - Response identifier
- Storage
Factory Config - Configuration for creating storage backends
- Stored
Response - Stored response data
Enums§
- Conversation
Memory Status - Conversation
Memory Storage Error - Conversation
Memory Type - Response
Storage Error - Error type for response storage operations
- Sort
Order
Traits§
- Conversation
Item Storage - Conversation
Memory Writer - Conversation
Storage - Trait describing the CRUD interface for conversation storage backends
- Response
Storage - Trait for response storage
Functions§
- create_
storage - Create all three storage backends based on configuration.