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

Class ConfirmationPolicy

sdk/node/src/lib.rs:1727–1736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1725#[napi(object)]
1726#[derive(Default)]
1727pub struct ConfirmationPolicy {
1728 /// Whether HITL is enabled (default: false, all tools auto-approved).
1729 pub enabled: Option<bool>,
1730 /// Default timeout in milliseconds (default: 30000 = 30s).
1731 pub default_timeout_ms: Option<u32>,
1732 /// Action to take on timeout: "reject" or "auto_approve" (default: "reject").
1733 pub timeout_action: Option<String>,
1734 /// Lanes that should auto-approve without confirmation: "control", "query", "execute", or "generate".
1735 pub yolo_lanes: Option<Vec<String>>,
1736}
1737
1738/// Snapshot of a pending HITL tool confirmation.
1739#[napi(object)]

Callers 1

mainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected