pub struct KgPathResponse {
pub agent_id: String,
pub from_id: String,
pub to_id: String,
pub hop_count: usize,
pub path: Vec<String>,
}Expand description
Response from GET /v1/knowledge/path (KG-2).
Fields§
§agent_id: StringAgent whose graph was traversed.
from_id: StringSource memory ID.
to_id: StringTarget memory ID.
hop_count: usizeNumber of edges in the shortest path (0 if source == target).
path: Vec<String>Ordered list of memory IDs from source to target (inclusive).
Trait Implementations§
Source§impl Clone for KgPathResponse
impl Clone for KgPathResponse
Source§fn clone(&self) -> KgPathResponse
fn clone(&self) -> KgPathResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KgPathResponse
impl Debug for KgPathResponse
Source§impl<'de> Deserialize<'de> for KgPathResponse
impl<'de> Deserialize<'de> for KgPathResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KgPathResponse
impl RefUnwindSafe for KgPathResponse
impl Send for KgPathResponse
impl Sync for KgPathResponse
impl Unpin for KgPathResponse
impl UnsafeUnpin for KgPathResponse
impl UnwindSafe for KgPathResponse
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
Mutably borrows from an owned value. Read more