pub struct SemanticMemoryServer { /* private fields */ }Implementations§
Source§impl SemanticMemoryServer
impl SemanticMemoryServer
pub fn new(bridge: MemoryBridge, tool_profile: &str) -> Self
pub fn exposes_tool(&self, name: &str) -> bool
pub fn exposed_tool_names(&self) -> Vec<String>
pub fn tool_annotations(&self, name: &str) -> Option<ToolAnnotations>
Source§impl SemanticMemoryServer
impl SemanticMemoryServer
Sourcepub fn sm_search_tool_attr() -> Tool
pub fn sm_search_tool_attr() -> Tool
Generated tool metadata function for sm_search
Sourcepub fn sm_search_witnessed_tool_attr() -> Tool
pub fn sm_search_witnessed_tool_attr() -> Tool
Generated tool metadata function for sm_search_witnessed
Sourcepub fn sm_search_proof_debt_tool_attr() -> Tool
pub fn sm_search_proof_debt_tool_attr() -> Tool
Generated tool metadata function for sm_search_proof_debt
Sourcepub fn sm_benchmark_trust_tool_attr() -> Tool
pub fn sm_benchmark_trust_tool_attr() -> Tool
Generated tool metadata function for sm_benchmark_trust
Generated tool metadata function for sm_decide_assertion_authority
Generated tool metadata function for sm_decide_action_authority
Sourcepub fn sm_add_fact_tool_attr() -> Tool
pub fn sm_add_fact_tool_attr() -> Tool
Generated tool metadata function for sm_add_fact
Sourcepub fn sm_ingest_document_tool_attr() -> Tool
pub fn sm_ingest_document_tool_attr() -> Tool
Generated tool metadata function for sm_ingest_document
Sourcepub fn sm_stats_tool_attr() -> Tool
pub fn sm_stats_tool_attr() -> Tool
Generated tool metadata function for sm_stats
Sourcepub fn sm_graph_path_tool_attr() -> Tool
pub fn sm_graph_path_tool_attr() -> Tool
Generated tool metadata function for sm_graph_path
Sourcepub fn sm_get_fact_tool_attr() -> Tool
pub fn sm_get_fact_tool_attr() -> Tool
Generated tool metadata function for sm_get_fact
Sourcepub fn sm_list_facts_tool_attr() -> Tool
pub fn sm_list_facts_tool_attr() -> Tool
Generated tool metadata function for sm_list_facts
Sourcepub fn sm_list_namespaces_tool_attr() -> Tool
pub fn sm_list_namespaces_tool_attr() -> Tool
Generated tool metadata function for sm_list_namespaces
Sourcepub fn sm_get_fact_neighbors_tool_attr() -> Tool
pub fn sm_get_fact_neighbors_tool_attr() -> Tool
Generated tool metadata function for sm_get_fact_neighbors
Sourcepub fn sm_supersede_fact_tool_attr() -> Tool
pub fn sm_supersede_fact_tool_attr() -> Tool
Generated tool metadata function for sm_supersede_fact
Sourcepub fn sm_list_sessions_tool_attr() -> Tool
pub fn sm_list_sessions_tool_attr() -> Tool
Generated tool metadata function for sm_list_sessions
Sourcepub fn sm_get_messages_tool_attr() -> Tool
pub fn sm_get_messages_tool_attr() -> Tool
Generated tool metadata function for sm_get_messages
Sourcepub fn sm_search_conversations_tool_attr() -> Tool
pub fn sm_search_conversations_tool_attr() -> Tool
Generated tool metadata function for sm_search_conversations
Sourcepub fn sm_route_query_tool_attr() -> Tool
pub fn sm_route_query_tool_attr() -> Tool
Generated tool metadata function for sm_route_query
Sourcepub fn sm_search_with_routing_tool_attr() -> Tool
pub fn sm_search_with_routing_tool_attr() -> Tool
Generated tool metadata function for sm_search_with_routing
Sourcepub fn sm_decoder_analyze_tool_attr() -> Tool
pub fn sm_decoder_analyze_tool_attr() -> Tool
Generated tool metadata function for sm_decoder_analyze
Sourcepub fn sm_detect_contradictions_tool_attr() -> Tool
pub fn sm_detect_contradictions_tool_attr() -> Tool
Generated tool metadata function for sm_detect_contradictions
Sourcepub fn sm_discord_search_tool_attr() -> Tool
pub fn sm_discord_search_tool_attr() -> Tool
Generated tool metadata function for sm_discord_search
Sourcepub fn sm_set_provenance_tool_attr() -> Tool
pub fn sm_set_provenance_tool_attr() -> Tool
Generated tool metadata function for sm_set_provenance
Sourcepub fn sm_run_lifecycle_tool_attr() -> Tool
pub fn sm_run_lifecycle_tool_attr() -> Tool
Generated tool metadata function for sm_run_lifecycle
Sourcepub fn sm_add_graph_edge_tool_attr() -> Tool
pub fn sm_add_graph_edge_tool_attr() -> Tool
Generated tool metadata function for sm_add_graph_edge
Sourcepub fn sm_list_graph_edges_tool_attr() -> Tool
pub fn sm_list_graph_edges_tool_attr() -> Tool
Generated tool metadata function for sm_list_graph_edges
Sourcepub fn sm_invalidate_graph_edge_tool_attr() -> Tool
pub fn sm_invalidate_graph_edge_tool_attr() -> Tool
Generated tool metadata function for sm_invalidate_graph_edge
Sourcepub fn sm_factor_graph_tool_attr() -> Tool
pub fn sm_factor_graph_tool_attr() -> Tool
Generated tool metadata function for sm_factor_graph
Sourcepub fn sm_topology_tool_attr() -> Tool
pub fn sm_topology_tool_attr() -> Tool
Generated tool metadata function for sm_topology
Sourcepub fn sm_community_tool_attr() -> Tool
pub fn sm_community_tool_attr() -> Tool
Generated tool metadata function for sm_community
Sourcepub fn sm_subgraph_prune_tool_attr() -> Tool
pub fn sm_subgraph_prune_tool_attr() -> Tool
Generated tool metadata function for sm_subgraph_prune
Sourcepub fn sm_delete_fact_tool_attr() -> Tool
pub fn sm_delete_fact_tool_attr() -> Tool
Generated tool metadata function for sm_delete_fact
Sourcepub fn sm_delete_namespace_tool_attr() -> Tool
pub fn sm_delete_namespace_tool_attr() -> Tool
Generated tool metadata function for sm_delete_namespace
Sourcepub fn sm_update_fact_tool_attr() -> Tool
pub fn sm_update_fact_tool_attr() -> Tool
Generated tool metadata function for sm_update_fact
Sourcepub fn sm_consolidate_facts_tool_attr() -> Tool
pub fn sm_consolidate_facts_tool_attr() -> Tool
Generated tool metadata function for sm_consolidate_facts
Sourcepub fn sm_get_routing_policy_tool_attr() -> Tool
pub fn sm_get_routing_policy_tool_attr() -> Tool
Generated tool metadata function for sm_get_routing_policy
Sourcepub fn sm_record_outcome_tool_attr() -> Tool
pub fn sm_record_outcome_tool_attr() -> Tool
Generated tool metadata function for sm_record_outcome
Sourcepub fn sm_compact_claim_ledger_tool_attr() -> Tool
pub fn sm_compact_claim_ledger_tool_attr() -> Tool
Generated tool metadata function for sm_compact_claim_ledger
Sourcepub fn sm_create_claim_tool_attr() -> Tool
pub fn sm_create_claim_tool_attr() -> Tool
Generated tool metadata function for sm_create_claim
Sourcepub fn sm_add_evidence_tool_attr() -> Tool
pub fn sm_add_evidence_tool_attr() -> Tool
Generated tool metadata function for sm_add_evidence
Sourcepub fn sm_judge_support_tool_attr() -> Tool
pub fn sm_judge_support_tool_attr() -> Tool
Generated tool metadata function for sm_judge_support
Sourcepub fn sm_search_as_of_tool_attr() -> Tool
pub fn sm_search_as_of_tool_attr() -> Tool
Generated tool metadata function for sm_search_as_of
Sourcepub fn sm_verify_claim_tool_attr() -> Tool
pub fn sm_verify_claim_tool_attr() -> Tool
Generated tool metadata function for sm_verify_claim
Sourcepub fn sm_get_search_receipt_tool_attr() -> Tool
pub fn sm_get_search_receipt_tool_attr() -> Tool
Generated tool metadata function for sm_get_search_receipt
Sourcepub fn sm_replay_search_receipt_tool_attr() -> Tool
pub fn sm_replay_search_receipt_tool_attr() -> Tool
Generated tool metadata function for sm_replay_search_receipt
Sourcepub fn sm_replay_search_tool_attr() -> Tool
pub fn sm_replay_search_tool_attr() -> Tool
Generated tool metadata function for sm_replay_search
Sourcepub fn sm_reconcile_tool_attr() -> Tool
pub fn sm_reconcile_tool_attr() -> Tool
Generated tool metadata function for sm_reconcile
Sourcepub fn sm_vacuum_tool_attr() -> Tool
pub fn sm_vacuum_tool_attr() -> Tool
Generated tool metadata function for sm_vacuum
Sourcepub fn sm_reembed_all_tool_attr() -> Tool
pub fn sm_reembed_all_tool_attr() -> Tool
Generated tool metadata function for sm_reembed_all
Sourcepub fn sm_embeddings_are_dirty_tool_attr() -> Tool
pub fn sm_embeddings_are_dirty_tool_attr() -> Tool
Generated tool metadata function for sm_embeddings_are_dirty
Sourcepub fn sm_query_claim_versions_tool_attr() -> Tool
pub fn sm_query_claim_versions_tool_attr() -> Tool
Generated tool metadata function for sm_query_claim_versions
Sourcepub fn sm_query_relation_versions_tool_attr() -> Tool
pub fn sm_query_relation_versions_tool_attr() -> Tool
Generated tool metadata function for sm_query_relation_versions
Sourcepub fn sm_query_episodes_tool_attr() -> Tool
pub fn sm_query_episodes_tool_attr() -> Tool
Generated tool metadata function for sm_query_episodes
Sourcepub fn sm_query_entity_aliases_tool_attr() -> Tool
pub fn sm_query_entity_aliases_tool_attr() -> Tool
Generated tool metadata function for sm_query_entity_aliases
Sourcepub fn sm_query_evidence_refs_tool_attr() -> Tool
pub fn sm_query_evidence_refs_tool_attr() -> Tool
Generated tool metadata function for sm_query_evidence_refs
Sourcepub fn sm_import_envelope_tool_attr() -> Tool
pub fn sm_import_envelope_tool_attr() -> Tool
Generated tool metadata function for sm_import_envelope
Sourcepub fn sm_import_status_tool_attr() -> Tool
pub fn sm_import_status_tool_attr() -> Tool
Generated tool metadata function for sm_import_status
Sourcepub fn sm_list_imports_tool_attr() -> Tool
pub fn sm_list_imports_tool_attr() -> Tool
Generated tool metadata function for sm_list_imports
Sourcepub fn sm_parse_json_tool_attr() -> Tool
pub fn sm_parse_json_tool_attr() -> Tool
Generated tool metadata function for sm_parse_json
Sourcepub fn sm_parse_json_value_tool_attr() -> Tool
pub fn sm_parse_json_value_tool_attr() -> Tool
Generated tool metadata function for sm_parse_json_value
Generated tool metadata function for sm_strip_think_tags
Sourcepub fn sm_repair_json_tool_attr() -> Tool
pub fn sm_repair_json_tool_attr() -> Tool
Generated tool metadata function for sm_repair_json
Sourcepub fn sm_parse_string_list_tool_attr() -> Tool
pub fn sm_parse_string_list_tool_attr() -> Tool
Generated tool metadata function for sm_parse_string_list
Sourcepub fn sm_parse_choice_tool_attr() -> Tool
pub fn sm_parse_choice_tool_attr() -> Tool
Generated tool metadata function for sm_parse_choice
Sourcepub fn sm_parse_number_tool_attr() -> Tool
pub fn sm_parse_number_tool_attr() -> Tool
Generated tool metadata function for sm_parse_number
Trait Implementations§
Source§impl ServerHandler for SemanticMemoryServer
impl ServerHandler for SemanticMemoryServer
async fn call_tool( &self, request: CallToolRequestParams, context: RequestContext<RoleServer>, ) -> Result<CallToolResult, ErrorData>
async fn list_tools( &self, _request: Option<PaginatedRequestParams>, _context: RequestContext<RoleServer>, ) -> Result<ListToolsResult, ErrorData>
fn get_info(&self) -> ServerInfo
fn enqueue_task( &self, _request: CallToolRequestParams, _context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CreateTaskResult, ErrorData>> + MaybeSendFuture
fn ping( &self, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture
fn initialize( &self, request: InitializeRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<InitializeResult, ErrorData>> + MaybeSendFuture
fn complete( &self, request: CompleteRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CompleteResult, ErrorData>> + MaybeSendFuture
fn set_level( &self, request: SetLevelRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture
fn get_prompt( &self, request: GetPromptRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetPromptResult, ErrorData>> + MaybeSendFuture
fn list_prompts( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListPromptsResult, ErrorData>> + MaybeSendFuture
fn list_resources( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListResourcesResult, ErrorData>> + MaybeSendFuture
fn list_resource_templates( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListResourceTemplatesResult, ErrorData>> + MaybeSendFuture
fn read_resource( &self, request: ReadResourceRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ReadResourceResult, ErrorData>> + MaybeSendFuture
fn subscribe( &self, request: SubscribeRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture
fn unsubscribe( &self, request: UnsubscribeRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture
fn on_custom_request( &self, request: CustomRequest, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CustomResult, ErrorData>> + MaybeSendFuture
fn on_cancelled( &self, notification: CancelledNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture
fn on_progress( &self, notification: ProgressNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture
fn on_initialized( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture
fn on_roots_list_changed( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture
fn on_custom_notification( &self, notification: CustomNotification, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture
fn list_tasks( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListTasksResult, ErrorData>> + MaybeSendFuture
fn get_task_info( &self, request: GetTaskInfoParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetTaskResult, ErrorData>> + MaybeSendFuture
fn get_task_result( &self, request: GetTaskResultParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetTaskPayloadResult, ErrorData>> + MaybeSendFuture
fn cancel_task( &self, request: CancelTaskParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CancelTaskResult, ErrorData>> + MaybeSendFuture
Auto Trait Implementations§
impl !Freeze for SemanticMemoryServer
impl !RefUnwindSafe for SemanticMemoryServer
impl !UnwindSafe for SemanticMemoryServer
impl Send for SemanticMemoryServer
impl Sync for SemanticMemoryServer
impl Unpin for SemanticMemoryServer
impl UnsafeUnpin for SemanticMemoryServer
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<R, S> DynService<R> for Swhere
R: ServiceRole,
S: Service<R>,
impl<R, S> DynService<R> for Swhere
R: ServiceRole,
S: Service<R>,
fn handle_request( &self, request: <R as ServiceRole>::PeerReq, context: RequestContext<R>, ) -> Pin<Box<dyn Future<Output = Result<<R as ServiceRole>::Resp, ErrorData>> + Send + '_>>
fn handle_notification( &self, notification: <R as ServiceRole>::PeerNot, context: NotificationContext<R>, ) -> Pin<Box<dyn Future<Output = Result<(), ErrorData>> + Send + '_>>
fn get_info(&self) -> <R as ServiceRole>::Info
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<H> Service<RoleServer> for Hwhere
H: ServerHandler,
impl<H> Service<RoleServer> for Hwhere
H: ServerHandler,
async fn handle_request( &self, request: <RoleServer as ServiceRole>::PeerReq, context: RequestContext<RoleServer>, ) -> Result<<RoleServer as ServiceRole>::Resp, ErrorData>
async fn handle_notification( &self, notification: <RoleServer as ServiceRole>::PeerNot, context: NotificationContext<RoleServer>, ) -> Result<(), ErrorData>
fn get_info(&self) -> <RoleServer as ServiceRole>::Info
Source§impl<S> ServiceExt<RoleServer> for Swhere
S: Service<RoleServer>,
impl<S> ServiceExt<RoleServer> for Swhere
S: Service<RoleServer>,
fn serve_with_ct<T, E, A>( self, transport: T, ct: CancellationToken, ) -> impl Future<Output = Result<RunningService<RoleServer, S>, ServerInitializeError>> + MaybeSendFuture
Source§fn into_dyn(self) -> Box<dyn DynService<R>>
fn into_dyn(self) -> Box<dyn DynService<R>>
fn serve<T, E, A>( self, transport: T, ) -> impl Future<Output = Result<RunningService<R, Self>, <R as ServiceRole>::InitializeError>> + MaybeSendFuture
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.