MCPcopy Index your code
hub / github.com/AI45Lab/Code / policy

Method policy

core/src/hitl.rs:220–222  ·  view source on GitHub ↗

Get the current policy

(&self)

Source from the content-addressed store, hash-verified

218
219 /// Get the current policy
220 pub async fn policy(&self) -> ConfirmationPolicy {
221 self.policy.read().await.clone()
222 }
223
224 /// Update the confirmation policy
225 pub async fn set_policy(&self, policy: ConfirmationPolicy) {

Callers 2

confirmation_decisionMethod · 0.45

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected