pub struct RememberResponse {Show 16 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 chunks_created: usize,
pub chunks_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
Payload JSON emitido pelo subcomando remember.
Todos os campos são obrigatórios no contrato JSON (ver docs/schemas/remember.schema.json).
operation é alias de action para compatibilidade com clientes que usam o campo antigo.
§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,
chunks_created: 1,
chunks_persisted: 0,
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"));Fields§
§memory_id: i64§name: String§namespace: String§action: String§operation: StringAlias semântico de action para compatibilidade com contrato documentado em SKILL.md e AGENT_PROTOCOL.md.
version: i64§entities_persisted: usize§relationships_persisted: usize§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.
extraction_method: Option<String>Método de extração usado: “bert+regex” ou “regex-only”. None se skip-extraction.
merged_into_memory_id: Option<i64>§warnings: Vec<String>§created_at: i64Timestamp Unix epoch seconds.
created_at_iso: StringTimestamp RFC 3339 UTC string paralelo a created_at para parsers ISO 8601.
elapsed_ms: u64Tempo total de execução em milissegundos desde início do handler até serialização.
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