# Interface LogToolInvocationOpts

Options for logging tool invocation audit

interface LogToolInvocationOpts {
auditLogger: IAuditLogger;
toolName: string;
outcome: "error" | "success" | "failure" | "denied";
actor: {
type: "system" | "user" | "external" | "agent";
id: string;
name?: string;
ip?: string;
userAgent?: string;
};
requestId: string;
durationMs?: number;
errorMessage?: string;
}

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

##### Index

### Properties

auditLogger
toolName
outcome
actor
requestId
durationMs?
errorMessage?

## Properties

### auditLogger

auditLogger: IAuditLogger

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

### toolName

toolName: string

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

### outcome

outcome: "error" | "success" | "failure" | "denied"

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

### 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:57

### requestId

requestId: string

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

### `Optional` durationMs

durationMs?: number

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

### `Optional` errorMessage

errorMessage?: string

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