pub struct TraceEntry {
pub origin_function: String,
pub status: String,
pub method_params: Option<Value>,
pub method_return_value: Option<Value>,
pub memory_query: String,
pub memory_context: String,
pub error_message: String,
pub generate_feedback_with_llm: bool,
}Expand description
One step of an agent trace.
Python parity: cognee/memory/entries.py:34-50. status defaults
to "success"; generate_feedback_with_llm defaults to false;
the three string fields (memory_query, memory_context,
error_message) default to "".
Fields§
§origin_function: StringName of the originating function/tool.
status: StringFree-form per Python validator; typically "success" / "error".
method_params: Option<Value>Method parameters (wire: methodParams). Optional so callers
may omit it; converted to Value::Null when dispatched.
method_return_value: Option<Value>Optional method return value.
memory_query: StringMemory query string. Defaults to "".
memory_context: StringMemory context string. Defaults to "".
error_message: StringError message string. Defaults to "".
generate_feedback_with_llm: boolIf true, instructs the dispatcher to generate session_feedback
via an LLM call. TODO(LIB-01-followup): LLM plumbing not in
scope for LIB-01; the dispatch passes session_feedback = "".
Trait Implementations§
Source§impl Clone for TraceEntry
impl Clone for TraceEntry
Source§fn clone(&self) -> TraceEntry
fn clone(&self) -> TraceEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more