()
| 63 | }; |
| 64 | |
| 65 | constructor() { |
| 66 | this.llm = { |
| 67 | provider: "", |
| 68 | model: "", |
| 69 | api: "", |
| 70 | baseUrl: "", |
| 71 | apiKeyEnv: "AGENT_WARD_API_KEY", |
| 72 | }; |
| 73 | |
| 74 | this.layers = { |
| 75 | foundationScan: { |
| 76 | enableFoundationScanDetection: true, |
| 77 | enableIntervention: true, |
| 78 | blockToolCallOnFoundationScanWarning: false, |
| 79 | detectMaliciousSkills: { |
| 80 | enable: true, |
| 81 | ruleBasedDetection: true, |
| 82 | semanticDetection: true, |
| 83 | maxContentLength: 65536, |
| 84 | maxConcurrency: 10, |
| 85 | }, |
| 86 | detectMisConfiguration: { |
| 87 | enable: true, |
| 88 | }, |
| 89 | }, |
| 90 | inputSanitization: { |
| 91 | enableInputDetection: true, |
| 92 | enableIntervention: true, |
| 93 | temporaryBlockToolCall: true, |
| 94 | blockHarmfulInput: false, |
| 95 | coverContaminatedResponse: false, |
| 96 | }, |
| 97 | cognitionProtection: { |
| 98 | enableMemWriteDetection: true, |
| 99 | enableIntervention: true, |
| 100 | }, |
| 101 | decisionAlignment: { |
| 102 | enableDecisionAlignmentDetection: true, |
| 103 | enableIntervention: true, |
| 104 | }, |
| 105 | execControl: { |
| 106 | enableToolCallDetection: true, |
| 107 | enableIntervention: true, |
| 108 | }, |
| 109 | }; |
| 110 | this.logging = { |
| 111 | enableFileLog: true, |
| 112 | }; |
| 113 | this.notifications = { |
| 114 | enableProactiveNotifications: true, |
| 115 | }; |
| 116 | this.approvals = { |
| 117 | enableUserApproval: true, |
| 118 | // Default to a finite timeout (5 min). Users can set <=0 or null for "infinite". |
| 119 | timeoutMs: 300000, |
| 120 | }; |
| 121 | this.worker = { |
| 122 | timeout: 60000, |
nothing calls this directly
no outgoing calls
no test coverage detected