Skip to main content

Module router

Module router 

Source
Expand description

RLM Router — decides when and how to route content through RLM.

Splits routing decisions, smart truncation, and the iterative auto-processing loop across focused submodules.

Structs§

CrateAutoProcessContext
Internal context for the crate’s auto-process loop.
ProcessProgress
Progress tick during auto-processing.
RoutingContext
Context for a routing decision.
RoutingResult
Outcome of a routing decision.

Enums§

HostToolResult
Result of dispatching a single RLM tool call.

Traits§

IntoCrateCtx
Trait for converting a host context into the crate’s internal form.
RouterHost
Narrow interface the router needs from the host environment.

Functions§

auto_process
Process large output through the RLM iterative analysis loop.
extract_final
Extract the answer from a FINAL("…") call in LLM text.
fallback_result
Build a fallback RlmResult (truncation only, no LLM call).
should_route
Decide whether tool output should be routed through RLM.
smart_truncate
Truncate output to max_tokens with head/tail preservation.