Skip to main content

RelayKnowledgeService

Struct RelayKnowledgeService 

Source
pub struct RelayKnowledgeService { /* private fields */ }
Expand description

Shared application service used by CLI, Web, and future API adapters.

Implementations§

Source§

impl RelayKnowledgeService

Source

pub async fn register_code_repository( &self, request: CodeRepositoryRegisterRequest, context: RequestContext, ) -> Result<CodeRepositoryRegisterResponse, ApiError>

Registers a Git repository as a code source.

Source

pub async fn index_code_repository( &self, request: CodeIndexRequest, context: RequestContext, ) -> Result<CodeRepositoryIndexResponse, ApiError>

Builds or updates the tree-sitter code index for a registered repository.

Source

pub async fn preview_code_repository_scope( &self, request: CodeIndexRequest, context: RequestContext, ) -> Result<CodeRepositoryScopePreviewResponse, ApiError>

Previews the effective code repository indexing scope without writing rows.

Source

pub async fn query_code_repository( &self, request: CodeRetrievalRequest, context: RequestContext, ) -> Result<CodeRepositoryQueryResponse, ApiError>

Queries indexed symbols, references, imports, calls, and code chunks.

Source

pub async fn impact_code_repository( &self, request: CodeImpactRequest, context: RequestContext, ) -> Result<CodeRepositoryImpactResponse, ApiError>

Returns impact radius for a Git diff using the indexed code graph.

Source

pub async fn code_repository_status( &self, selector: CodeRepositorySelector, context: RequestContext, ) -> Result<CodeRepositoryStatusResponse, ApiError>

Returns the current code repository index status.

Source

pub async fn code_repository_report( &self, selector: CodeRepositorySelector, context: RequestContext, ) -> Result<CodeRepositoryReportResponse, ApiError>

Builds a reusable operations report for a registered code repository.

Source§

impl RelayKnowledgeService

Source

pub async fn index_files( &self, request: FileIndexRequest, context: RequestContext, ) -> Result<FileIndexResponse, ApiError>

Scans configured or explicit file roots into the local file-location index.

Source

pub async fn index_configured_files_once( &self, ) -> Result<FileIndexResponse, ApiError>

Runs one scan over configured roots when background file indexing is enabled.

Source

pub async fn query_files( &self, request: FileQueryRequest, context: RequestContext, ) -> Result<FileQueryResponse, ApiError>

Queries the local file-location index with bounded latency.

Source§

impl RelayKnowledgeService

Source

pub async fn model_profiles(&self) -> Result<ModelProfilesResponse, ApiError>

Lists redacted model provider profiles.

Source

pub async fn save_model_profile( &self, name: &str, request: ModelProfileSaveRequest, ) -> Result<ModelProfilesResponse, ApiError>

Saves a model provider profile and returns the redacted profile list.

Source

pub async fn delete_model_profile( &self, name: &str, ) -> Result<ModelProfilesResponse, ApiError>

Deletes a model provider profile and returns the redacted profile list.

Source

pub async fn model_fallback_config( &self, ) -> Result<ModelFallbackConfig, ApiError>

Returns model fallback policy configuration.

Source

pub async fn save_model_fallback_config( &self, config: ModelFallbackConfig, ) -> Result<ModelFallbackConfig, ApiError>

Saves model fallback policy configuration.

Source

pub async fn model_catalog( &self, refresh: bool, ) -> Result<ModelCatalogResult, ApiError>

Returns the cached or refreshed public model catalog.

Source

pub async fn probe_model_provider( &self, request: ModelConnectivityProbeRequest, ) -> Result<ModelConnectivityProbeResult, ApiError>

Probes a configured or overridden model profile.

Source

pub async fn discover_model_provider( &self, request: ModelDiscoveryRequest, ) -> Result<ModelDiscoveryResult, ApiError>

Discovers models from a configured or overridden model profile.

Source§

impl RelayKnowledgeService

Source

pub async fn worker_status( &self, request: WorkerStatusRequest, context: RequestContext, ) -> Result<WorkerStatusResponse, ApiError>

Returns worker queue and backend readiness status.

Source

pub async fn run_worker_once( &self, request: WorkerRunRequest, context: RequestContext, ) -> Result<WorkerRunResponse, ApiError>

Runs one bounded worker task in the foreground.

Source

pub async fn list_proposals( &self, request: ProposalListApiRequest, context: RequestContext, ) -> Result<ProposalListResponse, ApiError>

Lists proposals awaiting or past manual lifecycle decisions.

Source

pub async fn show_proposal( &self, proposal_id: String, context: RequestContext, ) -> Result<ProposalShowResponse, ApiError>

Shows one proposal and its conflict details.

Source

pub async fn accept_proposal( &self, proposal_id: String, request: ProposalDecisionApiRequest, context: RequestContext, ) -> Result<ProposalDecisionResponse, ApiError>

Accepts a proposal by committing its payload through the graph pipeline.

Source

pub async fn decide_proposal_without_commit( &self, proposal_id: String, next_state: ProposalState, request: ProposalDecisionApiRequest, context: RequestContext, ) -> Result<ProposalDecisionResponse, ApiError>

Rejects or supersedes a proposal without mutating graph facts.

Source

pub async fn query_audit( &self, request: AuditQueryApiRequest, context: RequestContext, ) -> Result<AuditQueryResponse, ApiError>

Queries the durable audit sink.

Source

pub async fn service_plan( &self, request: ServicePlanRequest, context: RequestContext, ) -> Result<ServicePlanResponse, ApiError>

Generates a service-manager plan without executing privileged commands.

Source

pub async fn write_service_definition( &self, context: RequestContext, ) -> Result<ServiceDefinitionWriteResponse, ApiError>

Writes the generated service definition into the service directory.

Source

pub async fn service_operator_status( &self, context: RequestContext, ) -> Result<ServiceOperatorResponse, ApiError>

Returns persisted silent-update operator status.

Source

pub async fn set_service_operator_state( &self, state: ServiceOperatorState, context: RequestContext, ) -> Result<ServiceOperatorResponse, ApiError>

Pauses or resumes the silent-update operator.

Source§

impl RelayKnowledgeService

Source

pub fn new(runtime: RuntimeConfiguration) -> Self

Creates a service from already validated foundational configuration.

Source

pub fn with_store( runtime: RuntimeConfiguration, store: Arc<dyn KnowledgeStore>, ) -> Self

Creates a service backed by an explicit store for deterministic tests.

Source

pub async fn from_process_environment() -> Result<Self, RuntimeConfigurationError>

Creates a service by reading the current process environment once.

Source

pub async fn from_environment( environment: &EnvironmentConfig, ) -> Result<Self, RuntimeConfigurationError>

Creates a service from a deterministic environment snapshot.

Source

pub async fn refresh_network_from_environment( &self, environment: &EnvironmentConfig, ) -> Result<(), RuntimeConfigurationError>

Applies network-related settings from a typed environment snapshot.

Source

pub async fn refresh_network_from_process_environment( &self, ) -> Result<(), RuntimeConfigurationError>

Re-reads process environment variables and applies network changes.

Source

pub fn observability(&self) -> ObservabilityRuntime

Returns the shared observability runtime for interface adapters.

Source

pub fn model_provider_config(&self) -> ModelProviderConfigService

Returns the model provider configuration service rooted in runtime paths.

Source

pub async fn record_agent_audit( &self, event: AgentDurableAuditInput, ) -> Result<(), ApiError>

Persists a redacted agent protocol audit event through the durable sink.

Source

pub async fn project_status( &self, context: RequestContext, ) -> Result<ProjectStatusResponse, ApiError>

Returns the current project status through the unified API contract.

Source

pub fn runtime_diagnostics( &self, context: RequestContext, ) -> (ProjectStatusResponse, AgentProtocolStatus)

Returns runtime diagnostics without opening or migrating graph storage.

Source

pub async fn ingest( &self, request: IngestRequest, context: RequestContext, ) -> Result<IngestResponse, ApiError>

Commits evidence into graph storage and refreshes all v1 index metadata.

Source

pub async fn commit_multimodal_extraction( &self, request: MultimodalExtractionRequest, context: RequestContext, ) -> Result<MultimodalExtractionResponse, ApiError>

Commits derived multimodal worker output through the same bounded ingest path.

Source

pub async fn retrieve_context( &self, request: HybridRetrievalRequest, context: RequestContext, ) -> Result<HybridRetrievalResponse, ApiError>

Retrieves context through the unified hybrid retrieval contract.

Source

pub async fn inspect_graph( &self, _request: GraphInspectionRequest, context: RequestContext, ) -> Result<GraphInspectionResponse, ApiError>

Returns graph inspection information without exposing storage internals.

Source

pub async fn graph_canvas( &self, request: GraphCanvasRequest, context: RequestContext, ) -> Result<GraphCanvasResponse, ApiError>

Returns a bounded read-only graph canvas snapshot for the Web workspace.

Source

pub async fn refresh_indexes( &self, request: IndexRefreshRequest, context: RequestContext, ) -> Result<IndexRefreshResponse, ApiError>

Refreshes derived index metadata up to the current graph version.

Source

pub async fn health( &self, context: RequestContext, ) -> Result<HealthResponse, ApiError>

Returns service and data health for diagnostics.

Source

pub async fn probe_embedding_provider( &self, context: RequestContext, ) -> Result<EmbeddingProviderProbeResponse, ApiError>

Probes the configured remote embedding provider without exposing secrets.

Source

pub async fn reconcile_startup_indexes( &self, context: RequestContext, ) -> Result<ServiceRecoveryReport, ApiError>

Reconciles derived index cursors before resident service work starts.

Source

pub async fn service_status( &self, context: RequestContext, ) -> Result<ServiceStatusResponse, ApiError>

Returns the managed background service definition location and defaults.

Source

pub fn agent_audit_log_path(&self) -> PathBuf

Returns the persistent agent audit log path resolved by the path boundary.

Trait Implementations§

Source§

impl Clone for RelayKnowledgeService

Source§

fn clone(&self) -> RelayKnowledgeService

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,