pub struct FindPathsBody {
pub source_id: String,
pub target_id: String,
pub max_depth: Option<usize>,
pub max_results: Option<usize>,
}Expand description
JSON body for POST /api/v1/kg/find_paths.
source_id + target_id are required. max_depth defaults to the
adapter’s FIND_PATHS_DEFAULT_DEPTH; max_results clamps the
returned path count.
Fields§
§source_id: StringSource memory id. Accepts the legacy from_id alias for
compatibility with the MCP memory_find_paths tool, the CLI
find-paths --from, and pre-v0.7.0 docs (#934 field-name drift
fix, 2026-05-20).
target_id: StringTarget memory id. Accepts the legacy to_id alias for the same
MCP / CLI / docs compatibility surface as source_id.
max_depth: Option<usize>§max_results: Option<usize>Trait Implementations§
Source§impl Debug for FindPathsBody
impl Debug for FindPathsBody
Source§impl<'de> Deserialize<'de> for FindPathsBody
impl<'de> Deserialize<'de> for FindPathsBody
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 FindPathsBody
impl RefUnwindSafe for FindPathsBody
impl Send for FindPathsBody
impl Sync for FindPathsBody
impl Unpin for FindPathsBody
impl UnsafeUnpin for FindPathsBody
impl UnwindSafe for FindPathsBody
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
Converts
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>
Converts
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