ebbmem_client_generated/models/memory_tier.rs
1/*
2 * Ebb Memory Engine API
3 *
4 * Production cognitive memory engine and multi-transport gateway for autonomous AI agents. Features continuous mass-dilated logarithmic decay, Hebbian co-activation networks, off-heap mmap storage, and unified enterprise security. Canonical public HTTP contract for Ebb client SDKs. Generated from the hosted FastAPI application. Excludes internal and admin routes (`/api/v1/admin/_**`, `/metrics`, `/mcp`). Protected operations require `Authorization: Bearer <token>` (security scheme `HTTPBearer`). The same routes accept an optional `X-API-Key` header and `X-Ebb-Namespace` to select a namespace. Error responses use the `ErrorResponse` envelope (`code`, `message`, `details`) plus FastAPI's `HTTPValidationError` for 422. SDK subset of the Ebb HTTP contract. Includes Memory, Tasks, Events, and Health. Omits admin, runtime config, provider probes, registration, password reset, and SSO.
5 *
6 * The version of the OpenAPI document: 0.2.0
7 * Contact: maintainers@spectrayan.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// MemoryTier : Memory tier taxonomy in cognitive hierarchy.
15/// Memory tier taxonomy in cognitive hierarchy.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum MemoryTier {
18 #[serde(rename = "working")]
19 Working,
20 #[serde(rename = "episodic")]
21 Episodic,
22 #[serde(rename = "semantic")]
23 Semantic,
24 #[serde(rename = "procedural")]
25 Procedural,
26
27}
28
29impl std::fmt::Display for MemoryTier {
30 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31 match self {
32 Self::Working => write!(f, "working"),
33 Self::Episodic => write!(f, "episodic"),
34 Self::Semantic => write!(f, "semantic"),
35 Self::Procedural => write!(f, "procedural"),
36 }
37 }
38}
39
40impl Default for MemoryTier {
41 fn default() -> MemoryTier {
42 Self::Working
43 }
44}
45