# Interface LogPolicyAuditOpts

Options for logging policy audit

interface LogPolicyAuditOpts {
auditLogger: IAuditLogger;
policyName: string;
decision: "allow" | "deny";
reason: string;
toolName: string;
actor: {
type: "system" | "user" | "external" | "agent";
id: string;
name?: string;
ip?: string;
userAgent?: string;
};
requestId: string;
}

- Defined in packages/nexus-agents/src/audit/secure-handler-audit.ts:78

##### Index

### Properties

auditLogger
policyName
decision
reason
toolName
actor
requestId

## Properties

### auditLogger

auditLogger: IAuditLogger

- Defined in packages/nexus-agents/src/audit/secure-handler-audit.ts:79

### policyName

policyName: string

- Defined in packages/nexus-agents/src/audit/secure-handler-audit.ts:80

### decision

decision: "allow" | "deny"

- Defined in packages/nexus-agents/src/audit/secure-handler-audit.ts:81

### reason

reason: string

- Defined in packages/nexus-agents/src/audit/secure-handler-audit.ts:82

### toolName

toolName: string

- Defined in packages/nexus-agents/src/audit/secure-handler-audit.ts:83

### actor

actor: {
type: "system" | "user" | "external" | "agent";
id: string;
name?: string;
ip?: string;
userAgent?: string;
}

- Defined in packages/nexus-agents/src/audit/secure-handler-audit.ts:84

### requestId

requestId: string

- Defined in packages/nexus-agents/src/audit/secure-handler-audit.ts:85