# Interface ToolInvocationAuditOpts

Audit exports - Structured audit logging (Issue #193) Split from index.ts for file size compliance (Issue #285)

interface ToolInvocationAuditOpts {
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;
metadata?: Record<string, unknown>;
}

- Defined in packages/nexus-agents/src/audit/audit-types.ts:260

##### Index

### Properties

toolName
outcome
actor
requestId?
durationMs?
errorMessage?
metadata?

## Properties

### toolName

toolName: string

- Defined in packages/nexus-agents/src/audit/audit-types.ts:261

### outcome

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

- Defined in packages/nexus-agents/src/audit/audit-types.ts:262

### actor

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

- Defined in packages/nexus-agents/src/audit/audit-types.ts:263

### `Optional` requestId

requestId?: string

- Defined in packages/nexus-agents/src/audit/audit-types.ts:264

### `Optional` durationMs

durationMs?: number

- Defined in packages/nexus-agents/src/audit/audit-types.ts:265

### `Optional` errorMessage

errorMessage?: string

- Defined in packages/nexus-agents/src/audit/audit-types.ts:266

### `Optional` metadata

metadata?: Record<string, unknown>

- Defined in packages/nexus-agents/src/audit/audit-types.ts:267