pub struct RememberResponse {Show 18 fields
pub memory_id: i64,
pub name: String,
pub namespace: String,
pub action: String,
pub operation: String,
pub version: i64,
pub entities_persisted: usize,
pub relationships_persisted: usize,
pub relationships_truncated: bool,
pub chunks_created: usize,
pub chunks_persisted: usize,
pub urls_persisted: usize,
pub extraction_method: Option<String>,
pub merged_into_memory_id: Option<i64>,
pub warnings: Vec<String>,
pub created_at: i64,
pub created_at_iso: String,
pub elapsed_ms: u64,
}Expand description
JSON payload emitted by the remember subcommand.
All fields are required by the JSON contract (see docs/schemas/remember.schema.json).
operation is an alias of action for compatibility with clients using the old field name.
§Examples
use sqlite_graphrag::output::RememberResponse;
let resp = RememberResponse {
memory_id: 1,
name: "nota-inicial".into(),
namespace: "global".into(),
action: "created".into(),
operation: "created".into(),
version: 1,
entities_persisted: 0,
relationships_persisted: 0,
relationships_truncated: false,
chunks_created: 1,
chunks_persisted: 0,
urls_persisted: 0,
extraction_method: None,
merged_into_memory_id: None,
warnings: vec![],
created_at: 1_700_000_000,
created_at_iso: "2023-11-14T22:13:20Z".into(),
elapsed_ms: 42,
};
let json = serde_json::to_string(&resp).unwrap();
assert!(json.contains("\"memory_id\":1"));
assert!(json.contains("\"elapsed_ms\":42"));
assert!(json.contains("\"merged_into_memory_id\":null"));
assert!(json.contains("\"urls_persisted\":0"));
assert!(json.contains("\"relationships_truncated\":false"));Fields§
§memory_id: i64§name: String§namespace: String§action: String§operation: StringSemantic alias of action for compatibility with the contract documented in SKILL.md and AGENT_PROTOCOL.md.
version: i64§entities_persisted: usize§relationships_persisted: usize§relationships_truncated: boolTrue when the relationship builder hit the cap before covering all entity pairs. Callers can use this to decide whether to increase GRAPHRAG_MAX_RELATIONSHIPS_PER_MEMORY.
chunks_created: usizeTotal chunks produced by the hierarchical splitter for this body.
For single-chunk bodies this equals 1 even though no row is added to
the memory_chunks table — the memory row itself acts as the chunk.
Use chunks_persisted to know how many rows were actually written.
chunks_persisted: usizeNumber of rows actually inserted into the memory_chunks table.
Equals zero for single-chunk bodies (the memory row is the chunk) and
equals chunks_created for multi-chunk bodies. Added in v1.0.23 to
disambiguate from chunks_created and reflect database state precisely.
urls_persisted: usizeNumber of unique URLs inserted into memory_urls for this memory.
Added in v1.0.24 — split URLs out of the entity graph (P0-2 fix).
extraction_method: Option<String>Extraction method used: “bert+regex” or “regex-only”. None when skip-extraction.
merged_into_memory_id: Option<i64>§warnings: Vec<String>§created_at: i64Timestamp Unix epoch seconds.
created_at_iso: StringRFC 3339 UTC timestamp string parallel to created_at for ISO 8601 parsers.
elapsed_ms: u64Total execution time in milliseconds from handler start to serialisation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RememberResponse
impl RefUnwindSafe for RememberResponse
impl Send for RememberResponse
impl Sync for RememberResponse
impl Unpin for RememberResponse
impl UnsafeUnpin for RememberResponse
impl UnwindSafe for RememberResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more