Trait Storage Backend Dyn
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
Referenced types: Send, Sync, RunRecord, Pin, Box, Future, Result, (), str, Option, ExecutionPlan, Vec, TrieEnvelope, AccumulatorState, PromptIR, StabilityAnalysisResult
Object-safe storage interface used by the adaptive runtime.
Backends implement this trait when they need to be stored behind trait objects and accessed through dynamic dispatch.
Required Methods
store_run_dyn
Referenced types: RunRecord, Pin, Box, Future, Result, (), Send
Persist one observed run.
load_plan_dyn
Referenced types: str, Pin, Box, Future, Result, Option, ExecutionPlan, Send
Load the current execution plan for an agent.
list_runs_dyn
Referenced types: str, Pin, Box, Future, Result, Vec, RunRecord, Send
List stored runs for an agent.
store_trie
Referenced types: str, TrieEnvelope, Pin, Box, Future, Result, (), Send
Persist a serialized prediction trie for an agent.
load_trie
Referenced types: str, Pin, Box, Future, Result, Option, TrieEnvelope, Send
Load the serialized prediction trie for an agent.
store_accumulators
Referenced types: str, AccumulatorState, Pin, Box, Future, Result, (), Send
Persist trie accumulator state for an agent.
load_accumulators
Referenced types: str, Pin, Box, Future, Result, Option, AccumulatorState, Send
Load trie accumulator state for an agent.
Provided Methods
store_plan
Referenced types: ExecutionPlan, Result, ()
Persist an execution plan for an agent.
Notes
The default implementation is a no-op for backends that do not persist plans.
store_observations
Referenced types: str, PromptIR, Pin, Box, Future, Result, (), Send
Persist prompt IR observations for an agent or derived Adaptive Cache Governor (ACG) profile.
Notes
The default implementation is a no-op.
load_observations
Referenced types: str, Pin, Box, Future, Result, Option, Vec, PromptIR, Send
Load prompt IR observations for an agent or derived Adaptive Cache Governor (ACG) profile.
Notes
The default implementation returns Ok(None).
store_stability
Referenced types: str, StabilityAnalysisResult, Pin, Box, Future, Result, (), Send
Persist an ACG stability result for an agent or derived profile.
Notes
The default implementation is a no-op.
load_stability
Referenced types: str, Pin, Box, Future, Result, Option, StabilityAnalysisResult, Send
Load an ACG stability result for an agent or derived profile.
Notes
The default implementation returns Ok(None).
Implementors
impl StorageBackendDyn for RedisBackend
Referenced types: StorageBackendDyn, RedisBackend
impl StorageBackendDyn for InMemoryBackend
Referenced types: StorageBackendDyn, InMemoryBackend