MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / agent_proposals_enabled

Function agent_proposals_enabled

crates/openshell-core/src/proposals.rs:26–30  ·  view source on GitHub ↗

Read the current value of the agent proposals feature flag. Returns `false` if the flag has not been initialized (e.g. during unit tests), matching the documented default for the setting.

()

Source from the content-addressed store, hash-verified

24/// Returns `false` if the flag has not been initialized (e.g. during unit
25/// tests), matching the documented default for the setting.
26pub fn agent_proposals_enabled() -> bool {
27 AGENT_PROPOSALS_ENABLED
28 .get()
29 .is_some_and(|flag| flag.load(Ordering::Relaxed))
30}
31
32/// Test-only helpers shared across crates' test modules.
33#[cfg(any(test, feature = "test-helpers"))]

Callers 4

route_requestFunction · 0.85
agent_next_stepsFunction · 0.85
agent_guidanceFunction · 0.85

Calls 2

getMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected