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

Method with_confirmation_policy

core/src/agent_api/session_options.rs:163–166  ·  view source on GitHub ↗

Set a confirmation policy for HITL The policy will be used to create a ConfirmationManager when the session is built. This is the preferred way to configure HITL from the Node SDK.

(mut self, policy: crate::hitl::ConfirmationPolicy)

Source from the content-addressed store, hash-verified

161 /// The policy will be used to create a ConfirmationManager when the session is built.
162 /// This is the preferred way to configure HITL from the Node SDK.
163 pub fn with_confirmation_policy(mut self, policy: crate::hitl::ConfirmationPolicy) -> Self {
164 self.confirmation_policy = Some(policy);
165 self
166 }
167
168 /// Set a serializable permission policy for tool execution.
169 pub fn with_permission_policy(mut self, policy: crate::permissions::PermissionPolicy) -> Self {

Calls

no outgoing calls