GoodMemGoodMem
ReferenceSdkRustTypes

MemoryChunkResponse

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

All types

Struct MemoryChunkResponse

goodmem::models::MemoryChunkResponse

Memory chunk information

pub struct MemoryChunkResponse {
    pub chunk_id: String,
    pub memory_id: String,
    pub chunk_sequence_number: i32,
    pub chunk_text: String,
    pub vector_status: MemoryChunkResponseVectorStatus,
    pub start_offset: Option<i32>,
    pub end_offset: Option<i32>,
    pub metadata: Option<BTreeMap<String, serde_json::Value>>,
    pub created_at: i64,
    pub updated_at: i64,
    pub created_by_id: String,
    pub updated_by_id: String,
}

Referenced types: MemoryChunkResponseVectorStatus.

Fields

chunk_id

pub chunk_id: String

Unique identifier of the memory chunk Wire name: chunkId.

memory_id

pub memory_id: String

ID of the memory this chunk belongs to Wire name: memoryId.

chunk_sequence_number

pub chunk_sequence_number: i32

Sequence number of this chunk within the memory Wire name: chunkSequenceNumber.

chunk_text

pub chunk_text: String

The text content of this chunk Wire name: chunkText.

vector_status

pub vector_status: MemoryChunkResponseVectorStatus

Status of vector processing for this chunk Wire name: vectorStatus.

start_offset

pub start_offset: Option<i32>

Start offset of this chunk in the original content Wire name: startOffset.

end_offset

pub end_offset: Option<i32>

End offset of this chunk in the original content Wire name: endOffset.

metadata

pub metadata: Option<BTreeMap<String, serde_json::Value>>

Additional metadata for the memory chunk Wire name: metadata.

created_at

pub created_at: i64

Creation timestamp (milliseconds since epoch) Wire name: createdAt.

updated_at

pub updated_at: i64

Last update timestamp (milliseconds since epoch) Wire name: updatedAt.

created_by_id

pub created_by_id: String

Exact principal or API-key audit actor that created the chunk Wire name: createdById.

updated_by_id

pub updated_by_id: String

Exact principal or API-key audit actor that last updated the chunk Wire name: updatedById.

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 MemoryChunkResponse
  • impl std::fmt::Debug for MemoryChunkResponse

On this page