pub struct EntitiesArgs {Show 14 fields
pub action: String,
pub entity_id: Option<String>,
pub name: Option<String>,
pub entity_type: Option<String>,
pub aliases: Option<Vec<String>>,
pub limit: Option<usize>,
pub content: Option<String>,
pub store: bool,
pub memory_id: Option<String>,
pub min_confidence: Option<f32>,
pub merge_action: Option<String>,
pub entity_ids: Option<Vec<String>>,
pub canonical_name: Option<String>,
pub threshold: Option<f32>,
}Expand description
Arguments for the entities tool.
Provides CRUD and advanced operations for entities in the knowledge graph. Actions: create, get, list, delete, extract, merge.
Fields§
§action: StringOperation to perform: create, get, list, delete, extract, merge.
entity_id: Option<String>Entity ID (required for get/delete, find_duplicates sub-action of merge).
name: Option<String>Entity name (required for create).
entity_type: Option<String>Type of entity: Person, Organization, Technology, Concept, File.
aliases: Option<Vec<String>>Alternative names for the entity.
limit: Option<usize>Maximum results for list operation (default: 20).
content: Option<String>Text content to extract entities from (for extract action).
store: boolWhether to store extracted entities in the graph (for extract/merge, default: false).
memory_id: Option<String>Optional memory ID to link extracted entities to (for extract action).
min_confidence: Option<f32>Minimum confidence threshold 0.0-1.0 (for extract action, default: 0.5).
merge_action: Option<String>Sub-action for merge: find_duplicates, merge (for merge action).
entity_ids: Option<Vec<String>>Entity IDs to merge (for merge action, minimum 2).
canonical_name: Option<String>Name for the merged entity (for merge action).
threshold: Option<f32>Similarity threshold for finding duplicates 0.0-1.0 (for merge action, default: 0.7).
Trait Implementations§
Source§impl Debug for EntitiesArgs
impl Debug for EntitiesArgs
Source§impl<'de> Deserialize<'de> for EntitiesArgs
impl<'de> Deserialize<'de> for EntitiesArgs
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>,
Auto Trait Implementations§
impl Freeze for EntitiesArgs
impl RefUnwindSafe for EntitiesArgs
impl Send for EntitiesArgs
impl Sync for EntitiesArgs
impl Unpin for EntitiesArgs
impl UnwindSafe for EntitiesArgs
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].