GoodMemGoodMem
ReferenceSdkRustTypes

Space

Rust struct goodmem::models::Space: declaration, fields or variants, and implementations.

All types

Struct Space

goodmem::models::Space

A Space is a container for organizing related memories with vector embeddings.

pub struct Space {
    pub space_id: String,
    pub name: String,
    pub labels: BTreeMap<String, String>,
    pub space_embedders: Vec<SpaceEmbedder>,
    pub created_at: i64,
    pub updated_at: i64,
    pub owner_id: String,
    pub created_by_id: String,
    pub updated_by_id: String,
    pub default_chunking_config: Option<Box<ChunkingConfiguration>>,
}

Referenced types: ChunkingConfiguration, SpaceEmbedder.

Fields

space_id

pub space_id: String

The UUID for this space. Wire name: spaceId.

name

pub name: String

The name of the space. Wire name: name.

labels

pub labels: BTreeMap<String, String>

Key-value pairs of metadata associated with the space. Wire name: labels.

space_embedders

pub space_embedders: Vec<SpaceEmbedder>

The list of embedders associated with this space. Wire name: spaceEmbedders.

created_at

pub created_at: i64

Timestamp when this space was created (milliseconds since epoch). Wire name: createdAt.

updated_at

pub updated_at: i64

Timestamp when this space was last updated (milliseconds since epoch). Wire name: updatedAt.

owner_id

pub owner_id: String

The ID of the user who owns this space. Wire name: ownerId.

created_by_id

pub created_by_id: String

The ID of the user who created this space. Wire name: createdById.

updated_by_id

pub updated_by_id: String

The ID of the user who last updated this space. Wire name: updatedById.

default_chunking_config

pub default_chunking_config: Option<Box<ChunkingConfiguration>>

Default chunking strategy for memories in this space Wire name: defaultChunkingConfig.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for Space
  • impl std::fmt::Debug for Space

On this page