pub struct KgQueryParams {
pub agent_id: String,
pub root_id: Option<String>,
pub edge_type: Option<String>,
pub min_weight: Option<f32>,
pub max_depth: u32,
pub limit: usize,
}Expand description
GET /v1/knowledge/query — JSON DSL for graph filtering/traversal
Fields§
§agent_id: StringAgent ID whose graph to query (required).
root_id: Option<String>Optional root memory ID — if set, performs BFS from this node first.
edge_type: Option<String>Filter edges by type (comma-separated, e.g. “related_to,shares_entity”).
min_weight: Option<f32>Minimum edge weight (0.0–1.0).
max_depth: u32BFS depth when root_id is set (1–5, default 3).
limit: usizeMaximum number of edges to return (default 100, max 1000).
Trait Implementations§
Source§impl Debug for KgQueryParams
impl Debug for KgQueryParams
Source§impl<'de> Deserialize<'de> for KgQueryParams
impl<'de> Deserialize<'de> for KgQueryParams
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 KgQueryParams
impl RefUnwindSafe for KgQueryParams
impl Send for KgQueryParams
impl Sync for KgQueryParams
impl Unpin for KgQueryParams
impl UnsafeUnpin for KgQueryParams
impl UnwindSafe for KgQueryParams
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