Skip to main content

Module ontology_router

Module ontology_router 

Source
Expand description

Prompt-to-ontology routing for contextual inference.

This module chooses which installed ontologies are most relevant for a turn, derives stable namespace hashes for the LLM intent frame, and produces a short routing briefing that can be injected into the augmented prompt.

Structs§

OntologyRoutingDecision

Functions§

route_prompt_to_ontologies
route_prompt_with_focus
Route a prompt with bounded, agent-declared semantic focus terms. These terms are only relevance hints: dataset access, tool permission, and remote disclosure remain governed elsewhere.
route_prompt_with_focus_and_allowlist
Route within the intersection of the session environment and a named agent’s explicit data-source allowlist. The allowlist can only narrow a session; an empty list preserves the session’s existing boundary.